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

Method from_reads

src/plot.rs:149–153  ·  view source on GitHub ↗

Converts a list of `Read` structs into a single `EncodedRead`, joining the encoded strings using `§` as a delimiter. # Example ``` let encoded = EncodedRead::from_reads(vec![read1, read2]); println!("{}", serde_json::to_string(&encoded).unwrap()); ```

(reads: Vec<Read>)

Source from the content-addressed store, hash-verified

147 /// println!("{}", serde_json::to_string(&encoded).unwrap());
148 /// ```
149 fn from_reads(reads: Vec<Read>) -> Self {
150 EncodedRead {
151 values: reads.iter().map(|r| r.encode()).join("§"),
152 }
153 }
154}
155
156#[derive(Debug, PartialEq, Eq, Default)]

Callers

nothing calls this directly

Calls 9

EncodedBaseCoverageClass · 0.85
encodeMethod · 0.80
filter_mismatchesMethod · 0.80
matchesMethod · 0.80
aMethod · 0.80
tMethod · 0.80
gMethod · 0.80
cMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected