import json


def format_file_data_into_json(data_file):
    """input: data_file (sequence ids separated by \n)
       output: json request structure of gene ids to pass to datasets api
    """
    with open(data_file, "r") as f:
        content = f.read()
    genes = content.strip().split("\n")
    return json.dumps({'gene_ids': [int(gene) for gene in genes], 'include_annotation_type':['FASTA_PROTEIN']})