def build_cmd(seq, out_file, query_id, args):
    """
    Builds a command to run blast.py on the command line.
    
    :param seq: A fasta sequence to BLAST
    :param out_file: The name of the file to store the results in
    :param query_id: The id of the query
    :param args: A dictionary of arguments need for the BLAST and EC search 
                 from online databases.
    :return: The command to run blast.py on the command line.
    """
    cmd = ["py", "blast.py", \
            "--fasta_sequence", seq, \
            "--program" , args['--program'], \
            "--email", args["--email"], \
            "--out_file", out_file, \
            "--id", str(query_id), \
            "--min_pct_idnt", str(args["--min_pct_idnt"]), \
            "--min_qry_cvr", str(args["--min_qry_cvr"]), \
            "--max_blast_hits", str(args["--max_blast_hits"]), \
            "--max_uniprot_hits", str(args["--max_uniprot_hits"])]
    return cmd