Thomas 3 лет назад
Родитель
Сommit
f4dfb55515
1 измененных файлов с 1 добавлено и 1 удалено
  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") }
         Fasta { fa: IndexedFasta::from_file(path).expect("Error opening fa") }
     }
     }
     fn get_sequence (&self, contig: &str, start: usize, end: usize) -> String { // end is included
     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 end = end - 1;
         let chr_index = self.fa.fai().tid(contig).expect("Cannot find chr in index");
         let chr_index = self.fa.fai().tid(contig).expect("Cannot find chr in index");
         if (end as i64 - start as i64) < (0 as i64) {
         if (end as i64 - start as i64) < (0 as i64) {