Dear all,
I would like to have length of some selected contigs within a fasta file resulted from de novo transcriptome assembly. I have names of selected contigs in the txt file like here, could you please help me out to get it?
>contig1
>contig2
>contig3
Thanks
One of the easiest ways for this is to use samtools faidx contigs.fasta. The .fai file has the necessary information
If you need to extract prior then, remove the ">" and -