Thomas 2 years ago
parent
commit
f4dfb55515
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -585,7 +585,7 @@ impl Fasta {
         Fasta { fa: IndexedFasta::from_file(path).expect("Error opening fa") }
     }
     fn get_sequence (&self, contig: &str, start: usize, end: usize) -> String { // end is included
-        let start = start - 1;
+        // let start = start - 1;
         let end = end - 1;
         let chr_index = self.fa.fai().tid(contig).expect("Cannot find chr in index");
         if (end as i64 - start as i64) < (0 as i64) {