(&self)
| 102 | |
| 103 | impl 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. |
no outgoing calls
no test coverage detected