def parse_CPC2_output(path):
    """Returns sequence IDs lists of cds and non-coding sequences. To to passed into fasta subset."""
    with open(path, "r") as f:
        contents= f.read().split("\n")
    cds=[]
    ncds=[]
    for line in contents:
        if line.split("\t")[-1] == "noncoding":
            ncds+=[line.split("\t")[0]]
        elif line.split("\t")[-1] == "coding":
            cds+=[line.split("\t")[0]]
    return cds, ncds