SCSamToBam | R Documentation |
This function convert a sam file into a bam file.
atacSCSam2Bam(atacProc, samInput = NULL, bamOutput = NULL, isSort = TRUE, ...) ## S4 method for signature 'ATACProc' atacSCSam2Bam(atacProc, samInput = NULL, bamOutput = NULL, isSort = TRUE, ...) scSam2bam(samInput, bamOutput = NULL, isSort = TRUE, ...)
atacProc |
|
samInput |
|
bamOutput |
|
isSort |
|
... |
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 bamToBed
instead.
An invisible ATACProc-class
object scalar for
downstream analysis.
Wei Zhang
atacBowtie2Mapping
atacBam2Bed
atacBamSort
library(R.utils) sam_bz <- system.file("extdata", "Example.sam.bz2", package="esATAC") sam_path <- as.vector(bunzip2(filename = sam_bz, destname = file.path(getwd(), "Example.sam"), ext="bz2", FUN=bzfile, remove = FALSE)) sam2bam(samInput = sam_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.