There is a small typo. faix should be faidx.
• 0 views
•
link
Dear Community, I am using 'samtools faidx' to index a fasta file. samtools faidx output/genome/ref/seq/celegans.fa However, this command creates a 'celegans.fai' file in the same folder as the fasta file. Is there a way to specify in which folder to store the index file? Samtools help can be found here: http://www.htslib.org/doc/samtools.html Thanks.
ln -s /path/to.fasta x.fa && samtools faidx x.fa && rm x.fa
or
samtools faidx /path/to.fasta x.fa && mv /path/to.fasta.fai x.fa.fai
Log in to answer this question.