Skip to content

Commit 13930be

Browse files
committed
chore: merge main
2 parents 63566e8 + 7a076ad commit 13930be

File tree

111 files changed

+2158
-956
lines changed

Some content is hidden

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

111 files changed

+2158
-956
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: 3 additions & 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
@@ -30,6 +30,8 @@ jobs:
3030
run: poetry install --no-interaction --no-root
3131
- name: Install library
3232
run: poetry install --no-interaction
33+
- name: Check dependencies
34+
run: poetry run deptry .
3335
- name: Run tests
3436
run: poetry run pytest
3537
- name: Upload coverage to Codecov

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ repos:
1010
- id: check-json
1111
- id: check-toml
1212
- id: check-yaml
13-
- id: pretty-format-json
14-
args:
15-
- --autofix
16-
- --no-ensure-ascii
17-
- --no-sort-keys
1813
- id: check-ast
1914
- id: debug-statements
2015
- id: check-docstring-first
@@ -96,3 +91,9 @@ repos:
9691
rev: 0.3.8
9792
hooks:
9893
- id: pydoclint
94+
95+
- repo: https://github.com/pre-commit/mirrors-prettier
96+
rev: "v3.0.3"
97+
hooks:
98+
- id: prettier
99+
args: ["--staged"]

.vscode/extensions.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"ms-python.isort",
55
"ms-python.mypy-type-checker",
66
"ms-python.python",
7-
"ms-python.black-formatter"
7+
"ms-python.black-formatter",
8+
"esbenp.prettier-vscode"
89
],
9-
"unwantedRecommendations": [
10-
"ms-python.flake8"
11-
]
10+
"unwantedRecommendations": ["ms-python.flake8"]
1211
}

.vscode/launch.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"program": "${file}",
99
"console": "integratedTerminal",
1010
"justMyCode": true,
11-
"args": [
12-
"--config-dir=./configs"
13-
]
11+
"args": ["--config-dir=./configs"]
1412
},
1513
{
1614
"name": "Python: Current File [local]",
@@ -19,10 +17,7 @@
1917
"program": "${file}",
2018
"console": "integratedTerminal",
2119
"justMyCode": true,
22-
"args": [
23-
"--config-dir=./configs",
24-
"environment=local"
25-
]
20+
"args": ["--config-dir=./configs", "environment=local"]
2621
}
2722
]
2823
}

