Sample Header Ad - 728x90

how to print file name and total number of fasta sequences?

0 votes
3 answers
823 views
I have a fasta file namely test.fasta, pas.fasta, cel.fasta as shown below test.fasta >tile ATGTC >259 TGAT pas.fasta >ta ATGCT cel.fasta >787 TGTAG >yog TGTAT >In NNTAG I need to print the file name and the total number of fasta sequences as shown below, test,2 pas,1 cel,3 I have used the following commands but failed to serve my purpose grep ">" test.fasta | wc -l && ls test.fasta Please help me to do the same. Thanks in advance.
Asked by Kumar (129 rep)
Sep 5, 2021, 01:44 PM
Last activity: Mar 16, 2024, 09:12 AM