Thomas před 3 roky
rodič
revize
a56e05bf8d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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");