SCRemoveAdapter | R Documentation |
Use AdapterRemoval to remove adapters
atacSCRemoveAdapter( atacProc, adapter1 = NULL, adapter2 = NULL, fastqOutput1 = NULL, reportPrefix = NULL, fastqOutput2 = NULL, fastqInput1 = NULL, fastqInput2 = NULL, interleave = FALSE, threads = getThreads(), paramList = NULL, findParamList = NULL, ... ) ## S4 method for signature 'ATACProc' atacSCRemoveAdapter( atacProc, adapter1 = NULL, adapter2 = NULL, fastqOutput1 = NULL, reportPrefix = NULL, fastqOutput2 = NULL, fastqInput1 = NULL, fastqInput2 = NULL, interleave = FALSE, threads = getThreads(), paramList = NULL, findParamList = NULL, ... ) scRemoveAdapter( fastqInput1, fastqInput2, adapter1, adapter2, fastqOutput1 = NULL, reportPrefix = NULL, fastqOutput2 = NULL, interleave = FALSE, threads = getThreads(), paramList = NULL, findParamList = NULL, ... )
atacProc |
|
adapter1 |
|
adapter2 |
|
fastqOutput1 |
|
reportPrefix |
|
fastqOutput2 |
|
fastqInput1 |
|
fastqInput2 |
|
interleave |
|
threads |
|
paramList |
Additional arguments to be passed on to the binaries for removing adapter. See below for details. |
findParamList |
Additional arguments to be passed on to the binaries for identifying adapter. 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 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 scRemoveAdapter
instead.
You can put all aditional
arguments in one Character
(e.g. "–threads 8") with white space
splited just like command line,
or put them in Character
vector(e.g. c("–threads","8")).
Note that some arguments(
"–file1","–file2","–adapter1","–adapter2","–output1","–output2",
"–basename","–interleaved","thread") to the
paramList and findParamList are invalid if they are already handled as explicit
function arguments. See the output of
adapterremoval_usage()
for details about available parameters.
An invisible ATACProc-class
object scalar for downstream analysis.
Zheng Wei
atacRenamer
renamer
atacUnzipAndMerge
unzipAndMerge
atacBowtie2Mapping
library(magrittr) td <- tempdir() setTmpDir(td) # Identify adapters prefix<-system.file(package="esATAC", "extdata", "uzmg") (reads_1 <-file.path(prefix,"m1",dir(file.path(prefix,"m1")))) (reads_2 <-file.path(prefix,"m2",dir(file.path(prefix,"m2")))) reads_merged_1 <- file.path(td,"reads1.fastq") reads_merged_2 <- file.path(td,"reads2.fastq") atacproc <- atacUnzipAndMerge(fastqInput1 = reads_1,fastqInput2 = reads_2) %>% atacRenamer %>% atacFindAdapter %>% atacSCRemoveAdapter dir(td)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.