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:Sample
to specify the sample names.TCRData
/BCRData
to 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
.
ThescRepertoire
compatible 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.
Ifauto
is selected, the type will be determined by the presence ofTCRData
orBCRData
columns in the metadata. If both columns are present,TCR
will be selected by default.
combineTCR
(type=json
): Default:{'samples': True}
.
The extra arguments forscRepertoire::combineTCR
function.
See also https://www.borch.dev/uploads/screpertoire/reference/combinetcrcombineBCR
(type=json
): Default:{'samples': True}
.
The extra arguments forscRepertoire::combineBCR
function.
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
,TCRData
andRNAData
will 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.csv
file.AIRR
: AIRR format, which is usually in a file withairr_rearrangement.tsv
file.BD
: Becton Dickinson data, which is usually in a file withContigs_AIRR.tsv
file.Dandelion
: Dandelion data, which is usually in a file withall_contig_dandelion.tsv
file.Immcantation
: Immcantation data, which is usually in a file withdata.tsv
file.JSON
: JSON format, which is usually in a file with.json
extension.ParseBio
: ParseBio data, which is usually in a file withbarcode_report.tsv
file.MiXCR
: MiXCR data, which is usually in a file withclones.tsv
file.Omniscope
: Omniscope data, which is usually in a file with.csv
extension.TRUST4
: TRUST4 data, which is usually in a file withbarcode_report.tsv
file.WAT3R
: WAT3R data, which is usually in a file withbarcode_results.csv
file.
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()
.