Entering edit mode
5.7 years ago
samlambrechts299
▴
170
Dear biostars,
I have a directory containing a few hundred subdirectories, each containing 7 fasta files. A significant fraction of these appear to be empty fasta files. Does anyone have an idea how to extract only those fasta sequences that are not empty?
Cheers,
Sam
Will they be truly empty, or will they have no sequence, but a header? Wouter's approach may not work if thats the case.
You can use the unix
find
command to find empty files, see for example https://www.cyberciti.biz/faq/unix-linux-find-all-empty-files/can you try this? samlambrechts299