|
|
@@ -648,7 +648,7 @@ impl NeoContig {
|
|
|
res
|
|
|
}
|
|
|
|
|
|
- pub fn get_fasta(&self) -> String {
|
|
|
+ pub fn get_fasta(&self) -> (String, String) {
|
|
|
let fa_lines = self.contig.chars()
|
|
|
.collect::<Vec<char>>()
|
|
|
.chunks(60)
|
|
|
@@ -662,7 +662,7 @@ impl NeoContig {
|
|
|
names.push(format!("{}:{}-{}", s.ref_name,
|
|
|
s.ref_range.start, s.ref_range.end - 1));
|
|
|
}
|
|
|
- format!(">{}\n{}", names.join("_"), fa_lines)
|
|
|
+ (names.join("_"), fa_lines)
|
|
|
}
|
|
|
}
|
|
|
pub struct Fasta {
|