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.
samtools faidx ./file_1.fasta MHLFILTNLILPAFEDLAQG -i
>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?