Description Usage Arguments Value locus datadir Outdir Reference See Also Examples
View source: R/config.R View source: R/all-generics.R
Create a DR2S
configuration object.
1 2 3 4 5 6 7 8 9 10 11 12 |
sample |
A unique sample identifier used to locate the long and short read FASTQ/FASTA files. |
locus |
The HLA or KIR locus (e.g., "A", "DPB1", or "2DL1"; see Note). |
longreads |
Location, type, and mapper for longreads as a named list
with the fields |
shortreads |
(optional) Location, type, and mapper for short reads
as a named list with the fields |
datadir |
The data directory (See Note). |
outdir |
The output directory (See Note). |
reference |
(optional) Path to reference sequence (See Note). |
details |
<named list> of sample metadata or |
opts |
<named list> of arguments to the DR2S pipeline functions or
|
... |
Further arguments. |
A DR2S
config object
The locus can be specified generically, e.g. "A", "B", or "2DL1". In this case a generic, locus-specific reference will initially be used. Alternatively a locus can be specified more specifically by including allele code information (if available), e.g. "DPB1*04:01:01:01". In this case the specified allele will be used as initial reference.
A datadir
must contain subdirectories (default: "pacbio" and
"illumina") containig long read FASTQs/FASTAs in the format
SAMPLE_LOCUS_*.fast(q|a)(.gz)
and short read FASTQs/FASTAs in the
format SAMPLE_LOCUS_*R[12]*.fast(q|a)(.gz)
, respectively.
All output will be placed in directory hierarchy OUTDIR/SAMPLE/LOCUS
References can be specified as a path to a fasta file containing the reference sequence.
Other DR2S mapper functions:
cache()
,
clear()
,
mapFinal()
,
mapInit()
,
mapIter()
,
partitionLongreads()
,
remapAlignment()
,
reportCheckedConsensus()
,
report()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
x <- InitDR2S(createDR2SConf(
sample = "ID12300527",
locus = "DPB1*04:01:01:01",
datadir = "/path/to/data",
outdir = "/path/to/output"
)) %>%
mapInit() %>%
partitionLongreads() %>%
mapIter() %>%
partitionShortreads() %>%
mapFinal() %>%
report(blockWidth = 60)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.