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

fix: updating config paths and fine-mapping methods #725

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Conversation

Daniel-Considine
Copy link
Contributor

@Daniel-Considine Daniel-Considine commented Aug 8, 2024

✨ Context

🛠 What does this PR implement

Updating the config paths for variant-to-gene in locus-to-gene-train/predict.

Also included SuSiE-inf as a possible option when filtering by fine mapping method for colocalisation step.

🙈 Missing

🚦 Before submitting

  • Do these changes cover one single feature (one change at a time)?
  • Did you read the contributor guideline?
  • Did you make sure to update the documentation with your changes?
  • Did you make sure there is no commented out code in this PR?
  • Did you follow conventional commits standards in PR title and commit messages?
  • Did you make sure the branch is up-to-date with the dev branch?
  • Did you write any new necessary tests?
  • Did you make sure the changes pass local tests (make test)?
  • Did you make sure the changes pass pre-commit rules (e.g poetry run pre-commit run --all-files)?

@github-actions github-actions bot added bug Something isn't working size-S Step labels Aug 8, 2024
Copy link
Contributor

@ireneisdoomed ireneisdoomed left a comment

Choose a reason for hiding this comment

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

Ty for picking this up!

@@ -40,7 +41,7 @@ def __init__(
credible_set = (
StudyLocus.from_parquet(
session, credible_set_path, recursiveFileLookup=True
).filter(col("finemappingMethod") == "SuSie")
).filter(col("finemappingMethod").isin("SuSie", "SuSiE-inf"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we want to have all finemapping methods inside a directory so that we could import them and not hard code these values. We did something similar for coloc https://github.com/opentargets/gentropy/blob/bc1a1124b0744895f2ce246c23b62861ea600288/src/gentropy/colocalisation.py For the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure - I've just done this as a temporary fix. After this release we'll probably put together fine-mapping dictionary which includes all the different methods and the parameters for them.

@Daniel-Considine Daniel-Considine merged commit 5b5b408 into dev Aug 8, 2024
4 checks passed
@Daniel-Considine Daniel-Considine deleted the dc_l2g branch August 8, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size-XS Step
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants