Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with printing of the continuous test results #94

Open
kylegontjes opened this issue Jul 10, 2024 · 0 comments
Open

Error with printing of the continuous test results #94

kylegontjes opened this issue Jul 10, 2024 · 0 comments

Comments

@kylegontjes
Copy link

When running continuous hogwash, I occasionally get the following error when printing the result.

Error in if (nrow(snp_in_gene) == 1) { : argument is of length zero
Calls: hogwash ... select_test_type -> run_continuous -> plot_continuous_results
Execution halted

See the attached screenshot

image (2)

To fix this error, we (Emily Maggioncalda) have made the following edit to the hogwash source code:

wget https://github.com/katiesaund/hogwash/tarball/master -O hogwash_update.tar.gz
tar -xvzf hogwash_update.tar.gz
cd katiesaund-hogwash-c4d1cc4/R
nano +1153 plotting.R
# Updated code chunk should read
#      cluster_col_log <- TRUE
#      if(!is.null(snp_in_gene)){
#        if (nrow(snp_in_gene) == 1) {
#          # Avoid clustering issue if only one group in heatmap
#          cluster_col_log <- FALSE
#        }
#      }
cd ../..
R CMD build katiesaund-hogwash-c4d1cc4
R CMD INSTALL hogwash_1.2.6.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant