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

+ 1 - 1
src/lib.rs

@@ -682,7 +682,7 @@ impl Fasta {
             let fv = self.fa.view(chr_index, end, start + 1).expect("Cannot get .fa view");
             revcomp(&fv.to_string().to_uppercase())
         } else {
-            let fv = self.fa.view(chr_index, start, end).expect("Cannot get .fa view");
+            let fv = self.fa.view(chr_index, start - 1, end).expect("Cannot get .fa view");
             fv.to_string().to_uppercase()
         }
     }