MAlignments-methods: wrap a GAlignments for easier stats

Description Usage Arguments Value Examples

Description

Normally the MAlignments constructor will be called by getMT(bam).

Depending on how a generic was originally designated, the arguments to these methods can have various argument names, but all of them tend to take an MAlignments as their argument.

Usage

 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
MAlignments(gal, bam)

genomeCoverage(x)

## S4 method for signature 'MAlignments'
Summary(x)

## S4 method for signature 'MAlignments'
show(object)

## S4 method for signature 'MAlignments'
fileName(object)

## S4 method for signature 'MAlignments'
scanBamHeader(files)

readLength(x)

## S4 method for signature 'MAlignments'
readLength(x)

genomeLength(x)

## S4 method for signature 'MAlignments'
genomeLength(x)

Arguments

gal

a GAlignments

bam

a bam filename

x

an MAlignments

object

an MAlignments

files

an MAlignments

Value

an MAlignments

various things, as appropriate to the methods

Examples

1
2
3
4
5
6
library(MTseekerData)
BAMdir <- system.file("extdata", "BAMs", package="MTseekerData")
BAMs <- paste0(BAMdir, "/", list.files(BAMdir, pattern=".bam$"))
mal <- getMT(BAMs[1])
class(mal) 
show(mal) 

MTseeker documentation built on Oct. 31, 2019, 3:20 a.m.