Skip to content

Commit

Permalink
gffparse: various typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kdm9 committed Feb 20, 2024
1 parent 1815671 commit 7664a97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions blsl/gffparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
GFFRecord = namedtuple("GFFRecord", gffInfoFields)

ontological_order = [
"chromosome", "gene", "pseudogene", "pseudogenic_region", "mRNA", "transcript", "pseudogeneic_transcript",
"chromosome", "gene", "pseudogene", "pseudogenic_region", "mRNA", "transcript", "pseudogenic_transcript",
"exon", "pseudogenic_exon", "five_prime_UTR", "three_prime_UTR", "CDS", "pseudogenic_CDS",
]

Expand Down Expand Up @@ -97,10 +97,11 @@ def gff_heirarchy(filename, progress=None, make_missing_genes=False):
levels = {
"repeat_region": "l1",
"pseudogene": "l1",
"pseuodgenic_region": "l1",
"pseudogenic_region": "l1",
"transposable_element_gene": "l1",
"gene": "l1",
"tRNA": "l2",
"pseudogenic_transcript": "l2",
"tmRNA": "l2",
"mRNA": "l2",
"exon": "l3",
Expand Down Expand Up @@ -170,7 +171,7 @@ def gff_heirarchy(filename, progress=None, make_missing_genes=False):
print(f"L2 entry {id} parent {parent} not in records? {record}")
else:
try:
parent = record["attributes"].get("Parent", records["attributes"].get("transcript_id", None))
parent = record["attributes"].get("Parent", record["attributes"].get("transcript_id", None))
top = l2l1[parent]
if id in records[top]["children"][parent]["children"]:
i += 1
Expand Down

0 comments on commit 7664a97

Please sign in to comment.