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 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|
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
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
get_studies_of_interest(studies_metadata: DataFrame) -> list[str]
classmethod
¶
Filter studies of interest from the raw studies metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
studies_metadata |
DataFrame
|
raw studies metadata filtered with studies of interest. |
required |
Returns:
Type | Description |
---|---|
list[str]
|
list[str]: QTD IDs defining the studies of interest for ingestion. |
Source code in src/gentropy/datasource/eqtl_catalogue/study_index.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
read_studies_from_source(session: Session, mqtl_quantification_methods_blacklist: list[str]) -> DataFrame
classmethod
¶
Read raw studies metadata from eQTL Catalogue.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session |
Session
|
Spark session. |
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 |
Returns:
Name | Type | Description |
---|---|---|
DataFrame |
DataFrame
|
raw studies metadata. |
Source code in src/gentropy/datasource/eqtl_catalogue/study_index.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|