samtools faidx redirection
1
3
Entering edit mode
7.5 years ago
biomagician ▴ 410

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.

samtools index indexing samtools faidx redirection • 4.5k views
ADD COMMENT
1
Entering edit mode
7.5 years ago
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
ADD COMMENT
0
Entering edit mode

There is a small typo. faix should be faidx.

ADD REPLY
0
Entering edit mode

fixed thanks

ADD REPLY
0
Entering edit mode

OK thank you very much.

ADD REPLY
1
Entering edit mode

it worked ? flags this question as answered please.

ADD REPLY
2
Entering edit mode

Have a feeling people don't understand use "checkmark" to flag as answered. Perhaps there should be a word description there as well.

ADD REPLY

Login before adding your answer.

Traffic: 1353 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6