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 in permutationSimpleLm #1

Open
jiwonslee opened this issue Dec 17, 2018 · 9 comments
Open

Error in permutationSimpleLm #1

jiwonslee opened this issue Dec 17, 2018 · 9 comments

Comments

@jiwonslee
Copy link

When running the permutationSimpleLm function, I sometimes run into the following error:

[1] TRUE
0%.....10%.....20%.....30%.....40%.....50%.....60%.....70%.....80%.....90%.....100%.Error in shuffledPval[i, ] < observedPval[i] :
comparison of these types is not implemented
Calls: permutationSimpleLm -> mean
Execution halted

It seems that this is because when the shuffled p values are regressed against the net dataset, there are sometimes some null values, and returned as 'numeric(0)'. The do.call function seems to convert this to "Numeric,0", which get compared to the observedPval, and the exit occurs because the two formats are incompatible.

Can you fix the issue so that the 'Numeric,0' is changed to a null value compatible with the observedPval and does not cause the function to exit?

@zhushijia
Copy link
Owner

Hi,

Thank you for the information. I will try to fix it. Do you mind sharing with me the imputation dataset that you used, so that I can reproduce the errors?

Best
Shijia

@jiwonslee
Copy link
Author

jiwonslee commented Dec 18, 2018 via email

@zhushijia
Copy link
Owner

Sorry, Jiwon. I cannot find the dataset link. Could you please resend it?
Shijia

@jiwonslee
Copy link
Author

jiwonslee commented Dec 18, 2018 via email

@zhushijia
Copy link
Owner

Got it! Thanks for the data. I will try to fix it soon, and will keep you posted.
Best
Shijia

@zhushijia
Copy link
Owner

zhushijia commented Dec 24, 2018

Hi Jiwon,

Just keep you updated. To address the duplicates, I modified the function orderedIntersect(x, by.x, by.y, duplicate="mean"), by adding a parameter "duplicate". It takes "mean" of fold changes and weights for duplicated genes by default; alternatively, it can also take "median", "max", "min" of or "remove" the values for duplicates. Please let me know if it makes sense to you.

Thank you for your input!
Best
Shijia

@jiwonslee
Copy link
Author

jiwonslee commented Dec 24, 2018 via email

@jiwonslee
Copy link
Author

jiwonslee commented Dec 24, 2018 via email

@zhushijia
Copy link
Owner

Sorry for forgetting about that. I just addressed it. Please check the updated version. Hopefully, it is good now.
Best
Shijia

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