-
Notifications
You must be signed in to change notification settings - Fork 25
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
Improve documentation and package imports #308
base: master
Are you sure you want to change the base?
Improve documentation and package imports #308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
AnnotationDbi, | ||
DESeq2, | ||
Rtsne, | ||
Seurat, | ||
betareg, | ||
boot, | ||
broom, | ||
class, | ||
clusterProfiler, | ||
e1071, | ||
edgeR, | ||
functional, | ||
glmmSeq, | ||
glmmTMB, | ||
limma, | ||
lme4, | ||
matrixStats, | ||
msigdbr, | ||
org.Hs.eg.db, | ||
org.Mm.eg.db, | ||
pbapply, | ||
pbmcapply, | ||
survival, | ||
survminer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this through!
I really think the dependency structure should go back as before. Please try to remove dependency gradually and see if error appear.
Is there any reason to add tidySummarizedExperiment in Suggests?
*please open a new branch for this
# Check if package is installed, otherwise install | ||
if (find.package("matrixStats", quiet = TRUE) %>% length %>% equals(0)) { | ||
message("tidybulk says: Installing matrixStats needed for cibersort") | ||
install.packages("matrixStats", repos = "https://cloud.r-project.org") | ||
} | ||
|
||
# Eliminate sd == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reinstate this would also be part of the effort of dependencies.
hi @william-hutchison can you add me as a contributor to your tidybulk repo? thx |
Hello @chilampoon we interact with forks for the tidyomics. Is much better to track who has contributed to what and see the repo history. |
I meant his forked tidybulk repo so I can directly add commits to this branch |
@chilampoon, sounds good. I have added you as a collaborator to my fork. |
@william-hutchison please update all forks from my master (I have solved the ERROR in the tests). |
Pleaser @chilampoon pull again from my master. I have fixed a bug. |
it's in this commit |
Needs to be done again :) |
AnnotationDbi, | ||
DESeq2, | ||
Rtsne, | ||
Seurat, | ||
betareg, | ||
boot, | ||
broom, | ||
class, | ||
clusterProfiler, | ||
e1071, | ||
edgeR, | ||
functional, | ||
glmmSeq, | ||
glmmTMB, | ||
limma, | ||
lme4, | ||
matrixStats, | ||
msigdbr, | ||
org.Hs.eg.db, | ||
org.Mm.eg.db, | ||
pbapply, | ||
pbmcapply, | ||
survival, | ||
survminer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chilampoon and @william-hutchison we need to drop all these new Imports
. If Bioconductor does not accept on-the-fly installation anymore, we rather print the message to install if the packages are not installed, and then use
<package>::<function>
but without adding those dependendies to @importFrom
, not in DESCRIPTION as Imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yead I agree on too many Imports, however directly add <package>::<function>
inside a function without specifying `@importFrom' will trigger a warning saying '::' or ':::' imports not declared from: xyz packages...
#' @importFrom scales extended_breaks | ||
#' @importFrom stats qlogis plogis | ||
#' @importFrom functional Compose | ||
#' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would not add any dependency here, but check if functional
is installed, and if not , error the user, asking for installing.
This should be applied to all cases.
#' | ||
#' @import lme4 | ||
#' @importFrom glmmTMB glmmTMBControl | ||
#' @importFrom parallel makeCluster | ||
#' @importFrom parallel clusterExport | ||
#' @importFrom pbapply pblapply | ||
#' @importFrom pbmcapply pbmclapply | ||
#' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
#' @importFrom betareg betareg | ||
#' @importFrom broom tidy | ||
#' @importFrom boot logit | ||
#' @importFrom survival coxph | ||
#' @importFrom survminer surv_fit | ||
#' @importFrom survminer ggsurvplot | ||
multivariable_differential_tissue_composition = function( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Hello @chilampoon, I hope you're well. Any news with this project? We have put a lot of energies, it would be worth to take it to completion. |
yes lets get it done. Re the package dependencies - so many functionalities are included in this package, I wonder if it's possible to remove some of the non-core functions, especially those for running very downstream tasks? instead we could just keep some examples in the vignette, then the package would be more lightweight |
Sure we can have this discussion. However better we do one thing at the time. @chilampoon I see the problem here i that the Github do not pass. I think we are using a not efficient way to approach this problem. Are you doing devtools::check() locally before pushing to the GiHub? We might be close, but I feel we are stuck on this loop. Do you feel you would like a brief meeting on the best testing checking strategy? or @william-hutchison do you feel it would be easier for you to bring this PR to completion? |
Yes I run devtools::check() and R CMD CHECK before committing, there are still errors/warnings I haven't addressed. |
Hello @chilampoon, sorry for the delay in grant writing time. Any chance we could solve this offline? @william-hutchison, maybe you could advise on why checks are still failing. |
Hi yeah I have been preparing for my candidacy exam which will happen in two weeks, maybe @william-hutchison could help point out the issues by then? And I can meet on zoom in the second week of June |
@arashbioinfo decided to try to solve this PR. @william-hutchison can give you an hand if you get stuck. @arashbioinfo, the first thing is to solve the "conflicts", there are plenty of tutorial on how to deal with them. Conflict emerge when the master branch diverges a lot from the pool request. Maybe @william-hutchison , could you solve the conflicts since you have more background on the package, then @arashbioinfo will try to solve the github checks |
Thank you, @stemangiola, for the guidance and support. I appreciate the opportunity to contribute to this PR. @william-hutchison, thank you in advance for your help. If possible, could we arrange a brief meeting to discuss the best approach to resolving this PR and aligning our efforts? |
Hi @arashbioinfo, sure. Would you like to email me at [email protected] to arrange a time? I'm looking forward to working with you on this! |
Hi @arashbioinfo. I have resolved the conflicts between this PR and the tidybulk master branch. The next step in this project will be to work out why some tests are now failing and correct the code which is responsible. Good luck! |
This pull request picks up on @chilampoon's pull request #297 . In summary: