Skip to content

Commit

Permalink
Improve documentation for PIP cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
gaow committed Sep 5, 2024
1 parent ed2cb93 commit a70d0fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/mnm_analysis/mnm_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,9 @@
"parameter: indel = True\n",
"parameter: pip_cutoff = 0.025\n",
"parameter: coverage = [0.95, 0.7, 0.5]\n",
"# If this value is greater than 0, an initial single effect analysis will be performed \n",
"# If this value is not 0, then an initial single effect analysis will be performed \n",
"# to determine if follow up analysis will be continued or to simply return NULL\n",
"# If this is negative we use a default way to determine this cutoff which is conservative but still useful\n",
"parameter: skip_analysis_pip_cutoff = []\n",
"# Skip fine-mapping\n",
"parameter: skip_fine_mapping = False\n",
Expand Down Expand Up @@ -547,7 +548,7 @@
" raise ValueError(\"Number of input phenotypes files must match the number of phenotype ID mapping files\")\n",
"\n",
"if len(skip_analysis_pip_cutoff) == 0:\n",
" skip_analysis_pip_cutoff = [-1.0] * len(phenoFile)\n",
" skip_analysis_pip_cutoff = [0.0] * len(phenoFile)\n",
"if len(skip_analysis_pip_cutoff) == 1:\n",
" skip_analysis_pip_cutoff = skip_analysis_pip_cutoff * len(phenoFile)\n",
"if len(skip_analysis_pip_cutoff) != len(phenoFile):\n",
Expand Down Expand Up @@ -1211,7 +1212,7 @@
" genes = [genes]\n",
"\n",
"if len(skip_analysis_pip_cutoff) == 0:\n",
" skip_analysis_pip_cutoff = [-1.0] * len(genes)\n",
" skip_analysis_pip_cutoff = [0.0] * len(genes)\n",
"\n",
"if len(skip_analysis_pip_cutoff) == 1:\n",
" skip_analysis_pip_cutoff = skip_analysis_pip_cutoff * len(genes)\n",
Expand Down

0 comments on commit a70d0fd

Please sign in to comment.