| ImmunData | R Documentation |
ImmunData is an abstract R6 class for managing and transforming immune receptor repertoire data.
It supports flexible backends (e.g., Arrow, DuckDB, dbplyr) and lazy evaluation,
and provides tools for filtering, aggregation, and receptor-to-repertoire mapping.
schema_receptorA named list describing how to interpret receptor-level data.
This includes the fields used for aggregation (e.g., CDR3, V_gene, J_gene),
and optionally unique identifiers for each receptor row. Used to ensure consistency
across processing steps.
schema_repertoireA named list defining how barcodes or annotations should be
grouped into repertoires. This may include sample-level metadata (e.g., sample_id,
donor_id) used to define unique repertoires.
receptorsAccessor for the dynamically-created table with receptors.
annotationsAccessor for the annotation-level table (.annotations).
repertoiresGet a table of repertoires and their basic statistics.
metadataGet a table of repertoires without their basic statistics.
provenanceRead-only accessor for snapshot provenance metadata.
new()Creates a new ImmunData object.
This constructor expects receptor-level and barcode-level data,
along with a receptor schema defining aggregation and identity fields.
ImmunData$new(schema, annotations, repertoires = NULL, provenance = NULL)
schemaA character vector specifying the receptor schema (e.g., aggregate fields, ID columns).
annotationsA cell/barcode-level dataset mapping barcodes to receptor rows.
repertoiresA repertoire table, created inside the body of agg_repertoires.
provenanceInternal provenance metadata for snapshot lineage.
clone()The objects of this class are cloneable with this method.
ImmunData$clone(deep = FALSE)
deepWhether to make a deep clone.
read_repertoires(), read_immundata()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.