Description Usage Arguments Details Author(s) Examples
The methods for bamSave
write BAM alignment data
(either single alignments as bamAlign
objects or
lists of alignments as bamRange
objects) out to a bamWriter.
1 |
object |
|
value |
Object of type |
refid |
(Optional) Defines sequence association (ID) in
Reference sequence dictionary of output BAM file.
May be given as numeric, or character. When missing, ID
is determined from reference name (only for |
... |
Currently unused. |
The different methods specialize on different methods for determining the Reference sequence ID in the output file.
Wolfgang Kaisers
1 2 3 4 5 6 7 | bam<-system.file("extdata","accepted_hits.bam",package="rbamtools")
reader<-bamReader(bam, idx=TRUE)
rg <- bamRange(reader, getRefCoords(reader,"chr1"))
writer <- bamWriter(bamReader, "out.BAM")
bamSave(writer, rg)
bamClose(writer)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.