Question: Removing last characters of sequence names in a FASTA
0
gravatar for Francisco Muñoz
5 months ago by
Francisco Muñoz 0 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 • 184 views
ADD COMMENTlink modified 5 months ago by genomax70k • written 5 months ago by Francisco Muñoz 0
3
gravatar for genomax
5 months ago by
genomax70k
United States
genomax70k wrote:

Try this:

cut -d "." -f1 your_file > new_file
ADD COMMENTlink written 5 months ago by genomax70k

It worked. Thank you so much!

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