Skip to content

Nabil-Fareed Alikhan

Dirty python script to merge fasta files

Posts1 min read

Motivation & Requirements

Here is a Dirty python script to look in a directory, find fasta files (ext. ".fa"), and modify the header and merge them into a single fasta file. This will only look one directory down. It is not recursive. It won't even check if the directory records are directories, so it is pretty fragile.

I wrote this in a HURRY.


  • Python 3.7
  • Biopython module