Learn R Programming

rnaSeqMap (version 2.30.0)

getBamData: getBamData - getting sample data from BAM file.

Description

Add data from experimental samples stored in BAM file.

Usage

getBamData(rs, exps = NULL, cvd = NULL, covdesc.file = "covdesc")

Arguments

rs
SeqReads object to modify
exps
Vector of numbers of experimental samples
cvd
Covdesc-like data frame - BAM files are read from row names
covdesc.file
Alternatively, the experiment description file

Value

SeqReads object with samples added from the BAM files. List of BAM files comes from the covdesc. The covdesc content becomes phenoData of the object.

Examples

Run this code
#  if (xmapConnected())  
#  {
#    rs <- newSeqReads(1,1,20000,1)
#    rs <- getBamData(rs,1:3)
#  }

Run the code above in your browser using DataLab