dnanexus / UKB_RAP

Access share reviewed code & Jupyter Notebooks for use on the UK Biobank (UKBB) Research Application Platform. Includes resources from DNAnexus webinars, online trainings and workshops.
MIT License
106 stars 45 forks source link

Running function "main" of "regenie_test_associations" failed because of AppInternalError #34

Closed WeiChenPan closed 6 months ago

WeiChenPan commented 6 months ago

Hi, everyone This is our first time to use UKB_RAP. We're running regenie for GWAS, the step 1 process was successful, but we encountered some problem during step 2 (below is the log file). Is there anyone having the same problem?

Options in effect: --step 2 \ --bgen ukb00000_c21_b0_v1.bgen \ --phenoFile Hematologic_malignancy_imputation.phe \ --bsize 200 \ --pThresh 0.05 \ --test additive \ --pred ukb_c1-22_GRCh38_full_analysis_set_plus_decoy_hla_merged_pred.list \ --gz \ --sample ukb00000_c21_b0_v1.sample \ --extract /home/dnanexus/gel_imputed_snps_data_qc_pass_HM.snplist \ --covarFile Hematologic_malignancy_imputation.phe \ --bt \ --spa \ --phenoColList Hematologic_malignancy_cc \ --covarColList sex,age,ethnic_background,alcohol_status,hypertension,ever_smoked,SBP,BMI,NLR,CRP \ --ref-first \ --htp ukb00000_c21_b0_v1 \ --out ukb00000_c21_b0_v1 Association testing mode with fast multithreading using OpenMP

anastazie-dnanexus commented 6 months ago

Hello, @WeiChenPan is there any specific reason why you were running REGENIE steps separatelyand not as one step using DNAnexus regenie app? I am assuming that you are using REGENIE app Step 1 and Step 2 or you were running REGENIE in Swiss Army Knife or cloudworkstation/ttyd/Jupyterlab?

oklempir-cf commented 6 months ago

Another idea - I am seeing that the error message "ERROR: BGenError" appeared just after it printed out the line -index bgi file [ukb00000_c21_b0_v1.bgen.bgi]. If I am not mistaken, I am not seeing bgen index file as an input to step 2. Could this fact be that reason for job failure?

WeiChenPan commented 6 months ago

@anastazie-dnanexus @oklempir-cf We've already solved the problem. The error is because the current .bgi index files for GEL BGEN data were created using a different version of the BGEN files, therefore, it caused the error while reading. So, the resolution is to create new .bgi files by using the swiss-army-knife app through the RAP.