This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Removing duplicate protein sequences from fasta file

Hi, I want to do psiblast in command line. Before, performing psiblast, I tried to make a blast database by using makeblastdb command. But it shows the following error:

BLAST Database creation error: Error: Duplicate seq_ids are found:
REF|WP_003261842.1

My fasta file is very large. So, manual deletion of the duplicate sequence is nearly impossible. How can I get rid from the duplication?

Cheers

blast database makeblastdb

1 answer

Use seqkit:

$ seqkit rmdup input.fa > output.fa

Then please accept his answer. There's a little tick box.

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.

Upvote|Bookmark|Accept

Log in to answer this question.