Skip to content

Commit

Permalink
Merge pull request #1096 from Chunmingl/main
Browse files Browse the repository at this point in the history
minor fix -  twas_mr table
  • Loading branch information
gaow authored Oct 24, 2024
2 parents f560c0d + 4105752 commit c88cb98
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 c88cb98

Please sign in to comment.