How to use samtools faidx
0
0
Entering edit mode
3.2 years ago

Hello everyone,

I would like to do a blast and then use the samtools faidx command in order to extract and align the hits from my blast. However, samtools faidx use an input in fasta format. My blast output is a text file.

Can someone help me ? Is there a way to convert a text file in fasta ? Thanks in advance

alignment gene • 1.9k views
ADD COMMENT
0
Entering edit mode

then use the samtools faidx command in order to extract and align the hits from my blast

this is the wrong tool. samtools faidx " indexes or queries regions from a fasta file ". For a start, you might use awk. For a very large file, import into a database.

ADD REPLY
0
Entering edit mode

Thank you ! I understood where I was wrong . I will try something else. Instead of making a blast db I will try to make a biopython script that download sequences from ID's of the hits I get from my blast ouput

ADD REPLY
0
Entering edit mode

order to extract and align the hits from my blast.

Align to a reference? To each other like doing a multiple sequence alignment? As discussed in your recent thread blastdbcmd is appropriate to retrieve sequences from a blast database for further analysis.

ADD REPLY
0
Entering edit mode

Thank you for your time and anwers !

ADD REPLY

Login before adding your answer.

Traffic: 2668 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