Thomas %!s(int64=2) %!d(string=hai) anos
pai
achega
969376d640
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -673,7 +673,7 @@ impl Fasta {
     fn get_sequence (&self, contig: &str, start: usize, end: usize) -> String { // end is included
         let chr_index = self.fa.fai().tid(contig).expect("Cannot find chr in index");
         if end < start {
-            let fv = self.fa.view(chr_index, end + 1, start + 2).expect("Cannot get .fa view");
+            let fv = self.fa.view(chr_index, end + 1, start + 1).expect("Cannot get .fa view");
             revcomp(&fv.to_string().to_uppercase())
         } else {
             let fv = self.fa.view(chr_index, start - 1, end + 1).expect("Cannot get .fa view");