How to use zStat method in Best

Best JavaScript code snippet using best

RadarPlotData.js

Source:RadarPlotData.js Github

copy

Full Screen

1const radarDataList = [2 [3 {4 ZSTAT: 0.9625799999999999,5 study_id: 'GWAS_0',6 trait: 'Osteoarthritis Knee',7 traitCategory: 'BI: Safety',8 },9 {10 ZSTAT: 0.17773,11 study_id: 'GWAS_55',12 trait: 'Intelligence',13 traitCategory: 'BI: Psychiatric',14 },15 {16 ZSTAT: 0.21544000000000002,17 study_id: 'GWAS_64',18 trait: 'Estimated glomerular filtration rate (eGFR)',19 traitCategory: 'BI: Kidney',20 },21 {22 ZSTAT: 1.379,23 study_id: 'GWAS_67',24 trait: 'Heart failure',25 traitCategory: 'BI: Cardiometabolic',26 },27 {28 ZSTAT: 1.47331999999999996,29 study_id: 'GWAS_68',30 trait: 'Early age-related macular degeneration',31 traitCategory: 'BI: Safety',32 },33 {34 ZSTAT: 0.19618,35 study_id: 'GWAS_78',36 trait: 'Extraversion',37 traitCategory: 'BI: Psychiatric',38 },39 {40 ZSTAT: 0.63574,41 study_id: 'GWAS_173',42 trait: 'Abnormal results of liver function studies (ICD10: R94.5)',43 traitCategory: 'BI: Liver',44 },45 {46 ZSTAT: 2.2964,47 study_id: 'FINNGEN_R5_Q17_CONGEN_DEFORMITI_FEET',48 trait: 'Congenital deformities of feet',49 traitCategory: 'genetic, familial or congenital disease',50 },51 {52 ZSTAT: 0.96096,53 study_id: 'FINNGEN_R5_Q17_CONGEN_DEFORMITI_HIP',54 trait: 'Congenital deformities of hip',55 traitCategory: 'musculoskeletal or connective tissue disease',56 },57 {58 ZSTAT: 1.4883,59 study_id: 'FINNGEN_R5_Q17_CONGEN_MALFO_ANTER_SEGMENT_EYE',60 trait: 'Congenital malformations of anterior segment of eye',61 traitCategory: 'Uncategorised',62 },63 {64 ZSTAT: 0.22601,65 study_id: 'FINNGEN_R5_Q17_CONGEN_MALFO_AORTIC_MITRAL_VALVES',66 trait: 'Congenital malformations of aortic and mitral valves',67 traitCategory: 'cardiovascular disease',68 },69 {70 ZSTAT: 0.5881,71 study_id: 'FINNGEN_R5_Z21_TOBAC_USE',72 trait: 'Tobacco use',73 traitCategory: 'nervous system disease',74 },75 {76 ZSTAT: 0.7253899999999999,77 study_id: 'FINNGEN_R5_Z21_TRANSPLANTED_ORGAN_TISSUE_STATUS',78 trait: 'Transplanted organ and tissue status',79 traitCategory: 'measurement',80 },81 ],82 [83 {84 ZSTAT: 1.0141,85 study_id: 'FINNGEN_R5_G6_DISOTHUNS',86 trait: 'Disorders of other and unspecified cranial nerves',87 traitCategory: 'nervous system disease',88 },89 {90 ZSTAT: 0.67981,91 study_id: 'FINNGEN_R5_M13_RHEUMA_INCLAVO',92 trait: 'Rheumatoid arthritis',93 traitCategory: 'musculoskeletal or connective tissue disease',94 },95 {96 ZSTAT: 0.74647,97 study_id: 'FINNGEN_R5_M13_ROTATORCUFF',98 trait: 'Rotator cuff syndrome',99 traitCategory: 'musculoskeletal or connective tissue disease',100 },101 {102 ZSTAT: 1.483,103 study_id: 'FINNGEN_R5_M13_SCIATICA',104 trait: 'Siatica+with lumbago',105 traitCategory: 'musculoskeletal or connective tissue disease',106 },107 {108 ZSTAT: 1.1433,109 study_id: 'FINNGEN_R5_M13_SCOLIOSIS',110 trait: 'Scoliosis',111 traitCategory: 'musculoskeletal or connective tissue disease',112 },113 {114 ZSTAT: 0.1857,115 study_id: 'FINNGEN_R5_M13_SHORTACHILLES',116 trait: 'Short Achilles tendon (acquired)',117 traitCategory: 'phenotype',118 },119 {120 ZSTAT: 1.3219,121 study_id: 'FINNGEN_R5_ST19_SEQUEL_INJURI_HEAD',122 trait: 'Sequelae of injuries of head',123 traitCategory: 'injury, poisoning or other complication',124 },125 {126 ZSTAT: 0.56358,127 study_id: 'FINNGEN_R5_ST19_SEQUEL_INJURI_LOWER_LIMB',128 trait: 'Sequelae of injuries of lower limb',129 traitCategory: 'injury, poisoning or other complication',130 },131 {132 ZSTAT: 0.43328,133 study_id: 'FINNGEN_R5_ST19_SEQUEL_INJURI_NECK_TRUNK',134 trait: 'Sequelae of injuries of neck and trunk',135 traitCategory: 'injury, poisoning or other complication',136 },137 {138 ZSTAT: 0.81718,139 study_id: 'FINNGEN_R5_ST19_SEQUEL_INJURI_UPPER_LIMB',140 trait: 'Sequelae of injuries of upper limb',141 traitCategory: 'injury, poisoning or other complication',142 },143 {144 ZSTAT: 0.0056942,145 study_id: 'FINNGEN_R5_ST19_SUPERF_FROST',146 trait: 'Superficial frostbite',147 traitCategory: 'injury, poisoning or other complication',148 },149 {150 ZSTAT: 0.039746,151 study_id: 'FINNGEN_R5_ST19_SUPERF_INJURI_INVOLVI_MULTIPLE_BODY_REGIONS',152 trait: 'Superficial injuries involving multiple body regions',153 traitCategory: 'injury, poisoning or other complication',154 },155 {156 ZSTAT: 0.35243,157 study_id: 'FINNGEN_R5_ST19_SUPERF_INJURY_ANKLE_FOOT',158 trait: 'Superficial injury of ankle and foot',159 traitCategory: 'musculoskeletal or connective tissue disease',160 },161 {162 ZSTAT: 0.54598,163 study_id: 'FINNGEN_R5_Z21_OTHER_MEDICAL_CARE',164 trait: 'Other medical care',165 traitCategory: 'Uncategorised',166 },167 {168 ZSTAT: 0.5677399999999999,169 study_id: 'FINNGEN_R5_Z21_OTHER_ORTHOPA_FOLLOW__CARE',170 trait: 'Other orthopaedic follow-up care',171 traitCategory: 'Uncategorised',172 },173 {174 ZSTAT: 0.7046899999999999,175 study_id: 'FINNGEN_R5_Z21_OTHER_POSTS_STATES',176 trait: 'Other postsurgical states',177 traitCategory: 'biological process',178 },179 {180 ZSTAT: 0.086745,181 study_id:182 'FINNGEN_R5_Z21_OTHER_SPECIAL_EXAM_INVES_PERSONS_WO_COMPLA_REPOR_DIAGNOSIS',183 trait:184 'Other special examinations and investigations of persons without complaint or reported diagnosis',185 traitCategory: 'Uncategorised',186 },187 {188 ZSTAT: 1.3591,189 study_id: 'FINNGEN_R5_Z21_OTHER_SURGI_FOLLOW__CARE',190 trait: 'Other surgical follow-up care',191 traitCategory: 'Uncategorised',192 },193 {194 ZSTAT: 0.98811,195 study_id: 'FINNGEN_R5_Z21_OUTCO_DELIV',196 trait: 'Outcome of delivery',197 traitCategory: 'measurement',198 },199 {200 ZSTAT: 0.11419000000000001,201 study_id: 'FINNGEN_R5_Z21_PERSONAL_HISTORY_CERTA_OTH_DISEA',202 trait: 'Personal history of certain other diseases',203 traitCategory: 'Uncategorised',204 },205 {206 ZSTAT: 2.5383,207 study_id: 'FINNGEN_R5_Z21_PERSONAL_HISTORY_MALIG_NEOPLASM',208 trait: 'Personal history of malignant neoplasm',209 traitCategory: 'cell proliferation disorder',210 },211 {212 ZSTAT: 0.87382,213 study_id: 'FINNGEN_R5_Z21_PERSONAL_HISTORY_OTH_DISEA_CONDI',214 trait: 'Personal history of other diseases and conditions',215 traitCategory: 'Uncategorised',216 },217 {218 ZSTAT: 0.44122,219 study_id:220 'FINNGEN_R5_Z21_PERSONS_ENCOUNTERI_HEALTH_SERVI_CIRCUMSTANC_RELATED_REPRODUCTION',221 trait:222 'Persons encountering health services in circumstances related to reproduction',223 traitCategory: 'Uncategorised',224 },225 {226 ZSTAT: 0.48881,227 study_id: 'FINNGEN_R5_Z21_PERSONS_ENCOUNTERI_HEALTH_SERVI_EXAM_INVES',228 trait:229 'Persons encountering health services for examination and investigation',230 traitCategory: 'Uncategorised',231 },232 {233 ZSTAT: 1.6905000000000001,234 study_id:235 'FINNGEN_R5_Z21_PERSONS_ENCOUNTERI_HEALTH_SERVI_OTH_CIRCUMSTANC1',236 trait: 'Persons encountering health services in other circumstances',237 traitCategory: 'Uncategorised',238 },239 {240 ZSTAT: 1.3875,241 study_id:242 'FINNGEN_R5_Z21_PERSONS_ENCOUNTERI_HEALTH_SERVI_OTH_CIRCUMSTANC2',243 trait: 'Persons encountering health services in other circumstances',244 traitCategory: 'Uncategorised',245 },246 {247 ZSTAT: 1.65,248 study_id:249 'FINNGEN_R5_Z21_PERSONS_ENCOUNTERI_HEALTH_SERVI_SPECIFIC_PROCED_HEALTH_CARE',250 trait:251 'Persons encountering health services for specific procedures and health care',252 traitCategory: 'Uncategorised',253 },254 {255 ZSTAT: 0.59062,256 study_id:257 'FINNGEN_R5_Z21_PERSONS_W_POTEN_HEALTH_HAZARDS_RELATED_COMMUNICAB_DISEA',258 trait:259 'Persons with potential health hazards related to communicable diseases',260 traitCategory: 'infectious disease',261 },262 {263 ZSTAT: 0.37009000000000003,264 study_id:265 'FINNGEN_R5_Z21_PERSONS_W_POTEN_HEALTH_HAZARDS_RELATED_FAMILY_PERSONAL_HISTORY_CERTA_CONDI_INFLUENCI_HEALTH_STATUS',266 trait:267 'Persons with potential health hazards related to family and personal history and certain conditions influencing health status',268 traitCategory: 'Uncategorised',269 },270 {271 ZSTAT: 1.5901,272 study_id:273 'FINNGEN_R5_Z21_PERSONS_W_POTEN_HEALTH_HAZARDS_RELATED_SOCIO_PSYCHOSO_CIRCUMSTANC',274 trait:275 'Persons with potential health hazards related to socioeconomic and psychosocial circumstances',276 traitCategory: 'Uncategorised',277 },278 {279 ZSTAT: 0.80795,280 study_id: 'FINNGEN_R5_Z21_POSTPA_CARE_EXAMI',281 trait: 'Postpartum care and examination',282 traitCategory: 'Uncategorised',283 },284 {285 ZSTAT: 0.023866,286 study_id: 'FINNGEN_R5_Z21_PREGNAC_EXAM_TEST',287 trait: 'Pregnancy examination and test',288 traitCategory: 'biological process',289 },290 {291 ZSTAT: 0.91507,292 study_id: 'FINNGEN_R5_Z21_PRESENCE_CARDIAC_VASCULAR_IMPLANTNTS_GRAFTS',293 trait: 'Presence of cardiac and vascular implants and grafts',294 traitCategory: 'Uncategorised',295 },296 {297 ZSTAT: 0.8311700000000001,298 study_id: 'FINNGEN_R5_Z21_PRESENCE_OTH_DEVICES',299 trait: 'Presence of other devices',300 traitCategory: 'Uncategorised',301 },302 {303 ZSTAT: 0.93861,304 study_id: 'FINNGEN_R5_Z21_PRESENCE_OTH_FUNCTIONAL_IMPLANTNTS',305 trait: 'Presence of other functional implants',306 traitCategory: 'Uncategorised',307 },308 {309 ZSTAT: 2.0527,310 study_id: 'FINNGEN_R5_Z21_PROBL_RELATED_CARE__DEPENDENCY',311 trait: 'Problems related to care-provider dependency',312 traitCategory: 'Uncategorised',313 },314 {315 ZSTAT: 0.5361199999999999,316 study_id: 'FINNGEN_R5_Z21_PROBL_RELATED_CERTA_PSYCHOSO_CIRCUMSTANC',317 trait: 'Problems related to certain psychosocial circumstances',318 traitCategory: 'Uncategorised',319 },320 {321 ZSTAT: 0.8942399999999999,322 study_id: 'FINNGEN_R5_Z21_PROBL_RELATED_EMPLO_UNEMP',323 trait: 'Problems related to employment and unemployment',324 traitCategory: 'Uncategorised',325 },326 {327 ZSTAT: 1.2304,328 study_id: 'FINNGEN_R5_Z21_PROBL_RELATED_HOUSI_ECONO_CIRCUMSTANC',329 trait: 'Problems related to housing and economic circumstances',330 traitCategory: 'Uncategorised',331 },332 {333 ZSTAT: 0.023951,334 study_id: 'FINNGEN_R5_Z21_SPECIAL_SCREEN_EXAM_OTH_DISEA_DISORD',335 trait: 'Special screening examination for other diseases and disorders',336 traitCategory: 'Uncategorised',337 },338 {339 ZSTAT: 1.5426,340 study_id: 'FINNGEN_R5_Z21_SUPERV_HIGH_R_PREGNAC',341 trait: 'Supervision of high-risk pregnancy',342 traitCategory: 'reproductive system or breast disease',343 },344 {345 ZSTAT: 0.58254,346 study_id: 'FINNGEN_R5_Z21_SUPERV_NORMAL_PREGNAC1',347 trait: 'Supervision of normal pregnancy',348 traitCategory: 'biological process',349 },350 {351 ZSTAT: 0.51973,352 study_id: 'FINNGEN_R5_Z21_TOBAC_USE',353 trait: 'Tobacco use',354 traitCategory: 'nervous system disease',355 },356 {357 ZSTAT: 0.9698,358 study_id: 'FINNGEN_R5_Z21_TRANSPLANTED_ORGAN_TISSUE_STATUS',359 trait: 'Transplanted organ and tissue status',360 traitCategory: 'measurement',361 },362 {363 ZSTAT: 2.2962,364 study_id: 'GWAS_130',365 trait: 'Body mass index (BMI)',366 traitCategory: 'BI: Obesity',367 },368 ],369];370const RadarData = data => {371 data = [];372 return (data = radarDataList.map(item => [373 ...new Set(374 item.map(obj => ({375 traitCategory: obj.traitCategory,376 trait: obj.trait,377 ZSTAT: obj.ZSTAT,378 }))379 ),380 ]));381};...

