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

Two minor bugs #44

Closed
philippbayer opened this issue Oct 28, 2019 · 2 comments
Closed

Two minor bugs #44

philippbayer opened this issue Oct 28, 2019 · 2 comments

Comments

@philippbayer
Copy link

Hi

Thank you for the recent improvements to this package!

I have two minor things:

  1. When rMVP reports the significance level, it cuts off at 6 decimal places:

    rMVP/R/MVP.r

    Line 307 in 3acd666

    logging.log(paste("Significant level: ", sprintf("%.6f", threshold/m), sep=""), "\n", verbose = verbose)

    In my case I have so many SNPs that rMVP always prints Significant level: 0.000000. Perhaps it would be better to use scientific notation using formatC(0.0000000000005, format = "e", digits = 2)?

  2. The files ending in signal.csv are very useful, is it possible there is a bug when only a single SNP is significant (which happens a lot with FarmCPU)?
    Normally, I get a proper table with proper headers, but when I have only one SNP, I get a strange text-file like this:

"x"
"SNP_5015"
"3"
"47924314"
"-6185.31927432418"
"1015.52184827578"
"1.50018111376143e-08"

i.e., the single-row table got transposed. Funny enough it's just a cbind and a write.csv, I currently don't understand how this happens.

sessionInfo():

R version 3.6.1 (2019-07-05)
Platform: x86_64-conda_cos6-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.10 (Santiago)

locale:
 [1] LC_CTYPE=en_AU.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_AU.UTF-8        LC_COLLATE=en_AU.UTF-8
 [5] LC_MONETARY=en_AU.UTF-8    LC_MESSAGES=en_AU.UTF-8
 [7] LC_PAPER=en_AU.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods
[8] base

other attached packages:
[1] rMVP_0.99.16     bigmemory_4.5.33 MASS_7.3-51.4

loaded via a namespace (and not attached):
[1] bigmemory.sri_0.1.3 compiler_3.6.1      tools_3.6.1
[4] Rcpp_1.0.2
@XiaoleiLiuBio
Copy link
Collaborator

XiaoleiLiuBio commented Oct 28, 2019 via email

@hyacz hyacz closed this as completed in b5c365b Oct 29, 2019
@philippbayer
Copy link
Author

Ah, cbind.data.frame fixed it, that explained why my minimal example using data-frames only didn't replicate that issue, thanks for the fast turnover :)

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

2 participants