Changeset 3410 for trunk/yat/omic/BamHeader.h
- Timestamp:
- Apr 22, 2015, 1:05:43 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/omic/BamHeader.h
r3408 r3410 29 29 #include YAT_SAM_HEADER 30 30 31 #include <map> 31 32 #include <string> 32 33 … … 88 89 89 90 /** 91 \brief Access value in \c \@PG lines. 92 93 A program group line in the header typically looks like 94 95 \code @PG ID:bwa PN:bwa VN:0.6.1-r104 \endcode 96 97 and for this line \c program_group("bwa", "VN") returns 98 \c "0.6.1-r104" 99 100 \return value for \a key for line with ID \a id. 101 102 \since New in yat 0.13 103 */ 104 const std::string& program_group(const std::string& id, 105 const std::string& key) const; 106 107 /** 108 \brief Access value in \c \@RG lines. 109 110 A read group line in the header typically looks like 111 112 \code @RG ID:foo PL:ILLUMINA SM:Tumour \endcode 113 114 and for this line \c read_group("foo", "SM") returns \c "Tumour" 115 116 \return value for \a key for line with ID \a id. 117 118 \since New in yat 0.13 119 */ 120 // 121 const std::string& read_group(const std::string& id, 122 const std::string& key) const; 123 124 /** 90 125 \brief Exchanges the content in \c *this and \a other 91 126 … … 146 181 #endif 147 182 bam_hdr_t* header_; 183 typedef std::map<std::string, std::string> strMap; 184 typedef std::map<std::string, strMap> strMap2; 185 mutable strMap2 read_group_; 186 mutable strMap2 program_group_; 148 187 149 188 friend class InBamFile; 150 189 friend class OutBamFile; 190 191 const std::string& group(strMap2& map, const std::string& type, 192 const std::string& id, 193 const std::string& key) const; 151 194 152 195 // using compiler generated copy and assignment
Note: See TracChangeset
for help on using the changeset viewer.