Thomas 2 年之前
父节点
当前提交
c87598a2f1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -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 {