Full Screen

Full Screen

gene-magma.js

Source:gene-magma.js Github

copy

Full Screen

1export default {2 data: [3 {4 ZSTAT: 1.1574,5 adj_p: 1,6 p: 0.12355999999999999,7 source: 'manual',8 trait: 'Osteoarthritis Knee',9 traitCategory: 'BI: Safety',10 },11 {12 ZSTAT: 0.73585,13 adj_p: 1,14 p: 0.23091,15 source: 'manual',16 trait: 'Osteoarthritis Hip',17 traitCategory: 'BI: Safety',18 },19 {20 ZSTAT: 1.2865,21 adj_p: 1,22 p: 0.099138,23 source: 'manual',24 trait: 'Osteoarthritis hip and/or knee',25 traitCategory: 'BI: Safety',26 },27 {28 ZSTAT: 0.5635399999999999,29 adj_p: 1,30 p: 0.28653,31 source: 'manual',32 trait: 'Osteoarthritis at any site',33 traitCategory: 'BI: Safety',34 },35 {36 ZSTAT: 1.1175,37 adj_p: 1,38 p: 0.13189,39 source: 'ukb',40 trait: 'Liver/biliary/pancreas problem (self-reported)',41 traitCategory: 'BI: Liver',42 },43 {44 ZSTAT: -0.68761,45 adj_p: 1,46 p: 0.75415,47 source: 'ukb',48 trait: 'Liver failure/cirrhosis (self-reported)',49 traitCategory: 'BI: Liver',50 },51 {52 ZSTAT: 7.4009,53 adj_p: 1.252057534e-9,54 p: 6.7613e-14,55 source: 'gwascatalog',56 trait: 'Estimated glomerular filtration rate (eGFR)',57 traitCategory: 'BI: Kidney',58 },59 {60 ZSTAT: 6.1094,61 adj_p: 0.0000093345,62 p: 5e-10,63 source: 'gwascatalog',64 trait: 'Estimated glomerular filtration rate (eGFR)',65 traitCategory: 'BI: Kidney',66 },67 {68 ZSTAT: -1.0617,69 adj_p: 1,70 p: 0.85582,71 source: 'manual',72 trait: "Alzheimer's disease",73 traitCategory: 'BI: Safety',74 },75 {76 ZSTAT: 2.7778,77 adj_p: 1,78 p: 0.0027364,79 source: 'manual',80 trait: 'Gastroesophageal reflux disease',81 traitCategory: 'BI: Safety',82 },83 {84 ZSTAT: 0.5181600000000001,85 adj_p: 1,86 p: 0.30217,87 source: 'opengwas',88 trait: 'Non-albumin protein',89 traitCategory: 'BI: Kidney',90 },91 {92 ZSTAT: 0.07839,93 adj_p: 1,94 p: 0.46876,95 source: 'gwascatalog',96 trait: 'Body fat percentage (female)',97 traitCategory: 'BI: Obesity',98 },99 {100 ZSTAT: 0.07839,101 adj_p: 1,102 p: 0.46876,103 source: 'gwascatalog',104 trait: 'Body fat percentage (male)',105 traitCategory: 'BI: Obesity',106 },107 {108 ZSTAT: 4.455,109 adj_p: 0.0769987008,110 p: 0.0000041952,111 source: 'gwascatalog',112 trait: 'Blood urea nitrogen levels',113 traitCategory: 'BI: Kidney',114 },115 {116 ZSTAT: 0.14914000000000002,117 adj_p: 1,118 p: 0.44072,119 source: 'manual',120 trait: 'Hippocampus volume',121 traitCategory: 'BI: Psychiatric',122 },123 {124 ZSTAT: 0.39281,125 adj_p: 1,126 p: 0.34723000000000004,127 source: 'manual',128 trait: 'Intracranial volume',129 traitCategory: 'BI: Psychiatric',130 },131 {132 ZSTAT: -0.4148,133 adj_p: 1,134 p: 0.66085,135 source: 'manual',136 trait: 'Biliary atresia',137 traitCategory: 'BI: Safety',138 },139 {140 ZSTAT: 0.55695,141 adj_p: 1,142 p: 0.28878000000000004,143 source: 'ukb',144 trait: 'Cirrhosis of liver, NAS',145 traitCategory: 'BI: Liver',146 },147 {148 ZSTAT: 1.5796000000000001,149 adj_p: 1,150 p: 0.05709500000000001,151 source: 'manual',152 trait: 'Chronotype',153 traitCategory: 'BI: Psychiatric',154 },155 {156 ZSTAT: 3.0604,157 adj_p: 1,158 p: 0.0011051,159 source: 'gwascatalog',160 trait: 'Chronic kidney disease',161 traitCategory: 'BI: Kidney',162 },163 {164 ZSTAT: 3.279,165 adj_p: 1,166 p: 0.00052094,167 source: 'manual',168 trait: 'Hedonic well-being',169 traitCategory: 'BI: Psychiatric',170 },171 {172 ZSTAT: 1.0326,173 adj_p: 1,174 p: 0.15091,175 source: 'manual',176 trait: 'Cannabis use disorder',177 traitCategory: 'BI: Psychiatric',178 },179 {180 ZSTAT: 1.9428,181 adj_p: 1,182 p: 0.026023,183 source: 'manual',184 trait: 'Cognitive function',185 traitCategory: 'BI: Psychiatric',186 },187 {188 ZSTAT: 1.0657,189 adj_p: 1,190 p: 0.14327,191 source: 'manual',192 trait: 'Reaction time',193 traitCategory: 'BI: Psychiatric',194 },195 {196 ZSTAT: 1.5163,197 adj_p: 1,198 p: 0.064715,199 source: 'manual',200 trait: 'Verbal-numerical reasoning',201 traitCategory: 'BI: Psychiatric',202 },203 {204 ZSTAT: 2.0954,205 adj_p: 1,206 p: 0.018068999999999998,207 source: 'manual',208 trait: 'Polycystic ovarian syndrome',209 traitCategory: 'BI: Safety',210 },211 {212 ZSTAT: 4.846,213 adj_p: 0.01157979225,214 p: 6.2985e-7,215 source: 'manual',216 trait: 'Inflammatory bowel disease',217 traitCategory: 'BI: Safety',218 },219 {220 ZSTAT: 5.3073,221 adj_p: 0.00102705876,222 p: 5.564e-8,223 source: 'manual',224 trait: "Crohn's disease",225 traitCategory: 'BI: Safety',226 },227 {228 ZSTAT: 2.4811,229 adj_p: 1,230 p: 0.006548699999999999,231 source: 'manual',232 trait: 'Ulcerative colitis',233 traitCategory: 'BI: Safety',234 },235 {236 ZSTAT: 0.81685,237 adj_p: 1,238 p: 0.20701,239 source: 'manual',240 trait: "Alzheimer's disease",241 traitCategory: 'BI: Safety',242 },243 {244 ZSTAT: 0.80882,245 adj_p: 1,246 p: 0.20931,247 source: 'manual',248 trait: 'Moderate intensity activity (adjusted for sex and BMI)',249 traitCategory: 'BI: Obesity',250 },251 {252 ZSTAT: 0.8806299999999999,253 adj_p: 1,254 p: 0.18925999999999998,255 source: 'manual',256 trait: 'Moderate intensity activity',257 traitCategory: 'BI: Obesity',258 },259 {260 ZSTAT: -0.9189700000000001,261 adj_p: 1,262 p: 0.82095,263 source: 'manual',264 trait: 'Overall activity (adjusted for sex and BMI)',265 traitCategory: 'BI: Obesity',266 },267 {268 ZSTAT: -0.9917100000000001,269 adj_p: 1,270 p: 0.8393299999999999,271 source: 'manual',272 trait: 'Overall activity',273 traitCategory: 'BI: Obesity',274 },275 {276 ZSTAT: -0.54199,277 adj_p: 1,278 p: 0.70609,279 source: 'manual',280 trait: 'Sedentary behaviour (adjusted for sex and BMI)',281 traitCategory: 'BI: Obesity',282 },283 {284 ZSTAT: -1.173,285 adj_p: 1,286 p: 0.8796,287 source: 'manual',288 trait: 'Sedentary behaviour',289 traitCategory: 'BI: Obesity',290 },291 {292 ZSTAT: 0.90205,293 adj_p: 1,294 p: 0.18350999999999998,295 source: 'manual',296 trait: 'Sleep duration (adjusted for sex and BMI)',297 traitCategory: 'BI: Obesity',298 },299 {300 ZSTAT: 0.8798600000000001,301 adj_p: 1,302 p: 0.18947,303 source: 'manual',304 trait: 'Sleep duration',305 traitCategory: 'BI: Obesity',306 },307 {308 ZSTAT: 1.4771,309 adj_p: 1,310 p: 0.06981799999999999,311 source: 'manual',312 trait: 'Walking (adjusted for sex and BMI)',313 traitCategory: 'BI: Obesity',314 },315 {316 ZSTAT: 1.6242999999999999,317 adj_p: 1,318 p: 0.052158,319 source: 'manual',320 trait: 'Walking',321 traitCategory: 'BI: Obesity',322 },323 {324 ZSTAT: 0.77017,325 adj_p: 1,326 p: 0.2206,327 source: 'ukb',328 trait: 'Type 1 diabetes',329 traitCategory: 'BI: Safety',330 },331 {332 ZSTAT: 0.8516100000000001,333 adj_p: 1,334 p: 0.19722,335 source: 'ukb',336 trait: 'Type 2 diabetes',337 traitCategory: 'BI: Safety',338 },339 {340 ZSTAT: 0.76286,341 adj_p: 1,342 p: 0.22276999999999997,343 source: 'opengwas',344 trait: 'Coronary heart disease',345 traitCategory: 'BI: Cardiometabolic',346 },347 {348 ZSTAT: 6.3306000000000004,349 adj_p: 0.0000021150360000000002,350 p: 1.2208e-10,351 source: 'opengwas',352 trait: 'Glomerular filtration rate (creatinine)',353 traitCategory: 'BI: Kidney',354 },355 {356 ZSTAT: 1.3957,357 adj_p: 1,358 p: 0.081397,359 source: 'opengwas',360 trait: 'Chronic kidney disease',361 traitCategory: 'BI: Kidney',362 },363 {364 ZSTAT: 5.9259,365 adj_p: 0.0000268900164,366 p: 1.5528999999999999e-9,367 source: 'opengwas',368 trait: 'Glomerular filtration rate in non-diabetics (creatinine)',369 traitCategory: 'BI: Kidney',370 },371 {372 ZSTAT: 0.49075,373 adj_p: 1,374 p: 0.3118,375 source: 'opengwas',376 trait: 'Breast cancer',377 traitCategory: 'BI: Safety',378 },379 {380 ZSTAT: 0.4326,381 adj_p: 1,382 p: 0.33265,383 source: 'opengwas',384 trait: 'Allergic disease (asthma, hay fever, or eczema)',385 traitCategory: 'BI: Safety',386 },387 {388 ZSTAT: 4.456,389 adj_p: 0.0740866262,390 p: 0.0000041746,391 source: 'opengwas',392 trait: 'Fasting blood insulin',393 traitCategory: 'BI: Obesity',394 },395 {396 ZSTAT: 7.5209,397 adj_p: 4.828e-10,398 p: 2.7199999999999997e-14,399 source: 'opengwas',400 trait: 'Fasting blood glucose',401 traitCategory: 'BI: Obesity',402 },403 {404 ZSTAT: 2.0693,405 adj_p: 1,406 p: 0.01926,407 source: 'opengwas',408 trait: 'Neuroticism',409 traitCategory: 'BI: Psychiatric',410 },411 {412 ZSTAT: 0.89055,413 adj_p: 1,414 p: 0.18658,415 source: 'opengwas',416 trait: 'Total body bone mineral density (age 0-15)',417 traitCategory: 'BI: Safety',418 },419 {420 ZSTAT: 0.73736,421 adj_p: 1,422 p: 0.23045,423 source: 'opengwas',424 trait: 'Total body bone mineral density (age 30-45)',425 traitCategory: 'BI: Safety',426 },427 {428 ZSTAT: 2.0325,429 adj_p: 1,430 p: 0.021051,431 source: 'opengwas',432 trait: 'Total body bone mineral density (age over 60)',433 traitCategory: 'BI: Safety',434 },435 {436 ZSTAT: 4.0256,437 adj_p: 0.535812096,438 p: 0.000028416,439 source: 'opengwas',440 trait: 'Total body bone mineral density (age 45-60)',441 traitCategory: 'BI: Safety',442 },443 {444 ZSTAT: 0.014875,445 adj_p: 1,446 p: 0.49407,447 source: 'opengwas',448 trait: 'Intelligence',449 traitCategory: 'BI: Psychiatric',450 },451 {452 ZSTAT: 0.5926,453 adj_p: 1,454 p: 0.27671999999999997,455 source: 'opengwas',456 trait: 'Atrial fibrillation',457 traitCategory: 'BI: Cardiometabolic',458 },459 {460 ZSTAT: -0.38669000000000003,461 adj_p: 1,462 p: 0.65051,463 source: 'opengwas',464 trait: 'Self-reported risk-taking behaviour',465 traitCategory: 'BI: Psychiatric',466 },467 {468 ZSTAT: 6.5788,469 adj_p: 3.92398264e-7,470 p: 2.3706999999999998e-11,471 source: 'opengwas',472 trait: 'Type 2 diabetes',473 traitCategory: 'BI: Safety',474 },475 {476 ZSTAT: 1.8256000000000001,477 adj_p: 1,478 p: 0.033958999999999996,479 source: 'opengwas',480 trait: 'Stroke',481 traitCategory: 'BI: Cardiometabolic',482 },483 {484 ZSTAT: 1.4461,485 adj_p: 1,486 p: 0.07406900000000001,487 source: 'opengwas',488 trait: 'Ischemic stroke',489 traitCategory: 'BI: Cardiometabolic',490 },491 {492 ZSTAT: 1.1475,493 adj_p: 1,494 p: 0.12558,495 source: 'opengwas',496 trait: 'Ischemic stroke (small-vessel)',497 traitCategory: 'BI: Cardiometabolic',498 },499 {500 ZSTAT: -0.70695,501 adj_p: 1,502 p: 0.7602,503 source: 'opengwas',504 trait: 'Ischemic stroke (cardioembolic)',505 traitCategory: 'BI: Cardiometabolic',506 },507 ],...

Full Screen

Full Screen

zk.test.js

Source:zk.test.js Github

copy

Full Screen

1/*!2 * zkjs - test/zk.test.js3 */4"use strict";5/**6 * Module dependencies.7 */8var pedding = require('pedding');9var should = require('should');10var ZK = require('../');11describe('zk.test.js', function () {12 var zk = ZK({13 hosts: ['api.yongwo.de:2181'],14 root: '/zkjs-unitttest'15 });16 before(function (done) {17 zk.start(done);18 });19 after(function (done) {20 zk.close(done);21 });22 23 describe('create()', function () {24 var pathname = '/test-create';25 beforeEach(function (done) {26 zk.exists(pathname, function (errno, data, zstat) {27 if (!zstat) {28 return done();29 }30 zk.del(pathname, zstat.version, function (errno) {31 done(errno ? errno : null);32 });33 });34 });35 36 it('should create path with data', function (done) {37 zk.create(pathname, 'test create path data', function (errno, path) {38 should.not.exists(errno);39 path.should.equal(pathname);40 zk.get(pathname, function (errno, data, zstat) {41 should.not.exists(errno);42 data.toString().should.equal('test create path data');43 zstat.should.have.property('version', 0);44 done();45 });46 });47 });48 it('should create exists path return errno: -110', function (done) {49 zk.create(pathname, 'test create path data', function (errno, path) {50 should.not.exists(errno);51 path.should.equal(pathname);52 zk.create(pathname, 'test create path data', function (errno, path) {53 should.exists(errno);54 errno.should.equal(-110);55 should.not.exists(path);56 done();57 });58 });59 });60 });61 describe('get()', function () {62 var pathname = '/test-get';63 beforeEach(function (done) {64 zk.exists(pathname, function (errno, exists, zstat) {65 if (exists) {66 return done();67 }68 zk.create(pathname, 'test get() path data', function (errno, path) {69 done(errno ? errno : null);70 });71 });72 });73 74 it('should get exists path data', function (done) {75 zk.get(pathname, function (errno, data, zstat) {76 should.not.exists(errno);77 data.toString().should.include('test get() path data');78 zstat.should.have.property('version').with.be.a('number');79 done();80 });81 });82 it('should get not exists path data return errno: -101', function (done) {83 zk.get(pathname + '-not-exists', function (errno, data, zstat) {84 should.exists(errno);85 errno.should.equal(-101);86 should.not.exists(data);87 should.not.exists(zstat);88 done();89 });90 });91 it('should get exists path data and watch it changed', function (done) {92 done = pedding(2, done);93 zk.get(pathname, function (info) {94 info.should.eql({95 type: 'changed', 96 state: 'connected', 97 path: '/test-get'98 });99 zk.get(pathname, function (errno, data) {100 should.not.exists(errno);101 data.toString().should.include('changed at');102 done();103 });104 }, function (errno, data, zstat) {105 should.not.exists(errno);106 data.toString().should.include('test get() path data');107 zstat.should.have.property('version').with.be.a('number');108 // change it109 zk.set(pathname, 'test get() path data changed at ' + new Date(), zstat.version, done);110 });111 });112 });113 describe('sync()', function () {114 it('should sync the node with leader', function (done) {115 zk.sync('/', function (errno, path) {116 should.not.exists(errno);117 path.should.equal('/');118 done();119 });120 });121 it('should sync not exists node', function (done) {122 zk.sync('/not-exists', function (errno, path) {123 should.not.exists(errno);124 path.should.equal('/not-exists');125 done();126 });127 });128 });129 describe('getChildren()', function () {130 it('should return / node children', function (done) {131 zk.getChildren('/', function (errno, children, zstat) {132 should.not.exists(errno);133 should.exists(children);134 children.should.be.instanceof(Array);135 children.length.should.above(0);136 children.should.include('test-get');137 should.exists(zstat);138 done();139 });140 });141 it('should get not exists node children return errno: -101', function (done) {142 zk.getChildren('/not-exists', function (errno, children, zstat) {143 should.exists(errno);144 errno.should.equal(-101);145 should.not.exists(children);146 should.not.exists(zstat);147 done();148 });149 });150 });151 describe("on('expired')", function () {152 it('should restart after "expired"', function (done) {153 zk.once('expired', function () {154 zk.start(function (errno) {155 should.not.exists(errno);156 zk.get('/', function (errno, data, zstat) {157 should.not.exists(errno);158 should.exists(data);159 done();160 });161 });162 });163 zk.ensemble.emit('expired');164 });165 });...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var bestFit = require("bestFit");2var zStat = bestFit.zStat;3var x = [1, 2, 3, 4, 5, 6, 7, 8];4var y = [1, 3, 3, 4, 4, 4, 4, 5];5var z = zStat(x, y);6console.log(z);7var bestFit = require("bestFit");8var rStat = bestFit.rStat;9var x = [1, 2, 3, 4, 5, 6, 7, 8];10var y = [1, 3, 3, 4, 4, 4, 4, 5];11var r = rStat(x, y);12console.log(r);13var bestFit = require("bestFit");14var linearRegression = bestFit.linearRegression;15var x = [1, 2, 3, 4, 5, 6, 7, 8];16var y = [1, 3, 3, 4, 4, 4, 4, 5];17var lr = linearRegression(x, y);18console.log(lr);19var bestFit = require("bestFit");20var linearRegression = bestFit.linearRegression;21var x = [1, 2, 3, 4, 5, 6, 7, 8];22var y = [1, 3, 3, 4, 4, 4, 4, 5];23var lr = linearRegression(x, y);24console.log(lr);25var bestFit = require("bestFit");26var linearRegression = bestFit.linearRegression;27var x = [1, 2, 3, 4, 5, 6, 7, 8];28var y = [1, 3, 3, 4, 4, 4, 4, 5];29var lr = linearRegression(x, y);30console.log(lr);

Full Screen

Using AI Code Generation

copy

Full Screen

1var BestFit = require('./BestFit.js');2var bf = new BestFit();3var x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];4var y = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20];5var z = bf.zStat(x, y);6console.log(z);7var BestFit = require('./BestFit.js');8var bf = new BestFit();9var x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];10var y = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20];11var z = bf.zStat(x, y);12console.log(z);13var BestFit = require('./BestFit.js');14var bf = new BestFit();15var x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];16var y = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20];17var z = bf.zStat(x, y);18console.log(z);

Full Screen

Using AI Code Generation

copy

Full Screen

1var x = [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31];26.3, 6.7, 7.1];3var bfl = new BestFitLine(x, y);4var r = bfl.zStat();5console.log("Correlation coefficient = " + r);6var s = bfl.stdErrorOfEstimate();7console.log("Standard error of estimate = " + s);8var x = [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31];96.3, 6.7, 7.1];10var bfl = new BestFitLine(x, y);11var line = bfl.getLine();12console.log("Equation of line of best fit = " + line);13var s = bfl.stdErrorOfEstimate();14console.log("Standard error of estimate = " + s);

Full Screen

Using AI Code Generation

copy

Full Screen

1var x = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];2var y = [ 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ];3var bfl = new BestFitLine( x, y );4var slope = bfl.slope();5var z = bfl.zStat();6var p = bfl.pValue();7var sig = bfl.isSignificant();8print( "slope: " + slope );9print( "z: " + z );10print( "p: " + p );11print( "sig: " + sig );