.vscode/settings.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
"source.organizeImports": true
99
}
1010
},
11-
"python.terminal.launchArgs": [
12-
"-m",
13-
"IPython",
14-
"--no-autoindent"
15-
],
11+
"python.terminal.launchArgs": ["-m", "IPython", "--no-autoindent"],
1612
"[jsonc]": {
1713
"editor.tabSize": 2,
1814
"editor.insertSpaces": true,
@@ -23,16 +19,9 @@
2319
}
2420
},
2521
"json.format.keepLines": true,
26-
"isort.args": [
27-
"--profile",
28-
"black"
29-
],
22+
"isort.args": ["--profile", "black"],
3023
"autoDocstring.docstringFormat": "google",
31-
"python.testing.pytestArgs": [
32-
".",
33-
"--doctest-modules",
34-
"--cov=src/"
35-
],
24+
"python.testing.pytestArgs": [".", "--doctest-modules", "--cov=src/"],
3625
"python.testing.unittestEnabled": false,
3726
"python.testing.pytestEnabled": true,
3827
"mypy-type-checker.severity": {

LICENSE.md

Lines changed: 183 additions & 183 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/opentargets/genetics_etl_python/main.svg)](https://results.pre-commit.ci/badge/github/opentargets/genetics_etl_python)
77

88
# Genetics Portal Data Pipeline (experimental)
9+
910
- [Documentation](https://opentargets.github.io/genetics_etl_python/)

codecov.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
comment:
32
layout: "reach, diff, flags, files"
43
behavior: default
5-
require_changes: false # if true: only post the comment if coverage changes
4+
require_changes: false # if true: only post the comment if coverage changes
65

76
coverage:
87
status:

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = {extends: ['@commitlint/config-conventional']};
1+
module.exports = { extends: ["@commitlint/config-conventional"] };

config/datasets/gcp.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ anderson: gs://genetics-portal-input/v2g_input/andersson2014/enhancer_tss_associ
1111
javierre: gs://genetics-portal-input/v2g_input/javierre_2016_preprocessed.parquet
1212
jung: gs://genetics-portal-raw/pchic_jung2019/jung2019_pchic_tableS3.csv
1313
thurman: gs://genetics-portal-input/v2g_input/thurman2012/genomewideCorrs_above0.7_promoterPlusMinus500kb_withGeneNames_32celltypeCategories.bed8.gz
14-
catalog_associations: ${datasets.inputs}/v2d/gwas_catalog_v1.0.2-associations_e110_r2023-09-11.tsv
15-
catalog_studies: ${datasets.inputs}/v2d/gwas-catalog-v1.0.3-studies-r2023-09-11.tsv
16-
catalog_ancestries: ${datasets.inputs}/v2d/gwas-catalog-v1.0.3-ancestries-r2023-09-11.tsv
17-
catalog_sumstats_lut: ${datasets.inputs}/v2d/harmonised_list-r2023-09-11.txt
14+
catalog_associations: ${datasets.inputs}/v2d/gwas_catalog_v1.0.2-associations_e110_r2023-11-24.tsv
15+
catalog_studies:
16+
# To get a complete representation of all GWAS Catalog studies, we need to ingest the list of unpublished studies from a different file.
17+
- ${datasets.inputs}/v2d/gwas-catalog-v1.0.3-studies-r2023-11-24.tsv
18+
- ${datasets.inputs}/v2d/gwas-catalog-v1.0.3-unpublished-studies-r2023-11-24.tsv
19+
catalog_ancestries:
20+
- ${datasets.inputs}/v2d/gwas-catalog-v1.0.3-ancestries-r2023-11-24.tsv
21+
- ${datasets.inputs}/v2d/gwas-catalog-v1.0.3-unpublished-ancestries-r2023-11-24.tsv
22+
catalog_sumstats_lut: ${datasets.inputs}/v2d/harmonised_list-r2023-11-24a.txt
1823
ukbiobank_manifest: gs://genetics-portal-input/ukb_phenotypes/neale2_saige_study_manifest.190430.tsv
1924
l2g_gold_standard_curation: ${datasets.inputs}/l2g/gold_standard/curation.json
2025
gene_interactions: ${datasets.inputs}/l2g/interaction # 23.09 data
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
_target_: otg.gwas_catalog.GWASCatalogStep
2-
catalog_studies_file: ${datasets.catalog_studies}
3-
catalog_ancestry_file: ${datasets.catalog_ancestries}
2+
catalog_study_files: ${datasets.catalog_studies}
3+
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}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_target_: otg.gwas_catalog_sumstat_preprocess.GWASCatalogSumstatsPreprocessStep
2+
raw_sumstats_path: ???
3+
out_sumstats_path: ???

docs/assets/javascripts/extra.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$('.contributors img[data-src]').each(function () {
2-
src = $(this).attr("data-src");
3-
$(this).attr('src', src);
1+
$(".contributors img[data-src]").each(function () {
2+
src = $(this).attr("data-src");
3+
$(this).attr("src", src);
44
});
Lines changed: 45 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,50 @@
11
<hr />
22
<div class="md-source-file">
3-
<small>
4-
<ul class="metadata page-metadata" data-bi-name="page info" lang="en-us" dir="ltr">
5-
<!-- mkdocs-git-revision-date-plugin -->
6-
{% if page.meta.git_creation_date_localized %}
7-
<li>
8-
<span class="icon twemoji">
9-
{% include ".icons/material/clock-plus-outline.svg" %}
10-
</span>
11-
<span class="label">
12-
{{ page.meta.git_creation_date_localized }}
13-
</span>
14-
</li>
15-
{% endif %}
3+
<small>
4+
<ul
5+
class="metadata page-metadata"
6+
data-bi-name="page info"
7+
lang="en-us"
8+
dir="ltr"
9+
>
10+
<!-- mkdocs-git-revision-date-plugin -->
11+
{% if page.meta.git_creation_date_localized %}
12+
<li>
13+
<span class="icon twemoji">
14+
{% include ".icons/material/clock-plus-outline.svg" %}
15+
</span>
16+
<span class="label"> {{ page.meta.git_creation_date_localized }} </span>
17+
</li>
18+
{% endif %} {% if page.meta.git_revision_date_localized %}
19+
<li>
20+
<span class="icon twemoji">
21+
{% include ".icons/material/clock-edit-outline.svg" %}
22+
</span>
23+
<span class="label"> {{ page.meta.git_revision_date_localized }} </span>
24+
</li>
25+
{% endif %}
1626

17-
{% if page.meta.git_revision_date_localized %}
18-
<li>
19-
<span class="icon twemoji">
20-
{% include ".icons/material/clock-edit-outline.svg" %}
21-
</span>
22-
<span class="label">
23-
{{ page.meta.git_revision_date_localized }}
24-
</span>
25-
</li>
26-
{% endif %}
27-
28-
<li>
29-
<span class="icon twemoji">
30-
{% include ".icons/material/github.svg" %}
31-
</span>
32-
<span class="label">
33-
Contributors
34-
</span>
35-
</li>
36-
<li class="contributors-holder">
37-
<ul class="contributors" data-bi-name="contributors">
38-
{%- for user in committers -%}
39-
<li><a href="{{ user.url }}" title="{{ user.name }}" data-bi-name="contributorprofile"
40-
target="_blank"><img src="{{ user.avatar }}" alt="{{ user.name }}"></a></li>
41-
{%- endfor -%}
42-
</ul>
43-
</li>
27+
<li>
28+
<span class="icon twemoji">
29+
{% include ".icons/material/github.svg" %}
30+
</span>
31+
<span class="label"> Contributors </span>
32+
</li>
33+
<li class="contributors-holder">
34+
<ul class="contributors" data-bi-name="contributors">
35+
{%- for user in committers -%}
36+
<li>
37+
<a
38+
href="{{ user.url }}"
39+
title="{{ user.name }}"
40+
data-bi-name="contributorprofile"
41+
target="_blank"
42+
><img src="{{ user.avatar }}" alt="{{ user.name }}"
43+
/></a>
44+
</li>
45+
{%- endfor -%}
4446
</ul>
45-
</small>
47+
</li>
48+
</ul>
49+
</small>
4650
</div>

docs/assets/stylesheets/extra.css

Lines changed: 43 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,75 @@
11
.metadata {
2-
list-style: none;
3-
padding: 0;
4-
margin: 0;
5-
margin-bottom: 15px;
6-
color: #999;
2+
list-style: none;
3+
padding: 0;
4+
margin: 0;
5+
margin-bottom: 15px;
6+
color: #999;
77
}
88

99
.metadata.page-metadata .contributors-text {
10-
margin-right: 5px;
11-
display: inline-block;
10+
margin-right: 5px;
11+
display: inline-block;
1212
}
1313

1414
.metadata.page-metadata {
15-
display: flex !important;
16-
flex-direction: row;
17-
align-items: center;
18-
font-size: 1.2em;
15+
display: flex !important;
16+
flex-direction: row;
17+
align-items: center;
18+
font-size: 1.2em;
1919
}
2020

21-
2221
.metadata.page-metadata li {
23-
list-style: none;
24-
display: flex;
25-
flex-direction: row;
26-
justify-content: center;
27-
align-items: center;
28-
margin-bottom: 0 !important;
22+
list-style: none;
23+
display: flex;
24+
flex-direction: row;
25+
justify-content: center;
26+
align-items: center;
27+
margin-bottom: 0 !important;
2928
}
3029

31-
3230
.metadata.page-metadata li .icon {
33-
width: 1.1rem;
34-
height: 1.1rem;
35-
margin-right: 2px;
31+
width: 1.1rem;
32+
height: 1.1rem;
33+
margin-right: 2px;
3634
}
3735

38-
3936
.metadata.page-metadata li .icon svg {
40-
fill: #999;
37+
fill: #999;
4138
}
4239

43-
4440
.page-metadata .contributors-holder {
45-
margin: 0 !important;
46-
margin-left: 1em;
41+
margin: 0 !important;
42+
margin-left: 1em;
4743
}
4844

4945
.page-metadata .contributors {
50-
margin-right: 5px;
51-
display: inline-block;
52-
list-style: none;
53-
display: flex;
54-
flex-direction: row;
46+
margin-right: 5px;
47+
display: inline-block;
48+
list-style: none;
49+
display: flex;
50+
flex-direction: row;
5551
}
5652

5753
.page-metadata .contributors li {
58-
display: inline-flex;
59-
margin: 0 !important;
60-
padding: 0 !important;
54+
display: inline-flex;
55+
margin: 0 !important;
56+
padding: 0 !important;
6157
}
6258

6359
.page-metadata .contributors li img {
64-
border-radius: 50%;
65-
filter: grayscale(100%);
66-
-webkit-filter: grayscale(100%);
67-
opacity: 0.8;
68-
vertical-align: middle;
69-
width: 1.6rem;
70-
transition: all 0.2s ease-in-out;
60+
border-radius: 50%;
61+
filter: grayscale(100%);
62+
-webkit-filter: grayscale(100%);
63+
opacity: 0.8;
64+
vertical-align: middle;
65+
width: 1.6rem;
66+
transition: all 0.2s ease-in-out;
7167
}
7268

7369
.page-metadata .contributors li img:hover {
74-
opacity: 1;
75-
filter: grayscale(0%);
76-
-webkit-filter: grayscale(0%);
77-
vertical-align: middle;
78-
transform: scale(1.2);
70+
opacity: 1;
71+
filter: grayscale(0%);
72+
-webkit-filter: grayscale(0%);
73+
vertical-align: middle;
74+
transform: scale(1.2);
7975
}

0 commit comments

Comments
 (0)