Thomas %!s(int64=2) %!d(string=hai) anos
pai
achega
38298cbc91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -319,7 +319,7 @@ impl Contig {
 
 
     pub fn write_bam(&self, path: &str) -> Result<()> {
     pub fn write_bam(&self, path: &str) -> Result<()> {
         let mut header = bam::Header::new();
         let mut header = bam::Header::new();
-        let mut sq_record = rust_htslib::bam::header::HeaderRecord::new(b"@SQ");
+        let mut sq_record = rust_htslib::bam::header::HeaderRecord::new(b"SQ");
         sq_record.push_tag(b"SN", self.id.clone());
         sq_record.push_tag(b"SN", self.id.clone());
         sq_record.push_tag(b"LN", self.sequence.len());
         sq_record.push_tag(b"LN", self.sequence.len());
         header.push_record(&sq_record);
         header.push_record(&sq_record);