MCPcopy Index your code
hub / github.com/alignoth/alignoth / new

Method new

src/plot.rs:160–175  ·  view source on GitHub ↗
(record: &bam::Record, aux_tags: &Option<Vec<String>>)

Source from the content-addressed store, hash-verified

158
159impl 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
178impl Display for AuxRecord {

Callers

nothing calls this directly

Calls 3

aux_to_stringFunction · 0.85
AuxRecordClass · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected