Skip to content

Commit 322383f

Browse files
Merge branch 'main' into il-improve-l2g-tracking
2 parents f43bd43 + 7dfce61 commit 322383f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1641
-630
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
with:
1212
fetch-depth: 0
1313
- name: Set up Python
14-
uses: actions/setup-python@v4
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: 3.10.8
1717
- name: Install and configure Poetry

.github/workflows/pytest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
with:
99
fetch-depth: 1
1010
- name: Set up Python
11-
uses: actions/setup-python@v4
11+
uses: actions/setup-python@v5
1212
with:
1313
python-version: 3.10.8
1414
- name: Install and configure Poetry

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

config/datasets/gcp.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,20 @@ eqtl_catalogue_paths_imported: ${datasets.inputs}/preprocess/eqtl_catalogue/tabi
3030
gene_index: ${datasets.outputs}/gene_index
3131
variant_annotation: ${datasets.outputs}/variant_annotation
3232
variant_index: ${datasets.outputs}/variant_index
33+
study_index: ${datasets.outputs}/study_index
3334
study_locus: ${datasets.outputs}/study_locus
3435
credible_set: ${datasets.outputs}/credible_set
36+
summary_statistics: ${datasets.outputs}/summary_statistics
3537
study_locus_overlap: ${datasets.outputs}/study_locus_overlap
3638
colocalisation: ${datasets.outputs}/colocalisation
3739
v2g: ${datasets.outputs}/v2g
3840
ld_index: ${datasets.outputs}/ld_index
39-
catalog_study_index: ${datasets.outputs}/catalog_study_index
41+
catalog_study_index: ${datasets.study_index}/catalog
4042
catalog_study_locus: ${datasets.study_locus}/catalog_study_locus
41-
finngen_study_index: ${datasets.outputs}/finngen_study_index
42-
finngen_summary_stats: ${datasets.outputs}/finngen_summary_stats
43+
finngen_study_index: ${datasets.study_index}/finngen
44+
finngen_summary_stats: ${datasets.summary_statistics}/finngen
4345
from_sumstats_study_locus: ${datasets.study_locus}/from_sumstats
4446
from_sumstats_pics: ${datasets.credible_set}/from_sumstats
45-
ukbiobank_study_index: ${datasets.outputs}/ukbiobank_study_index
47+
ukbiobank_study_index: ${datasets.study_index}/ukbiobank
4648
l2g_model: ${datasets.outputs}/l2g_model
4749
l2g_predictions: ${datasets.outputs}/l2g_predictions
48-
eqtl_catalogue_study_index_out: ${datasets.outputs}/preprocess/eqtl_catalogue/study_index
49-
eqtl_catalogue_summary_stats_out: ${datasets.outputs}/preprocess/eqtl_catalogue/summary_stats
50-
51-
# Constants
52-
finngen_release_prefix: FINNGEN_R9
53-
finngen_sumstat_url_prefix: gs://finngen-public-data-r9/summary_stats/finngen_R9_
54-
finngen_sumstat_url_suffix: .gz

config/step/finngen.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
_target_: otg.finngen.FinnGenStep
2-
finngen_phenotype_table_url: ${datasets.finngen_phenotype_table_url}
3-
finngen_release_prefix: ${datasets.finngen_release_prefix}
4-
finngen_sumstat_url_prefix: ${datasets.finngen_sumstat_url_prefix}
5-
finngen_sumstat_url_suffix: ${datasets.finngen_sumstat_url_suffix}
62
finngen_study_index_out: ${datasets.finngen_study_index}
73
finngen_summary_stats_out: ${datasets.finngen_summary_stats}

config/step/gwas_catalog.yaml renamed to config/step/gwas_catalog_ingestion.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ catalog_ancestry_files: ${datasets.catalog_ancestries}
44
catalog_associations_file: ${datasets.catalog_associations}
55
catalog_sumstats_lut: ${datasets.catalog_sumstats_lut}
66
variant_annotation_path: ${datasets.variant_annotation}
7-
ld_index_path: ${datasets.ld_index}
87
catalog_studies_out: ${datasets.catalog_study_index}
98
catalog_associations_out: ${datasets.catalog_study_locus}

config/step/locus_to_gene.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ predictions_path: ${datasets.l2g_predictions}
1111
credible_set_path: ${datasets.credible_set}
1212
variant_gene_path: ${datasets.v2g}
1313
colocalisation_path: ${datasets.colocalisation}
14-
study_index_path: ${datasets.catalog_study_index}
14+
study_index_path: ${datasets.study_index}
1515
study_locus_overlap_path: ${datasets.study_locus_overlap}
1616
gold_standard_curation_path: ${datasets.l2g_gold_standard_curation}
1717
gene_interactions_path: ${datasets.gene_interactions}

config/step/pics.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
_target_: otg.pics.PICSStep
2-
study_locus_ld_annotated_in: ${datasets.from_sumstats_study_locus}
3-
picsed_study_locus_out: ${datasets.from_sumstats_pics}
2+
study_locus_ld_annotated_in: ???
3+
picsed_study_locus_out: ???

config/step/study_locus_overlap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
_target_: otg.overlaps.OverlapsIndexStep
2-
study_locus_path: ${datasets.outputs}/catalog_study_locus
3-
study_index_path: ${datasets.outputs}/catalog_study_index
2+
study_locus_path: ${datasets.outputs}/credible_set
3+
study_index_path: ${datasets.outputs}/study_index
44
overlaps_index_out: ${datasets.outputs}/study_locus_overlap

config/step/variant_index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
_target_: otg.variant_index.VariantIndexStep
22
variant_annotation_path: ${datasets.variant_annotation}
3-
study_locus_path: ${datasets.study_locus}
3+
credible_set_path: ${datasets.study_locus}
44
variant_index_path: ${datasets.variant_index}

docs/python_api/datasource/gwas_catalog/associations.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
title: Associations
33
---
44

5-
::: otg.datasource.gwas_catalog.associations.GWASCatalogAssociations
5+
::: otg.datasource.gwas_catalog.associations.GWASCatalogCuratedAssociationsParser
6+
7+
---
8+
9+
::: otg.datasource.gwas_catalog.associations.StudyLocusGWASCatalog

docs/python_api/datasource/gwas_catalog/study_index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
title: Study Index
33
---
44

5-
::: otg.datasource.gwas_catalog.study_index.GWASCatalogStudyIndex
5+
::: otg.datasource.gwas_catalog.study_index.StudyIndexGWASCatalogParser
6+
7+
---
8+
9+
::: otg.datasource.gwas_catalog.study_index.StudyIndexGWASCatalog

docs/python_api/step/gwas_catalog.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: GWAS Catalog
3+
---
4+
5+
::: otg.gwas_catalog_ingestion.GWASCatalogIngestionStep

0 commit comments

Comments
 (0)