Entering edit mode
10.6 years ago
redspider19800915
▴
40
A FASTA file containing:
>ppa020722m pacid=19 locus=ppa020722m.g ID=ppa020722m.v1.0 annot-version=v1.0
CTCCAACAAGCCTTCACCAACATCCAAAATCATTGCTCTGGTTTCCTGCACCACCTCTCTCACTTTCCTGTCTTCAACCC
CAACCCCTCTTCCCTCAAAACCCAACTCGAGTCCACCTTCGCCAACCTCCAAAACCAAG
>ppa020723m pacid=10 locus=ppa020723m.g ID=ppa020723m.v1.0 annot-version=v1.0
CTCCAACAAGCCTTCACCAACATCCAAAATCATTGCTCTGGTTTCCTGCACCACCTCTCTCACTTTCCTGTCTTCAACCC
CAACCCCTCTTCCCTCAAAACCCAACTCGAGTCCACCTTCGCCAACCTCCAAAACCAAG
>ppa020724m pacid=15 locus=ppa020724m.g ID=ppa020724m.v1.0 annot-version=v1.0
CTCCAACAAGCCTTCACCAACATCCAAAATCATTGCTCTGGTTTCCTGCACCACCTCTCTCACTTTCCTGTCTTCAACCC
CAACCCCTCTTCCCTCAAAACCCAACTCGAGTCCACCTTCGCCAACCTCCAAAACCAAG
......
Can anybody provide a Perl script to clean the headers in this FASTA database to make an output file as:
>ppa020722m
CTCCAACAAGCCTTCACCAACATCCAAAATCATTGCTCTGGTTTCCTGCACCACCTCTCTCACTTTCCTGTCTTCAACCC
CAACCCCTCTTCCCTCAAAACCCAACTCGAGTCCACCTTCGCCAACCTCCAAAACCAAG
>ppa020723m
CTCCAACAAGCCTTCACCAACATCCAAAATCATTGCTCTGGTTTCCTGCACCACCTCTCTCACTTTCCTGTCTTCAACCC
CAACCCCTCTTCCCTCAAAACCCAACTCGAGTCCACCTTCGCCAACCTCCAAAACCAAG
>ppa020724m
CTCCAACAAGCCTTCACCAACATCCAAAATCATTGCTCTGGTTTCCTGCACCACCTCTCTCACTTTCCTGTCTTCAACCC
CAACCCCTCTTCCCTCAAAACCCAACTCGAGTCCACCTTCGCCAACCTCCAAAACCAAG
......
Many thanks.
what have you tried?
Forget perl, just use
cut
.