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

Method encode

src/plot.rs:104–120  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

102
103impl Read {
104 pub fn encode(&self) -> String {
105 let aux_str = self.aux.to_string().replace(' ', "_");
106 let row_str = self.row.map_or(".".to_string(), |r| r.to_string());
107
108 format!(
109 "{} {} {} {} {} {} {} {} {}",
110 aux_str,
111 self.cigar,
112 self.flags,
113 self.mapq,
114 self.mpos,
115 self.name,
116 self.position,
117 row_str,
118 self.raw_cigar,
119 )
120 }
121}
122
123/// A compact string representation of multiple reads for embedding in Vega-Lite specifications.

Callers 5

vega.min.jsFile · 0.80
encodeExpressionFunction · 0.80
azFunction · 0.80
CLFunction · 0.80
from_readsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected