Description Usage Arguments Details Value Author(s) See Also Examples
Use bowtie2 aligner to map reads to reference genome
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | atacBowtie2Mapping(
atacProc,
samOutput = NULL,
reportOutput = NULL,
bt2Idx = NULL,
fastqInput1 = NULL,
fastqInput2 = NULL,
interleave = FALSE,
threads = getThreads(),
paramList = "--no-discordant --no-unal --no-mixed -X 2000",
...
)
## S4 method for signature 'ATACProc'
atacBowtie2Mapping(
atacProc,
samOutput = NULL,
reportOutput = NULL,
bt2Idx = NULL,
fastqInput1 = NULL,
fastqInput2 = NULL,
interleave = FALSE,
threads = getThreads(),
paramList = "--no-discordant --no-unal --no-mixed -X 2000",
...
)
bowtie2Mapping(
fastqInput1,
fastqInput2 = NULL,
samOutput = NULL,
reportOutput = NULL,
bt2Idx = NULL,
interleave = FALSE,
threads = getThreads(),
paramList = "--no-discordant --no-unal --no-mixed -X 2000",
...
)
|
atacProc |
|
samOutput |
|
reportOutput |
|
bt2Idx |
|
fastqInput1 |
|
fastqInput2 |
|
interleave |
|
threads |
|
paramList |
Additional arguments to be passed on to the binaries. See below for details. |
... |
Additional arguments, currently unused. |
The parameter related to input and output file path
will be automatically
obtained from ATACProc-class
object(atacProc
) or
generated based on known parameters
if their values are default(e.g. NULL
).
Otherwise, the generated values will be overwrited.
If you want to use this function independently,
you can use bowtie2Mapping
instead.
additional parameters to be passed on to
bowtie2. You can put all aditional
arguments in one Character
(e.g. "–threads 8 –no-mixed")
with white space splited just like command line,
or put them as Character
vector
(e.g. c("–threads","8","–no-mixed")). Note that some
arguments("-x","–interleaved","-U","-1","-2","-S","threads") to the
bowtie2 are invalid if they are already handled as explicit
function arguments. See the output of
bowtie2_usage()
for details about available parameters.
An invisible ATACProc-class
object scalar for downstream analysis.
Zheng Wei
atacRemoveAdapter
removeAdapter
bowtie2
bowtie2_build
bowtie2_usage
atacSam2Bam
atacSamToBed
atacLibComplexQC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | td <- tempdir()
setTmpDir(td)
## Building a bowtie2 index
library("Rbowtie2")
refs <- dir(system.file(package="esATAC", "extdata", "bt2","refs"),
full=TRUE)
bowtie2_build(references=refs, bt2Index=file.path(td, "lambda_virus"),
"--threads 4 --quiet",overwrite=TRUE)
## Alignments
reads_1 <- system.file(package="esATAC", "extdata", "bt2", "reads",
"reads_1.fastq")
reads_2 <- system.file(package="esATAC", "extdata", "bt2", "reads",
"reads_2.fastq")
if(file.exists(file.path(td, "lambda_virus.1.bt2"))){
(bowtie2Mapping(bt2Idx = file.path(td, "lambda_virus"),
samOutput = file.path(td, "result.sam"),
fastqInput1=reads_1,fastqInput2=reads_2,threads=3))
head(readLines(file.path(td, "result.sam")))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.