file of CDSs
1
0
Entering edit mode
4.6 years ago
Oliver • 0

what this command do for file of CDSs

sed -re 's/(^[^_]+)_.+/\1/gi' your_CDS.fasta > your_CDS.renamed.fasta

rna-seq • 576 views
ADD COMMENT
0
Entering edit mode
4.6 years ago
Haci ▴ 680

The file your_CDS.fasta is being manipulated by sed, which makes use of regular expressions to do so in this case. Just go to a regex tester, for example https://regex101.com and paste (^[^_]+)_.+ in the "REGULAR EXPRESSION" box for a detailed expression of what each part of the regex does.

ADD COMMENT

Login before adding your answer.

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