forked from CBIIT/CCDC-WebService
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataset.service.test.fixtures.js
More file actions
214 lines (211 loc) · 16.3 KB
/
Copy pathdataset.service.test.fixtures.js
File metadata and controls
214 lines (211 loc) · 16.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/**
* Fixtures for the dataset.service.test.js file
*/
export const inclusiveSearchText = ''; // Search text that matches all datasets
export const normalSearchText = 'multiple myeloma';
export const inclusiveFilters = {}; // Filters that match all datasets
export const normalFilters = {
primary_disease: [
"Melanoma",
"Multiple Cancer Types",
],
dataset_source_repo: [
"CEDCD",
"dbGaP",
],
};
export const inclusiveOptions = {}; // Options that match all datasets
export const normalOptions = {
pageInfo: {
page: 1,
pageSize: 10,
},
sort: {
name: "Dataset",
k: "dataset_title_sort",
v: "asc",
},
};
// Copied from the actual Opensearch response received inside the search() function
// Truncated to only 3 results
export const normalOpensearchResults = {
hits: {
total: {
value: 105,
relation: "eq",
},
max_score: null,
hits: [
{
_index: "datasets",
_id: "wgKss5sBxNS2-GapIa8v",
_score: null,
_source: {
dataset_maximum_age_at_baseline: null,
related_terms: "Breast Carcinoma In Situ;Carcinoma, Ductal, Breast;Multifactorial Inheritance;LCIS - lobular carcinoma in situ;LCIS, Lobular Carcinoma In Situ;Lobular Carcinoma In Situ",
description: "<p>We evaluate the validity of repurposing archival tissue specimens for germline genetic studies. We performed lc-WGS and imputed genotypes on 10 pairs of matching blood and tumor tissue and benchmarked the accuracy of genome-wide genotypes, HLA haplotypes, and several polygenic risk scores (PRSs). The reported results indicate the high accuracy of germline genotypes and haplotypes obtained from archival tissue DNA. Using this methodology, we estimate breast cancer PRS in 36 Ductal carcinoma in situ (DCIS) patients and demonstrate its association with breast cancer subsequent event (BCSE). </p><p>A description of this work is available in medRxiv: <a href='https://www.medrxiv.org/content/10.1101/2022.03.31.22273116v1' target='_blank'>https://www.medrxiv.org/content/10.1101/2022.03.31.22273116v1</a><br></p>",
dataset_year_enrollment_ended: null,
study_links: "",
dataset_source_id: "phs002865",
limitations_for_reuse: "GRU",
funding_source: "",
related_genes: "",
experimental_approaches: null,
dataset_title: "Accurate Genome-Wide Germline DNA Profiling from Decade-Old Archival Tissue Specimens",
dataset_pmid: "",
dataset_doc: "Office of Data Sharing (ODS)",
related_diseases: "Multifactorial Inheritance;Carcinoma, Ductal, Breast;Breast Neoplasms;Breast Carcinoma In Situ;Sequence Analysis;High-Throughput Nucleotide Sequencing;Genotyping Techniques;Prognosis",
PI_name: "Olivier Harismendy",
dataset_source_repo: "dbGaP",
participant_count: 50,
study_type: "Sequencing",
release_date: "2022-08-25",
dataset_minimum_age_at_baseline: null,
primary_disease: "Multiple Cancer Types",
sample_count: 50,
dataset_source_url: "https://www.ncbi.nlm.nih.gov/projects/gap/cgi-bin/study.cgi?study_id=phs002865",
dataset_year_enrollment_started: null,
institute: null,
assay_method: "WGS",
},
highlight: {
"description.search": [
"<p>We evaluate the validity of repurposing archival tissue specimens for germline genetic studies. We performed lc-WGS and imputed genotypes on 10 pairs of matching blood and tumor tissue and benchmarked the accuracy of genome-wide genotypes, HLA haplotypes, and several polygenic risk scores (PRSs). The reported res<b>ult</b>s indicate the high accuracy of germline genotypes and haplotypes obtained from archival tissue DNA. Using this methodology, we estimate breast cancer PRS in 36 Ductal carcin<b>oma</b> in situ (DCIS) patients and demonstrate its association with breast cancer subsequent event (BCSE). </p><p>A description of this work is available in medRxiv: <a href='https://www.medrxiv.org/content/10.1101/2022.03.31.22273116v1' target='_blank'>https://www.medrxiv.org/content/10.1101/2022.03.31.22273116v1</a><br></p>",
],
"primary_disease.search": [
"<b>Multiple</b> Cancer Types",
],
},
sort: [
"accurategenomewidegermlinednaprofilingfromdecadeoldarchivaltissuespecimens",
],
},
{
_index: "datasets",
_id: "-AKss5sBxNS2-GapMLLe",
_score: null,
_source: {
dataset_maximum_age_at_baseline: 69,
related_terms: "Buffy Coat and/or Lymphocytes, Feces, Saliva and/or Buccal, Serum and/or Plasma, Tumor Tissue FFPE, Tumor Tissue Fresh/Frozen, Urine",
description: "The Black Women's Health Study (BWHS) is an ongoing follow-up study for cancer and other serious illnesses in U.S. Black women. The study began in 1995 when 59,000 women (median age, 38) from across the U.S. enrolled by completing health questionnaires. The BWHS has successfully followed participants with biennial questionnaires for data on incident disease and medical, reproductive, behavioral, psychosocial, and socioeconomic factors. Follow-up is also conducted through 24 cancer registries and the National Death Index. Participants' addresses have been linked to U.S. census data and to air pollution data. Cancer diagnoses are validated by pathology data from hospitals and cancer registries. A DNA biorepository was established through collection of cheek cell samples from 26,800 participants. Additionally, approximately 13,000 participants have provided blood samples and 900 have provided tumor tissue. The top priority of the BWHS is to conduct research on diseases that disproportionately affect Black Americans, including cancers, stroke, heart disease, type 2 diabetes, chronic kidney disease, lupus, sarcoidosis, and others.",
dataset_year_enrollment_ended: "1995",
study_links: "http://www.bu.edu/bwhs/",
dataset_source_id: "82",
limitations_for_reuse: "",
funding_source: "",
related_genes: "",
experimental_approaches: null,
dataset_title: "A Follow-up Study for Causes of Cancer in Black Women: Black Women's Health Study",
dataset_pmid: "",
dataset_doc: "Division of Cancer Control and Population Sciences (DCCPS)",
related_diseases: "All Other Cancers, Bladder, Bone, Brain, Cervical carcinoma in situ (CIN II/III, CIS, AIS), Cervix (Squamous cell carcinoma, Adenocarcinoma), Colon, Corpus, body of uterus, Ductal carcinoma in situ of breast, Esophagus, Gall bladder and extrahepatic bile ducts, Hodgkin Lymphoma, Invasive Breast Cancer, Kidney and other unspecified urinary organs, Leukemia, Liver and intrahepatic bile ducts, Lung and bronchus, Melanoma (excluding mucosal sites), Myeloma, No Cancer, Non-Hodgkin Lymphoma, Oropharyngeal, Ovary, fallopian tube, broad ligament, Pancreas, Prostate, Rectum and anus, Small intestine, Stomach, Thyroid",
PI_name: "Julie Palmer, ScD, Lynn Rosenberg, ScD",
dataset_source_repo: "CEDCD",
participant_count: 59000,
study_type: "Etiology",
release_date: null,
dataset_minimum_age_at_baseline: 21,
primary_disease: "Multiple Cancer Types",
sample_count: null,
dataset_source_url: "https://cedcd.nci.nih.gov/cohort?id=82",
dataset_year_enrollment_started: "1995",
institute: null,
assay_method: "",
},
highlight: {
"description.search": [
"The Black Women's Health Study (BWHS) is an ongoing follow-up study for cancer and other serious illnesses in U.S. Black women. The study began in 1995 when 59,000 women (median age, 38) from across the U.S. enrolled by com<b>ple</b>ting health questionnaires. The BWHS has successfully followed participants with biennial questionnaires for data on incident disease and medical, reproductive, behavioral, psychosocial, and socioeconomic factors. Follow-up is also conducted through 24 cancer registries and the National Death Index. Participants' addresses have been linked to U.S. census data and to air pollution data. Cancer diagnoses are validated by pathology data from hospitals and cancer registries. A DNA biorepository was established through collection of cheek cell sam<b>ple</b>s from 26,800 participants. Additionally, approximately 13,000 participants have provided blood sam<b>ple</b>s and 900 have provided tumor tissue. The top priority of the BWHS is to conduct research on diseases that disproportionately affect Black Americans, including cancers, stroke, heart disease, type 2 diabetes, chronic kidney disease, lupus, sarcoidosis, and others.",
],
"primary_disease.search": [
"<b>Multiple</b> Cancer Types",
],
"related_diseases.search": [
"All Other Cancers, Bladder, Bone, Brain, Cervical carcinoma in situ (CIN II/III, CIS, AIS), Cervix (Squamous cell carcinoma, Adenocarcinoma), Colon, Corpus, body of uterus, Ductal carcinoma in situ of breast, Esophagus, Gall bladder and extrahepatic bile ducts, Hodgkin Lymphoma, Invasive Breast Cancer, Kidney and other unspecified urinary organs, Leukemia, Liver and intrahepatic bile ducts, Lung and bronchus, Melanoma (excluding mucosal sites), <b>Myeloma,</b> No Cancer, Non-Hodgkin Lymphoma, Oropharyngeal, Ovary, fallopian tube, broad ligament, Pancreas, Prostate, Rectum and anus, Small intestine, Stomach, Thyroid",
],
},
sort: [
"afollowupstudyforcausesofcancerinblackwomenblackwomenshealthstudy",
],
},
{
_index: "datasets",
_id: "7QKss5sBxNS2-GapMLLe",
_score: null,
_source: {
dataset_maximum_age_at_baseline: 64,
related_terms: "Buffy Coat and/or Lymphocytes, Feces, Saliva and/or Buccal, Serum and/or Plasma, Tumor Tissue FFPE, Tumor Tissue Fresh/Frozen, Urine",
description: "This study explores potential causes of cancer and other diseases among farmers and their families and among commercial pesticide applicators. Current medical research suggests that while agricultural workers are generally healthier than the general U.S. population, they may have higher rates of some cancers, including leukemia, myeloma, non-Hodgkin's lymphoma, and cancers of the lip, stomach, skin, brain, and prostate. Other conditions, like asthma, neurologic disease, and adverse reproductive outcomes may also be related to agricultural exposures. The Agricultural Health Study is designed to identify occupational, lifestyle, and genetic factors that may affect the rate of diseases in farming populations. The Agricultural Health Study began in 1994, and will continue to gather information for a number of years about the health of pesticide applicators and their families, details on occupational practices, and information on lifestyle and diet on a periodic basis. The complete set of questionnaires External Web Site Policy may be viewed. Personal identifying information on participants is kept confidential and used only by research staff. Names are not included in any reports. The study results are reported as statistical summaries only. North Carolina and Iowa were selected for this important study based on a nationwide competition. Both states have strong agricultural sectors with diverse production methods, commodities, and products. Information we learn from these two states will be helpful to farmers throughout the United States and other countries using modern agricultural technologies.",
dataset_year_enrollment_ended: "1997",
study_links: "http://aghealth.nih.gov/",
dataset_source_id: "109",
limitations_for_reuse: "",
funding_source: "",
related_genes: "",
experimental_approaches: null,
dataset_title: "Agricultural Health Study",
dataset_pmid: "",
dataset_doc: "Division of Cancer Control and Population Sciences (DCCPS)",
related_diseases: "All Other Cancers, Bladder, Bone, Brain, Cervix (Squamous cell carcinoma, Adenocarcinoma), Colon, Corpus, body of uterus, Esophagus, Gall bladder and extrahepatic bile ducts, Hodgkin Lymphoma, Invasive Breast Cancer, Kidney and other unspecified urinary organs, Leukemia, Liver and intrahepatic bile ducts, Lung and bronchus, Melanoma (excluding mucosal sites), Myeloma, Non-Hodgkin Lymphoma, Oropharyngeal, Ovary, fallopian tube, broad ligament, Pancreas, Prostate, Rectum and anus, Small intestine, Stomach, Thyroid",
PI_name: "Jonathan Hofmann",
dataset_source_repo: "CEDCD",
participant_count: 89656,
study_type: "Etiology",
release_date: null,
dataset_minimum_age_at_baseline: 30,
primary_disease: "Multiple Cancer Types",
sample_count: null,
dataset_source_url: "https://cedcd.nci.nih.gov/cohort?id=109",
dataset_year_enrollment_started: "1993",
institute: null,
assay_method: "",
},
highlight: {
"description.search": [
"This study explores potential causes of cancer and other diseases among farmers and their families and among commercial pesticide applicators. Current medical research suggests that while agric<b>ult</b>ural workers are generally healthier than the general U.S. population, they may have higher rates of some cancers, including leukemia, <b>myeloma</b>, non-Hodgkin's lymph<b>oma</b>, and cancers of the lip, st<b>oma</b>ch, skin, brain, and prostate. Other conditions, like asthma, neurologic disease, and adverse reproductive outcomes may also be related to agric<b>ult</b>ural exposures. The Agric<b>ult</b>ural Health Study is designed to identify occupational, lifestyle, and genetic factors that may affect the rate of diseases in farming populations. The Agric<b>ult</b>ural Health Study began in 1994, and will continue to gather information for a number of years about the health of pesticide applicators and their families, details on occupational practices, and information on lifestyle and diet on a periodic basis. The com<b>ple</b>te set of questionnaires External Web Site Policy may be viewed. Personal identifying information on participants is kept confidential and used only by research staff. Names are not included in any reports. The study res<b>ult</b>s are reported as statistical summaries only. North Carolina and Iowa were selected for this important study based on a nationwide competition. Both states have strong agric<b>ult</b>ural sectors with diverse production methods, commodities, and products. Information we learn from these two states will be helpful to farmers throughout the United States and other countries using modern agric<b>ult</b>ural technologies.",
],
"primary_disease.search": [
"<b>Multiple</b> Cancer Types",
],
"related_diseases.search": [
"All Other Cancers, Bladder, Bone, Brain, Cervix (Squamous cell carcinoma, Adenocarcinoma), Colon, Corpus, body of uterus, Esophagus, Gall bladder and extrahepatic bile ducts, Hodgkin Lymphoma, Invasive Breast Cancer, Kidney and other unspecified urinary organs, Leukemia, Liver and intrahepatic bile ducts, Lung and bronchus, Melanoma (excluding mucosal sites), <b>Myeloma,</b> Non-Hodgkin Lymphoma, Oropharyngeal, Ovary, fallopian tube, broad ligament, Pancreas, Prostate, Rectum and anus, Small intestine, Stomach, Thyroid",
],
},
sort: [
"agriculturalhealthstudy",
],
},
],
},
aggs: undefined,
};
// Example of Opensearch response with error
export const errorOpensearchResults = {
"error": {
"root_cause": [
{
"type": "query_shard_exception",
"reason": "No mapping found for [dbGaP_phs] in order to sort on",
"index": "datasets",
"index_uuid": "JHoru6szQ8G_-NtFJd--Bg"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "datasets",
"node": "YzqehJMeSham0G7I2LQdmw",
"reason": {
"type": "query_shard_exception",
"reason": "No mapping found for [dbGaP_phs] in order to sort on",
"index": "datasets",
"index_uuid": "JHoru6szQ8G_-NtFJd--Bg"
}
}
]
},
"status": 400
};