(record: &bam::Record, aux_tags: &Option<Vec<String>>)
| 158 | |
| 159 | impl AuxRecord { |
| 160 | pub fn new(record: &bam::Record, aux_tags: &Option<Vec<String>>) -> Self { |
| 161 | let mut aux_values = HashMap::new(); |
| 162 | if let Some(aux_tags) = aux_tags { |
| 163 | for tag in aux_tags { |
| 164 | match record.aux(tag.as_bytes()) { |
| 165 | Ok(aux) => { |
| 166 | aux_values.insert(tag.clone(), aux_to_string(aux)); |
| 167 | } |
| 168 | Err(_) => { |
| 169 | aux_values.insert(tag.clone(), String::from("None")); |
| 170 | } |
| 171 | } |
| 172 | } |
| 173 | } |
| 174 | AuxRecord(aux_values) |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | impl Display for AuxRecord { |
nothing calls this directly
no test coverage detected