Question: Removing last characters of sequence names in a FASTA
0
gravatar for Francisco Muñoz
16 months ago by
Francisco Muñoz 10 wrote:

Hello everyone. I have a FASTA file with the CDS of an organism such as:

>FvH4_1g00330.1
ATTTGGA...
>FvH4_1g00340.1
...

How could I remove that ".1" at the end of every name? Thanks in advance.

fasta • 400 views
ADD COMMENTlink modified 16 months ago by genomax85k • written 16 months ago by Francisco Muñoz 10
3
gravatar for genomax
16 months ago by
genomax85k
United States
genomax85k wrote:

Try this:

cut -d "." -f1 your_file > new_file
ADD COMMENTlink written 16 months ago by genomax85k

It worked. Thank you so much!

ADD REPLYlink written 16 months ago by Francisco Muñoz 10
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: 1616 users visited in the last hour