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

+ 1 - 1
src/lib.rs

@@ -589,7 +589,7 @@ impl Fasta {
         
         let chr_index = self.fa.fai().tid(contig).expect("Cannot find chr in index");
         if (end as i64 - start as i64) < (0 as i64) {
-            let fv = self.fa.view(chr_index, end - 1, start + 1).expect("Cannot get .fa view");
+            let fv = self.fa.view(chr_index, end - 1, start).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");