Goal The input directory C:\data contains the files alpha.fas, alphabet.fasta, alpha.fap, and beta.fas. The goal is to collect all the sequences in the directory whose sequence sets begin with “alpha,” and whose extensions begin with “.fas,” and write them to the file results.fasta.
Script !datapath = "C:\data"
"results.fasta" = collect('alpha*.fas*')
Output Collects only the sequences from sequence sets alpha.fas and alphabet.fasta and saves them as a multi-sequence file named results.fasta.

The output can be split back into multiple files using the procedure in Split a multi-sequence file into individual files.

Need more help with this?

Thanks for your feedback.