Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build dictionaries from gtf file #87

Closed
Tracked by #64
ns-rse opened this issue Nov 29, 2024 · 0 comments · Fixed by #99
Closed
Tracked by #64

Build dictionaries from gtf file #87

ns-rse opened this issue Nov 29, 2024 · 0 comments · Fixed by #99
Labels

Comments

@ns-rse
Copy link
Contributor

ns-rse commented Nov 29, 2024

Currently we have...

    tx2gene = defaultdict(list)
    strand_dict = defaultdict(str)

    for entry in GTF.iterator(iotools.open_file(argv_as_dictionary["gtf_path"])):
        if not entry.feature == "transcript":
            continue
        strand_dict[entry.gene_id] = entry.strand
        tx2gene[entry.gene_id].append(entry.transcript_id)

    conversion_counts = list()
    conversion_dict = defaultdict(int)

NB converion_counts and conversion_dict are assigned but never used so I don't think these are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant