Repository navigation
Dev - #19
Merged
Merged
Dev#19
Conversation
…a and remove the second chain + add tests for this case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
immundata 0.1.0
This release introduces manifests as the input-file annotation interface and
makes repertoire, strata, and provenance state more explicit and reliable.
Breaking changes
metadata.jsonsnapshot file.read_metadata()is replaced byread_manifest(). Inread_repertoires(), usemanifest,manifest_file_col, andpath = "<manifest>"instead ofmetadata,metadata_file_col, andpath = "<metadata>". The default manifest filecolumn is now
"file"rather than"File".read_repertoires()now usesrepertoire_schema = "<auto>"by default. Thiscreates one repertoire per input file, or one per manifest row when paths are
supplied by a manifest. Set
repertoire_schema = NULLto retain the previousbehavior of leaving repertoires undefined.
agg_strata()now uses the argument namesschemaandprefixinstead ofbyandstrata_name_prefix.ImmunData$metadataaccessor. Useidata$repertoiresfor therepertoire definitions and summaries, and use manifests for annotations
associated with input repertoire files.
imd_schema("metadata_filename")is nowimd_schema("manifest_filename"), and the unusedimd_files()$receptorsentry has been removed.
New features and improvements
read_repertoires()now works approximately 60 times faster bycombining CSV, TSV, and compressed text inputs into
one temporary Parquet file before processing by default. This avoids repeated
text scans in downstream duckplyr queries while retaining original input
paths in provenance. Use
prematerialize = FALSEto disable it orprematerialize_folderto select the temporary storage directory. I recommend youto use it pretty much always.
read_manifest()for CSV, TSV, TXT, and in-memory manifests. It inferscommon delimiters, resolves file-relative paths, validates file availability,
and adds normalized source paths for joining to repertoire data. The special
repertoire_schema = "<manifest>"value defines repertoires from all manifestcolumns.
ImmunDatastate. Objects now exposeschema_strataand a$stratatable;agg_strata()andrename_strata()update this state, and snapshots persist and restore it.
.byinmutate_immundata()anddplyr::mutate()methods forImmunData, including a duckplyr-compatiblefallback for grouped summary expressions.
conflicts = c("error", "replace")to the annotation functions.Existing annotation columns are protected by default, while intentional
replacement is allowed for columns that do not define core
ImmunDatastate.
mutate(),compute(), and annotation operations now preserve repertoire,strata, and provenance state when the biological grouping has not changed.
Filtering and downsampling rebuild affected repertoire and strata summaries
and retain existing stratum labels when possible.
and aggregation, and snapshot reading and writing. Use
verbose = FALSEforindividual calls or
options(immundata.verbose = FALSE)globally.them against the Parquet annotation columns when loading. Older metadata
formats remain readable and are upgraded in memory when necessary.
artifacts_rootandartifacts_path) associated with the project home and current snapshot.Bug fixes
prevented chain rows from inflating
n_barcodes,n_receptors, receptorproportions, and repertoire-occurrence counts.
imd_repertoire_idassignment deterministic by ordering repertoireschema values before assigning identifiers.
pairing, preventing identical barcode strings from different input files from
being treated as the same cell.
including exact, regular-expression, Hamming, and Levenshtein matching.
Distance calculations no longer use the k-mer prefilter, and temporary DuckDB
table names are unique across repeated operations.
bulk count mode, retained provenance and strata state, and made
n = 1meanan absolute sampling depth of one.
missing argument columns, and collisions between custom and canonical locus
columns.
mutate()and annotation replacement from overwriting system,receptor-schema, repertoire-schema, or strata-defining columns.
Documentation and maintenance
workflows, ingestion, aggregation, filtering, annotation, snapshots, and
provenance, and moved website generation to altdoc.
version to 1.2.1.