Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chunmingl committed Oct 24, 2024
1 parent be9ff49 commit 4105752
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/pecotmr_integration/twas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,11 @@
" saveRDS(twas_results_db$twas_data, \"${_output[0]:nnn}.twas_data.rds\", compress='xz')\n",
" }\n",
" if (${\"TRUE\" if save_mr_result else \"FALSE\"}) {\n",
" fwrite(twas_results_db$mr_result, file = \"${_output[0]:nnn}.mr_result.tsv.gz\", sep = \"\\t\", compress = \"gzip\")\n",
" if(!is.null(twas_results_db)) {\n",
" fwrite(twas_results_db$mr_result, file = \"${_output[0]:nnn}.mr_result.tsv.gz\", sep = \"\\t\", compress = \"gzip\")\n",
" } else {\n",
" fwrite(data.frame(), file = \"${_output[0]:nnn}.mr_result.tsv.gz\", sep = \"\\t\", compress = \"gzip\")\n",
" }\n",
" }"
]
},
Expand Down

0 comments on commit 4105752

Please sign in to comment.