Skip to content

Handle KeyError in TabFileReaderWithOxbow.query(). - #126

Merged
Nanguage merged 1 commit into
GangCaoLab:masterfrom
ljw20180420:query_error
Sep 4, 2026
Merged

Handle KeyError in TabFileReaderWithOxbow.query().#126
Nanguage merged 1 commit into
GangCaoLab:masterfrom
ljw20180420:query_error

Conversation

@ljw20180420

Copy link
Copy Markdown
Contributor

TabFileReader.query_var_chr will try gr.change_chrom_names() if the original gr cannot find maps in the given region. This may cause a query of non-existing chrom, thereby raising KeyError. TabFileReaderWithOxbow.query only handle ValueError but not KeyError.

@Nanguage
Nanguage merged commit 9c50a30 into GangCaoLab:master Sep 4, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants