8000 fixed empty attribute bug in read_gtf when duplicate_attr=True by fairliereese · Pull Request #297 · pyranges/pyranges · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fixed empty attribute bug in read_gtf when duplicate_attr=True #297

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

Merged
merged 3 commits into from
May 1, 2023

Conversation

fairliereese
Copy link
Contributor
@fairliereese fairliereese commented Mar 13, 2023

Empty attributes were accounted for in read_gtf(duplicate_attr=False), but not read_gtf(duplicate_attr=True). This commit fixes the bug and moves the attribute parsing code to a separate function that both duplicate_attrs options will call to prevent future inconsistent behavior.

@fairliereese
Copy link
Contributor Author

Fixes #292

@fairliereese
Copy link
Contributor Author
fairliereese commented Mar 13, 2023

Latest commit fixes #291 by converting boolean columns into categoricals before assigning null values.

I figured this would be the best strategy as we can't assume anything about the T/F value of a boolean variable, though I guess I'm not sure if "-1" or -1 is the best null value in this case.

@endrebak
Copy link
Collaborator
endrebak commented Apr 30, 2023 via email

@endrebak endrebak merged commit b64542f into pyranges:master May 1, 2023
@endrebak
Copy link
Collaborator
endrebak commented May 1, 2023

Sorry for the late reply. Thanks again.

Have updated my contact info in github so I won't be this late ever again.

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
0