You're right -it was the version! I am now using 1.9 and "-i" works perfectly. Thank you
• 0 views
•
link
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?
Log in to answer this question.
Try
samtools faidx ./file_1.fasta -i MHLFILTNLILPAFEDLAQGorsamtools faidx -i ./file_1.fasta MHLFILTNLILPAFEDLAQGSame problem I'm afraid:
I'm not sure why it is not work-ng -it usually does!!