Entering edit mode
4.3 years ago
jamie.pike
▴
80
I'm struggling to get samtools faidx to print the reverse complement of sequences: I believe the -i option should do the trick, but I keep getting an error message. I think it is trying to find "-i" in the fasta.
Command:
samtools faidx ./file_1.fasta MHLFILTNLILPAFEDLAQG -i
Output:
>MHLFILTNLILPAFEDLAQG
TCAGTCTGCAACTCCAAATACTTCAAGCGCATCTGGACCGCCGTGGAGTTCATCAGAAGT
GAGCGTGTCAGAATGATGATCAGCAACTATACTTACTTTCCCGACCTTGATGACCCTGCA
TCCCTGGGCCAGGTCTTCAAAGGCTGGAAGGATGAGGTTCGTCAATATGAAAAGGTGCAT
>-i
[fai_fetch] Warning - Reference --i not found in FASTA file, returning empty sequence
Segmentation fault (core dumped)
Samtools Version: 0.1.19-96b5f2294a
What am I doing wrong?
Try
samtools faidx ./file_1.fasta -i MHLFILTNLILPAFEDLAQG
orsamtools faidx -i ./file_1.fasta MHLFILTNLILPAFEDLAQG
Same problem I'm afraid:
I'm not sure why it is not work-ng -it usually does!!