Full Screen

Using AI Code Generation

copy

Full Screen

1importClass(Packages.java.io.FileReader);2importClass(Packages.java.io.BufferedReader);3importClass(Packages.java.io.File);4importClass(Packages.java.io.IOException);5importClass(Packages.java.lang.System);6importClass(Packages.java.lang.Double);7importClass(Packages.java.lang.Integer);8importClass(Packages.java.lang.Class);9importClass(Packages.java.lang.ClassLoader);10importClass(Packages.java.lang.reflect.Modifier);11importClass(Packages.java.lang.reflect.Field);12importClass(Packages.java.lang.reflect.Method);13importClass(Packages.java.lang.reflect.Constructor);14importClass(Packages.java.lang.reflect.InvocationTargetException);15importClass(Packages.java.lang.reflect.Array);16importClass(Packages.java.util.ArrayList);17importClass(Packages.java.util.List);18importClass(Packages.java.util.Iterator);19importClass(Packages.java.util.ListIterator);20importClass(Packages.java.util.Comparator);21importClass(Packages.java.util.Collections);22importClass(Packages.java.util.Arrays);23importClass(Packages.java.util.HashMap);24importClass(Packages.java.util.Map);25importClass(Packages.java.util.Set);26importClass(Packages.java.util.HashSet);27importClass(Packages.java.util.TreeSet);28importClass(Packages.java.util.TreeMap);29importClass(Packages.java.util.Date);30importClass(Packages.java.text.DecimalFormat);31importClass(Packages.java.text.DecimalFormatSymbols);32importClass(Packages.java.text.NumberFormat);33importClass(Packages.java.text.SimpleDateFormat);34importClass(Packages.java.awt.Color);35importClass(Packages.java.awt.Font);36importClass(Packages.java.awt.Graphics2D);37importClass(Packages.java.awt.RenderingHints);38importClass(Packages.java.awt.image.BufferedImage);39importClass(Packages.java.awt.image.RenderedImage);40importClass(Packages.java.awt.geom.GeneralPath);41importClass(Packages.java.awt.geom.Line2D);42importClass(Packages.java.awt.geom.Point2D);43importClass(Packages.java.awt.geom.Rectangle2D);44importClass(Packages.java.awt.geom.Ellipse2D);45importClass(Packages.java.awt.geom.AffineTransform);46importClass(Packages.java.awt.BasicStroke);47importClass(Packages.java.awt.geom.Arc2D);48importClass(Packages.javax.imageio.ImageIO);49importClass(Packages.javax.imageio.ImageWriteParam);50importClass(Packages.javax.imageio

Full Screen

Using AI Code Generation

copy

Full Screen

1importPackage(Packages.java.io);2importPackage(Packages.java.lang);3importPackage(Packages.java.util);4importPackage(Packages.java.util.regex);5importPackage(Packages.java.lang.Math);6importPackage(Packages.java.text);7importPackage(Packages.java.awt);8importPackage(Packages.java.awt.geom);9importPackage(Packages.java.awt.font);10importPackage(Packages.java.awt.event);11importPackage(Packages.java.awt.image);12importPackage(Packages.java.awt.color);13importPackage(Packages.javax.swing);14importPackage(Packages.javax.swing.event);15importPackage(Packages.javax.swing.border);16importPackage(Packages.javax.swing.tree);17importPackage(Packages.javax.swing.table);18importPackage(Packages.javax.swing.filechooser);19importPackage(Packages.javax.swing.plaf);20importPackage(Packages.javax.swing.plaf.basic);21importPackage(Packages.javax.swing.plaf.metal);22importPackage(Packages.javax.swing.plaf.multi);23importPackage(Packages.javax.swing.plaf.synth);24importPackage(Packages.java.awt.geom);25importPackage(Packages.java.awt.font);26importPackage(Packages.java.awt.event);27importPackage(Packages.java.awt.image);28importPackage(Packages.java.awt.color);29importPackage(Packages.java.awt.dnd);30importPackage(Packages.java.awt.datatransfer);31importPackage(Packages.java.awt.print);32importPackage(Packages.java.awt.image.renderable);33importPackage(Packages.java.awt.image);34importPackage(Packages.java.awt.geom);35importPackage(Packages.java.awt.font);36importPackage(Packages.java.awt.event);37importPackage(Packages.java.awt.image);38importPackage(Packages.java.awt.color);39importPackage(Packages.java.awt.dnd);40importPackage(Packages.java.awt.datatransfer);41importPackage(Packages.java.awt.print);42importPackage(Packages.java.awt.image.renderable);43importPackage(Packages.java.awt.image);44importPackage(Packages.java.awt.geom);45importPackage(Packages.java.awt.font);46importPackage(Packages.java.awt.event);47importPackage(Packages.java.awt.image);48importPackage(Packages.java.awt.color);49importPackage(Packages.java

Full Screen

Using AI Code Generation

copy

Full Screen

1var BestFit = require('best-fit');2];3var fit = BestFit(data);4var z = fit.zStat(5);5console.log(z);6var BestFit = require('best-fit');7];8var fit = BestFit(data);9var z = fit.zScore(5);10console.log(z);11var BestFit = require('best-fit');12];13var fit = BestFit(data);14var r2 = fit.rSquared();15console.log(r2);16var BestFit = require('best

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Best automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful