Question: Remove Duplicate Reads From Fasta File
0
gravatar for deepthithomaskannan
4.3 years ago by
Canada
deepthithomaskannan150 wrote:

Hi all,

I want to remove duplicate reads from my fasta file. I tried to use fastx_collapser. But since my reads contains lowercase letters and hyphens it failed.

Please help.

Thanks,D.

fasta read • 3.6k views
ADD COMMENTlink written 4.3 years ago by deepthithomaskannan150

duplicate of:

How to remove the same sequences in the FASTA files?

ADD REPLYlink written 4.3 years ago by Pierre Lindenbaum88k

It's like everybody wants to remove duplicates here!

ADD REPLYlink written 4.3 years ago by Manu Prestat3.7k
2
gravatar for Manu Prestat
4.3 years ago by
Manu Prestat3.7k
Marseille, France
Manu Prestat3.7k wrote:

Try the sequniq tool from the GenomeTools suite:

gt sequniq -o output.fasta input.fasta
ADD COMMENTlink modified 4.3 years ago • written 4.3 years ago by Manu Prestat3.7k

i tried this command, plz could u tell how this command applied...

ADD REPLYlink written 19 months ago by Manoj20
1
gravatar for Rm
4.3 years ago by
Rm7.4k
Danville, PA
Rm7.4k wrote:

Try CD-hit or Uclust

You can remove unwanted hyphens and convert to uppercase using sed:

echo FaSta-TEst | sed "s/-//g ; s/(.*)/\U&/g"

ADD COMMENTlink written 4.3 years ago by Rm7.4k

Or just tr: echo FaSta-TEst | tr -d - | tr 'a-z' 'A-Z'

ADD REPLYlink written 4.3 years ago by Ketil3.8k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1220 users visited in the last hour