Study Index
gentropy.datasource.eqtl_catalogue.study_index.EqtlCatalogueStudyIndex
¶
Study index dataset from eQTL Catalogue.
We extract study level metadata from eQTL Catalogue's fine mapping results. All available studies can be found here.
One study from the eQTL Catalogue clusters together all the molecular QTLs (mQTLs) that were found:
- in the same publication (e.g. Alasoo_2018)
- in the same cell type or tissue (e.g. monocytes)
- and for the same measured molecular trait (e.g. ENSG00000141510)
Source code in src/gentropy/datasource/eqtl_catalogue/study_index.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
from_susie_results(processed_finemapping_df: DataFrame) -> StudyIndex
classmethod
¶
Ingest study level metadata from eQTL Catalogue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
processed_finemapping_df
|
DataFrame
|
processed fine mapping results with study metadata. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
StudyIndex |
StudyIndex
|
eQTL Catalogue study index dataset derived from the selected SuSIE results. |
Source code in src/gentropy/datasource/eqtl_catalogue/study_index.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
read_studies_from_source(metadata_path: str, mqtl_quantification_methods_blacklist: list[str], session: Session | None = None) -> DataFrame
classmethod
¶
Read raw studies metadata from eQTL Catalogue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metadata_path
|
str
|
Path to the studies metadata file. |
required |
mqtl_quantification_methods_blacklist
|
list[str]
|
Molecular trait quantification methods that we don't want to ingest. Available options in https://github.com/eQTL-Catalogue/eQTL-Catalogue-resources/blob/master/data_tables/dataset_metadata.tsv |
required |
session
|
Session | None
|
Session object. If not provided, the method will try to find an active session. Defaults to None. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
DataFrame |
DataFrame
|
raw studies metadata. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If an invalid quantification method is provided in the blacklist. |
Example metadata_path: "https://raw.githubusercontent.com/eQTL-Catalogue/eQTL-Catalogue-resources/fe3c4b4ed911b3a184271a6aadcd8c8769a66aba/data_tables/dataset_metadata.tsv"
Source code in src/gentropy/datasource/eqtl_catalogue/study_index.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |