splitBamByRG: Split bam file

View source: R/bamUtils.R

splitBamByRGR Documentation

Split bam file

Description

Split bam file wit read group.

Usage

  splitBamByRG(inBam, mc.cores = ezThreads())

Arguments

inBam

character(1): filename of input sorted bam file.

mc.cores

integer(1): the threads to use.

Details

It relies on samtools split.

Value

character(n): the filenames of splitted bam files.

Author(s)

Ge Tan

Examples

  ## Not run: 
    inBam <- "/srv/gstore/projects/p2497/SCCountsApp_24762_2018-02-20--21-32-42/20171222.A-SiCSeq_SCs_P5.bam"
    inBam <- "/scratch/gtan/p2497-SCCountQC/20171222.A-SiCSeq_SCs_P5_subset.bam"
    splitBamByRG(inBam, mc.cores=8L)
  
## End(Not run)

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.