1 #ifndef theplu_yat_omic_bam_header
2 #define theplu_yat_omic_bam_header
25 #include "config_bam.h"
31 #include YAT_SAM_HEADER
33 #include <boost/iterator/transform_iterator.hpp>
42 #ifndef YAT_HAVE_HTSLIB
44 bam_header_t * bam_hdr_dup(
const bam_header_t* other);
62 typedef std::map<std::string, std::string> strMap;
63 typedef std::map<std::string, strMap> strMap2;
109 const std::string& key)
const;
127 const std::string&
read_group(
const std::string&
id,
128 const std::string& key)
const;
141 const std::map<std::string, std::string>&
152 typedef boost::transform_iterator<
154 strMap2::const_iterator>
195 std::string
text(
void)
const;
207 void text(
const std::string& txt);
218 int32_t
tid(
const std::string& name)
const;
231 #ifndef YAT_HAVE_HTSLIB
232 typedef bam_header_t bam_hdr_t;
235 mutable strMap2 read_group_;
236 mutable strMap2 program_group_;
241 const std::string& group(strMap2& map,
const std::string& type,
242 const std::string&
id,
243 const std::string& key)
const;
245 void update_group(strMap2& map,
const std::string& type)
const;
Functor that return std::pair.first.
Definition: stl_utility.h:762
Definition: BamFile.h:233
Definition: BamFile.h:118