read.BAMasPSL: Reads a BAM/SAM file and converts it into a PSL like format.

Description Usage Arguments Value See Also Examples

View source: R/hiReadsProcessor.R

Description

Given filename(s), the function reads the BAM/SAM file, converts into a PSL like format. Any other file format will yield errors or erroneous results. This is intended to be used independently with other short read aligners.

Usage

1
read.BAMasPSL(bamFile = NULL, removeFile = TRUE, asGRanges = TRUE)

Arguments

bamFile

BAM/SAM filename, or vector of filenames, or a pattern of files to import.

removeFile

remove the file(s) supplied in bamFile paramter after importing. Default is FALSE.

asGRanges

return a GRanges object. Default is TRUE

Value

a GRanges or GAlignments object reflecting psl file type.

See Also

pairwiseAlignSeqs, blatSeqs, read.blast8, read.psl, pslToRangedObject, pairUpAlignments

Examples

1
2
3
4
5
6
 
## Not run: 
read.BAMasPSL(bamFile="processed.*.bam$")
read.BAMasPSL(bamFile=c("sample1hits.bam","sample2hits.bam"))

## End(Not run)

malnirav/hiReadsProcessor documentation built on July 29, 2021, 6:33 a.m.