Thomas 3 년 전
부모
커밋
05960d5ce3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 + 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 - 1, end + 1).expect("Cannot get .fa view");