|
|
@@ -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).expect("Cannot get .fa view");
|
|
|
+ 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");
|