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

Add function for adding gencode annotation #681

Merged
merged 8 commits into from
Mar 4, 2024
Merged

Conversation

klaricch
Copy link
Contributor

@klaricch klaricch commented Mar 4, 2024

No description provided.

Copy link
Contributor

@ch-kr ch-kr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one suggestion and a few nitpicks

gnomad/utils/constraint.py Outdated Show resolved Hide resolved
gnomad/utils/constraint.py Show resolved Hide resolved
gnomad/utils/constraint.py Show resolved Hide resolved
gnomad/utils/constraint.py Outdated Show resolved Hide resolved
gnomad/utils/constraint.py Outdated Show resolved Hide resolved
klaricch and others added 3 commits March 4, 2024 11:01
Co-authored-by: Katherine Chao <kchao@broadinstitute.org>
@klaricch klaricch requested a review from ch-kr March 4, 2024 16:53
Copy link
Contributor

@ch-kr ch-kr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestion + question about length

gnomad/utils/constraint.py Outdated Show resolved Hide resolved
gnomad/utils/constraint.py Outdated Show resolved Hide resolved
gnomad/utils/constraint.py Show resolved Hide resolved
gnomad/utils/constraint.py Show resolved Hide resolved
@klaricch klaricch requested a review from ch-kr March 4, 2024 19:47
Copy link
Contributor

@ch-kr ch-kr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor note about overwrite but LGTM!

)

gencode_cds = gencode_cds.checkpoint(
new_temp_file(prefix="gencode_cds", extension="ht")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor comment that I missed before -- should you specify overwrite=True here? (or add an overwrite argument to the function to control _read_if_exists vs overwrite)

Copy link
Contributor Author

@klaricch klaricch Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't matter what overwrite is set to if new_temp_file is used (distinct name each time)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooh, really? that's really cool! but then I guess you lose the functionality of reading from existing files for slower pipelines

@klaricch klaricch merged commit 7e4f8eb into main Mar 4, 2024
3 checks passed
@klaricch klaricch deleted the kl/length_and_chr branch March 4, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants