ScRepLoading¶
Load the single cell TCR/BCR data into a scRepertoire compatible object
This process loads the single cell TCR/BCR data into a scRepertoire
(>= v2.0.8, < v2.3.2) compatible object. Later, scRepertoire::combineExpression
can be used to combine the expression data with the TCR/BCR data.
For the data path specified at TCRData/BCRData in the input file
(in.metafile), will be used to find the TCR/BCR data files and
scRepertoire::loadContigs() will be used to load the data.
A directory can be specified in TCRData/BCRData, then
scRepertoire::loadContigs() will be used directly to load the data from the
directory. Otherwise if a file is specified, it will be symbolically linked to
a directory for scRepertoire::loadContigs() to load.
Note that when the file name can not be recognized by scRepertoire::loadContigs(),
envs.format must be set for the correct format of the data.
Input¶
metafile: The meta data of the samples A tab-delimited file Two columns are required:Sampleto specify the sample names.TCRData/BCRDatato assign the path of the data to the samples, and this column will be excluded as metadata.
Output¶
outfile: Default:{{in.metafile | stem}}.scRep.qs.
ThescRepertoirecompatible object in qs/qs2 format
Environment Variables¶
type(choice): Default:auto.
The type of the data to load.TCR: T cell receptor dataBCR: B cell receptor dataauto: Automatically detect the type from the metadata.
Ifautois selected, the type will be determined by the presence ofTCRDataorBCRDatacolumns in the metadata. If both columns are present,TCRwill be selected by default.
combineTCR(type=json): Default:{'samples': True}.
The extra arguments forscRepertoire::combineTCRfunction.
See also https://www.borch.dev/uploads/screpertoire/reference/combinetcrcombineBCR(type=json): Default:{'samples': True}.
The extra arguments forscRepertoire::combineBCRfunction.
See also https://www.borch.dev/uploads/screpertoire/reference/combinebcrexclude(auto): Default:['BCRData', 'TCRData', 'RNAData'].
The columns to exclude from the metadata to add to the object.
A list of column names to exclude or a string with column names separated by,. By default,BCRData,TCRDataandRNADatawill be excluded.tmpdir: Default:/tmp.
The temporary directory to store the symbolic links to the TCR/BCR data files.format(choice): The format of the TCR/BCR data files.10X: 10X Genomics data, which is usually in a directory withfiltered_contig_annotations.csvfile.AIRR: AIRR format, which is usually in a file withairr_rearrangement.tsvfile.BD: Becton Dickinson data, which is usually in a file withContigs_AIRR.tsvfile.Dandelion: Dandelion data, which is usually in a file withall_contig_dandelion.tsvfile.Immcantation: Immcantation data, which is usually in a file withdata.tsvfile.JSON: JSON format, which is usually in a file with.jsonextension.ParseBio: ParseBio data, which is usually in a file withbarcode_report.tsvfile.MiXCR: MiXCR data, which is usually in a file withclones.tsvfile.Omniscope: Omniscope data, which is usually in a file with.csvextension.TRUST4: TRUST4 data, which is usually in a file withbarcode_report.tsvfile.WAT3R: WAT3R data, which is usually in a file withbarcode_results.csvfile.
See also: https://rdrr.io/github/ncborcherding/scRepertoire/man/loadContigs.html If not provided, the format will be guessed from the file name byscRepertoire::loadContigs().