Function
getTagValue
Return tag value from a BamHeaderRecord or BamTagsDict.
getTagValue(tagsDict, idx)
getTagValue(tagValue, idx, record)
getTagValue(tagValue, key, record)
Include Headers
seqan/bam_io.h
Parameters
tagsDict
The BamTagsDict to retrieve data from.
idx
Index of the tag whose value to retrieve.
The index of the tag whose value is to be retrieved.
Types: unsigned
tagValue
The tag's value is stored here.
Types: CharString
key
The name of tag whose value is to be retrieved.
Types: CharString
record
The record to query.
Remarks
Note that you will get <type char> + payload in case of BamTagsDict.
See BamTagsDict for an example.
Return Values
CharString with the raw tags data.
bool, indicating whether the value could be retrieved, always true if idx is given.
Member of
Examples
CharString tagValue;
bool keyFound = getTagValue(tagValue, "SN", record);
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2012/10/02 11:10:32