/fasta_to_dict

Python function to convert a fasta file to a python dictionary

Primary LanguagePythonMIT LicenseMIT

fasta_to_dict

Python function that converts a fasta file to a python dictionary. Each fasta header will become a dictionary key, and its corresponding sequence will become its value.

takes one argument: path to fasta file

usage:

fasta_to_dict("./path/to/file.fa")