Write a metadata JSON file from a FASTA file

This example shows how to read in a FASTA to structure metadata and write to a JSON file.

Example

prompt> fasta_to_structmeta.py seq.fasta chainIDs output.JSON

Code

Download code

fasta_to_structmeta.py