SamTagCodec¶
#include <pbbam/SamTagCodec.h>
-
class
PacBio::BAM::
SamTagCodec
¶ The SamTagCodec class provides text-based encoding/decoding of BAM tag data.
- Note
- SamTagCodec is mostly an implementation and/or testing detail, and may be removed from the public API.
Tag Collection Methods
-
static TagCollection
Decode
(const std::string &tagString)¶ Creates a TagCollection from SAM-formatted tag data.
- Return
- resulting tag collection
- Parameters
tagString
: SAM-formmated string
-
static std::string
Encode
(const PacBio::BAM::TagCollection &tags)¶ Creates SAM-formatted string from a TagCollection.
- Return
- SAM-formatted string
- Parameters
tags
: TagCollection containing tag data