Description Objects from the Class Slots Methods Author(s) References Examples
The bamAlign class represents the content of a single alignment stored in a BAM-file. An instance of this class can be created by reading an Alignment from an object of class bamReader or bamRange. Accessor functions allow reading and writing of object contents. The alignment can be rewritten to a BAM-file via a bamWriter object or stored in a bamRange object.
Objects can be created by calls of the form new("bamAlign", alignment)
.
align
:Object of class "externalptr"
signature(object="bamAlign")
:
Returns quality scores of read (one for each query-base).
signature(object="bamAlign")
:
Returns base sequence (of read).
signature(object="bamAlign")
:
Returns data.frame with listed cigar items.
signature(object="bamAlign")
: Gets flag item.
signature(object="bamAlign", value="logical")
:
Sets flag item.
signature(object="bamAlign")
: Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
:
Retrieves 16-bit flag values which contains information of all
flags in binary form.
signature(object="bamAlign")
:
Sets 16-bit flag value (all flags at once).
signature(.Object = "bamAlign")
:
Initializes bamAlign object
signature(object="bamAlign")
:
Returns insertSize value.
signature(object="bamAlign")
:
Returns mapQuality value.
signature(object="bamAlign")
:
Returns mate Position value.
signature(object="bamAlign")
:
Returns mateRefID value.
signature(object="bamAlign")
:
Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets mateReverseStrand item.
signature(object="bamAlign")
:
Gets mateUnmapped item.
signature(object="bamAlign",
value="logical")
: Sets mateUnmapped item.
signature(object="bamAlign")
:
Returns align name (read Identifier).
signature(object="bamAlign")
:
Returns number of cigar items in align.
signature(object="bamAlign")
: Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
:
Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
:
Returns align position (on Ref-Sequence).
signature(object="bamAlign")
: Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
:
Returns (0-based) ID of Reference Sequence
(As indicated by ID column returned by getRefData).
signature(object="bamAlign")
:
Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
:
Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
:
Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
: Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
signature(object="bamAlign")
: Gets flag item.
signature(object="bamAlign",
value="logical")
: Sets flag item.
Wolfgang Kaisers
The SAM Format Specification (16ede77).
The SAM Format Specification Working Group. September 12, 2014.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Retrieve align from file
bam<-system.file("extdata", "accepted_hits.bam", package="rbamtools")
reader<-bamReader(bam)
align<-getNextAlign(reader)
bamClose(reader)
# Use accessors
name(align)
refID(align)
position(align)
nCigar(align)
cigarData(align)
alignSeq(align)
alignQual(align)
alignQualVal(align)
reverseStrand(align)
reverseStrand(align) <- TRUE
reverseStrand(align)
suppAlign(align)
suppAlign(align) <- TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.