-
Notifications
You must be signed in to change notification settings - Fork 10
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
comply to Bioconductor review #8
Comments
Hello @mblue9 I have complied (or replied) to most of the Martin's comments both for SCE, SE, and Seurat packages. If you feel and have time to take case of the
issue for those three packaes would be great. No pressure though, if you are busy no problem at all. |
Ok I can take a look tonight or tomorrow if that's ok. For man that figures directory is needed for the github README I think? For data - provide a description of 1) what the object represents,2) how it was derived, 3 )how it is used in the package |
yes is there any more preferrable location that the community suggests?
I will give it to you today. I have to remember :) I think is derived from seurat or signlecellexperiment tutorials found https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html |
Hello @mblue9 just really a question, I don't want to put pressure as I know you are busy. Do you have a time line for those three points we discussed. If you are too busy I will sort them out no problem. I was thinking about resubmitting this weekend. |
Sorry I’ve been tied up with other work I can do it tomorrow if that’s not too late? |
No prob. Tomorrow is great. I will focus on the other missing points then. Thanks! |
Working on this now For the Storing images in man/figures is mentioned in CRAN here (pasted below): https://cran.r-project.org/submit.html
It's used for figures in the README by the R community here: https://r-pkgs.org/whole-game.html
and mentioned by Hadley here: r-lib/pkgdown#280 (comment) Is one of these refs good enough? |
That's amazing. Feel free to add this text below Martin's comment and you can tick the box as done ;) |
Ok I will write something under that comment. I will also test the removing the :: now. By the way the way for your response above
Are you sure it's following tidyverse style? as there are recommendations for when it's better to not use the pipe e.g. for readability/communication: https://r4ds.had.co.nz/pipes.html#when-not-to-use-the-pipe
|
Wow, I would have said 1000 at least |
For this question Martin's is referring to the tests. There the number of lines is quite small. |
@mblue9 please let me know when you feel you are ready on your side. Today I will share this issue with Martin's for tidySCE and tidySE. |
I added a comment for man/figures above. pasilla data.R in tidySE needs info I could do that later as have to head out now. Or feel free to add it if you don't want to wait. |
I have added it, and replied to the Bioconductor reviewers. Thanks for your help! |
DESCRIPTION
We are well in-line as I don't like acronyms either. As note, sce is the common name for SingleCellExperiment object e.g. in this official source, is really commonly accepted by the community.
In order to respect both Bioconductor tradition and tidyverse standards (afterall this is a equal-rights marriage) the name
tidySingleCellExperiment
can be a good solution. (I understand the S4 point of view, but this package is dedicated to end-users, so the elegance in design and vocabulary has them as our priority)Having said that, at the BioC-Asia2020 we will gather the opinion of the community with a pool at our workshop.
Title: field opening quote not closed; is it necessary
Description: Not sure what an 'invisible layer' is as a programming concept?
Imports: not all packages listed here are actually used directly? Remove packages that provide functionality that is not directly referenced.
TESTS
consider organising test files so that they have the same structure as the R/ files -- each tests/testthat/test-* is testing code defined in the corresponding R/* file. This organization makes it easier to navigate the code.
hmm, I find the coding style here very difficult to read, and wonder why it does not follow tidyverse guidelines? https://style.tidyverse.org/pipes.html#whitespace .
Likewise with tests, it would seem that nesting pipes within expect_() is antithetic to readability -- instead, create a temporary variable from a piped expresssion, and use the variable in expect_() statement?
I opted for full tydyverse style without the need to create temporary variables
R (comments are on specfic lines of code, but apply throughout)
data.R I was surprised that these data sets were not documented here, where they are defined? The documentation in man/pbmc_small.Rd, for instance, is inadequate -- provide a description of what the object represents, how it was derived, how it is used in the package.
dplyr_methods.R:58 Redefining the generic is not appropriate. Instead, define S3 methods that implement functionality for the specific classes you wish to provide methods for, and export the methods. Since you expect the user to use the dplyr generics, place dplyr in the Depends: field of the DESCRIPTION file.
I worked on it, and I agree. Respecting this standard is on out to-do list for tidySCE, tidySE and tidybulk. However I was not able to make things work under this standard this branch (either the export from roxigen disappears, or the method.class does not get exported). I ask to give us a release cycle to fix this. This although is a better approach does not affect negatively when using any package.
I used cbind to cbind two SingleCellExperiment objects
tts[[1]] is a SingleCellExperiment; colData(tts[[1]]) is a DataFrame that cannot be converted to tibble directly; DataFrame is used to update colData from SCE
message("tidySCE says: A data frame is returned for
independent data analysis.")
results in quasi-arbitrary formatting for output, where the white space introduced for programmatic convenience is echoed literally to the user
tidySCE says: A data frame is returned for
independent data analysis.
Rely on message()'s internal use of paste0() or, if precise formatting is important, use strwrap()
message(
"tidySCE says: A data frame is returned for ",
"independent data analysis."
)
or (presummable in a helper function for re-use across your code)
txt <- paste(
"tidySCE says: A data frame is returned for ",
"independent data analysis."
)
message(paste(strwrap(txt, exdent = 4), collapse = "\n"))
tst <- intersect(
cols %>%
names(),
get_special_columns(.data) %>%
c(get_needed_columns())) %>%
length() %>%
gt(0)
)
if (tst) {
this is a concatenation "a" %>% c("b")
columns <-
get_special_columns(.data) %>%
c(get_needed_columns()) %>%
paste(collapse=", ")
stop(
"tidySCE says: you are trying to rename a column that is view only ",
columns, " ",
"(it is not present in the colData). If you want to mutate a view-only",
"column, make a copy and mutate that one.",
)
For the moment we have adopted the stop paste0 function suggested above. In the future this will be an area of improvement.
the code is similar but not identical
I understan the concern, however since I am overwriting some tidyverse function this helps some inconsistencies. We plan to improve the code clarity as the pakage matures
We agree, we wait to create this file once the package name has been settled (first point in the review list).
MAN
It's used for the figures in the README, as here: https://r-pkgs.org/whole-game.html
The text was updated successfully, but these errors were encountered: