Bioconductor / Contributions

Contribute Packages to Bioconductor
131 stars 33 forks source link

BREW3R.r #3313

Closed lldelisle closed 2 months ago

lldelisle commented 4 months ago

Update the following URL to point to the GitHub repository of the package you wish to submit to Bioconductor

Confirm the following by editing each check box to '[x]'

I am familiar with the essential aspects of Bioconductor software management, including:

For questions/help about the submission process, including questions about the output of the automatic reports generated by the SPB (Single Package Builder), please use the #package-submission channel of our Community Slack. Follow the link on the home page of the Bioconductor website to sign up.

bioc-issue-bot commented 4 months ago

Hi @lldelisle

Thanks for submitting your package. We are taking a quick look at it and you will hear back from us soon.

The DESCRIPTION file for this package is:

Package: BREW3R.r
Type: Package
Title: R package associated to BREW3R
Version: 0.99.0
Authors@R: 
    person(given = "Lucille",
 family = "Lopez-Delisle",
 role = c("aut", "cre"),
 email = "lucille.delisle@epfl.ch",
 comment = c(ORCID = "0000-0002-1964-4960"))
Description: This R package provide functions that are used in the BREW3R
    workflow. This mainly contains a function that extend a gtf as GRanges using
    information from another gtf (also as GRanges). The process allows to extend
    gene annotation without increasing the overlap between gene ids.
License: GPL-3
Encoding: UTF-8
LazyData: false
RoxygenNote: 7.3.1
Imports:
    dplyr,
    GenomicRanges,
    methods,
    S4Vectors,
    tidyselect,
    utils
Suggests: 
    testthat (>= 3.0.0),
    IRanges,
    knitr,
    rmarkdown,
    BiocStyle,
    rtracklayer
biocViews:
    GenomeAnnotation
Config/testthat/edition: 3
URL: https://github.com/lldelisle/BREW3R.r
BugReports: https://github.com/lldelisle/BREW3R.r/issues/
VignetteBuilder: knitr
bioc-issue-bot commented 4 months ago

Your package has been added to git.bioconductor.org to continue the pre-review process. A build report will be posted shortly. Please fix any ERROR and WARNING in the build report before a reviewer is assigned or provide a justification on why you feel the ERROR or WARNING should be granted an exception.

IMPORTANT: Please read this documentation for setting up remotes to push to git.bioconductor.org. All changes should be pushed to git.bioconductor.org moving forward. It is required to push a version bump to git.bioconductor.org to trigger a new build report.

Bioconductor utilized your github ssh-keys for git.bioconductor.org access. To manage keys and future access you may want to active your Bioconductor Git Credentials Account

bioc-issue-bot commented 4 months ago

Dear Package contributor,

This is the automated single package builder at bioconductor.org.

Your package has been built on the Bioconductor Single Package Builder.

Congratulations! The package built without errors or warnings on all platforms.

Please see the build report for more details.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): BREW3R.r_0.99.0.tar.gz

Links above active for 21 days.

Remember: if you submitted your package after July 7th, 2020, when making changes to your repository push to git@git.bioconductor.org:packages/BREW3R.r to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 3 months ago

A reviewer has been assigned to your package for an indepth review. Please respond accordingly to any further comments from the reviewer.

LiNk-NY commented 3 months ago

Hi @lldelisle

Thank you for your submission. Please see the review below.

Best regards, Marcel


BREW3R.r

DESCRIPTION

NAMESPACE

vignettes

R

tests

Coverage looks good:

covr::package_coverage()
BREW3R.r Coverage: 89.71%
R/extend_granges.R: 76.29%
R/helpers.R: 92.23%
lldelisle commented 3 months ago

Thank you very much for your review. I have started to adress your points in https://github.com/lldelisle/BREW3R.r/pull/1

I am trying to strongly reduce the usage of tidyverse in favor of resize etc... but this needs a lot of rethinking.

LiNk-NY commented 3 months ago

Hi Lucille, @lldelisle

Please consider this resource for working with verbosity: https://ropensci.org/blog/2024/02/06/verbosity-control-packages/ Usually, a package-wide option (along with a wrapper function provided by e.g., rlang, cli, futile.logger, etc.) is preferred and as a side-effect, it will cut down on the number of conditional statements.

-Marcel

lldelisle commented 2 months ago

Hi @LiNk-NY , Thank you very much for the tip. I have included this, see https://github.com/lldelisle/BREW3R.r/pull/1/commits/661e9bc002fcd6abf5b3e4cdf08e4b3b47a5d425 So I converted my verbose = 1 to rlang::inform, my verbose = 2 to a new function progression_msg and debug to debug_msg. But this did not decreased the cyclomatic complexity as my function progression_msg has a conditional statement inside...

Except from that my PR contains a new version which do not use dplyr anymore. Do you want to review my PR or should I merge it and then you review?

LiNk-NY commented 2 months ago

But this did not decreased the cyclomatic complexity as my function progression_msg has a conditional statement inside...

Hi Lucille, @lldelisle Thank you for making those changes. The improvement can be seen via:

> cyclocomp::cyclocomp(expr=BREW3R.r::extend_granges)
[1] 4

It looks good!

Please merge first and I can follow up with the review.

-Marcel

lldelisle commented 2 months ago

I have merged.

LiNk-NY commented 2 months ago

Hi Lucille, @lldelisle Have you pushed your changes to git.bioconductor.org? Best, Marcel

LiNk-NY commented 2 months ago

Please make sure that the global variables are accounted for. See the NOTE:

* checking R code for possible problems ... NOTE
add_new_exons: no visible binding for global variable ‘transcript_id’
add_new_exons: no visible binding for global variable ‘start’
add_new_exons: no visible binding for global variable
  ‘three_prime_query’
add_new_exons: no visible binding for global variable ‘end’
add_new_exons: no visible binding for global variable ‘exon_number’
adjust_for_collision: no visible binding for global variable
  ‘old_width’
adjust_for_collision: no visible binding for global variable ‘width’
extend_granges: no visible binding for global variable ‘type’
extend_granges: no visible binding for global variable ‘id’
extend_using_overlap: no visible binding for global variable ‘type’
extract_last_exon: no visible binding for global variable ‘type’
filter_new_exons: no visible binding for global variable
  ‘collision_base’
filter_new_exons: no visible binding for global variable ‘start’
filter_new_exons: no visible binding for global variable ‘end’
overlap_different_genes: no visible binding for global variable
  ‘query_gene_id’
overlap_different_genes: no visible binding for global variable
  ‘subject_gene_id’
Undefined global functions or variables:
  collision_base end exon_number id old_width query_gene_id start
  subject_gene_id three_prime_query transcript_id type width
Consider adding
  importFrom("stats", "end", "start")

You can use with() inside of a subset function to avoid the NOTE e.g.,

subset(mtcars, with(mtcars, mpg > 20))

All else looks good. Please bump the version and push to git.bioconductor.org for another build and check. Thanks, -Marcel

bioc-issue-bot commented 2 months ago

Received a valid push on git.bioconductor.org; starting a build for commit id: badb8c774bcd5dbb8b300fb1e42469922fc58484

bioc-issue-bot commented 2 months ago

Dear Package contributor,

This is the automated single package builder at bioconductor.org.

Your package has been built on the Bioconductor Single Package Builder.

Congratulations! The package built without errors or warnings on all platforms.

Please see the build report for more details.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): BREW3R.r_0.99.1.tar.gz

Links above active for 21 days.

Remember: if you submitted your package after July 7th, 2020, when making changes to your repository push to git@git.bioconductor.org:packages/BREW3R.r to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

lldelisle commented 2 months ago

Indeed they are all within a subset... Thanks for the typo, I will fix them tomorrow. groupping should be grouping, right? And extend last exon? should be exons?

LiNk-NY commented 2 months ago

groupping should be grouping, right?

Yes

And extend last exon? should be exons?

Sorry, I meant to type extract_last_exon as the name of the function where groupping_variable is an argument. But it does seem like the function should also be plural as the documentation title suggests.

bioc-issue-bot commented 2 months ago

Received a valid push on git.bioconductor.org; starting a build for commit id: df61bd6ed11ea3100a7589a0210c369c6a986bd9

bioc-issue-bot commented 2 months ago

Dear Package contributor,

This is the automated single package builder at bioconductor.org.

Your package has been built on the Bioconductor Single Package Builder.

Congratulations! The package built without errors or warnings on all platforms.

Please see the build report for more details.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): BREW3R.r_0.99.2.tar.gz

Links above active for 21 days.

Remember: if you submitted your package after July 7th, 2020, when making changes to your repository push to git@git.bioconductor.org:packages/BREW3R.r to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

lldelisle commented 2 months ago

Hi @LiNk-NY , I fixed the 2 typos and used with in the subset to avoid the NOTE about the undefined variables. Are you happy with my changes. Or do I need to change something else? Thanks

LiNk-NY commented 2 months ago

Hi @lldelisle , Thank you for making those changes. The package has been accepted. Best regards, Marcel

bioc-issue-bot commented 2 months ago

Your package has been accepted. It will be added to the Bioconductor nightly builds.

Thank you for contributing to Bioconductor!

Reviewers for Bioconductor packages are volunteers from the Bioconductor community. If you are interested in becoming a Bioconductor package reviewer, please see Reviewers Expectations.

lldelisle commented 2 months ago

Thanks

lshep commented 2 months ago

The default branch of your GitHub repository has been added to Bioconductor's git repository as branch devel.

To use the git.bioconductor.org repository, we need an 'ssh' key to associate with your github user name. If your GitHub account already has ssh public keys (https://github.com/lldelisle.keys is not empty), then no further steps are required. Otherwise, do the following:

  1. Add an SSH key to your github account
  2. Submit your SSH key to Bioconductor

See further instructions at

https://bioconductor.org/developers/how-to/git/

for working with this repository. See especially

https://bioconductor.org/developers/how-to/git/new-package-workflow/ https://bioconductor.org/developers/how-to/git/sync-existing-repositories/

to keep your GitHub and Bioconductor repositories in sync.

Your package will be included in the next nigthly 'devel' build (check-out from git at about 6 pm Eastern; build completion around 2pm Eastern the next day) at

https://bioconductor.org/checkResults/

(Builds sometimes fail, so ensure that the date stamps on the main landing page are consistent with the addition of your package). Once the package builds successfully, you package will be available for download in the 'Devel' version of Bioconductor using BiocManager::install("BREW3R.r"). The package 'landing page' will be created at

https://bioconductor.org/packages/BREW3R.r

If you have any questions, please contact the bioc-devel mailing list (https://stat.ethz.ch/mailman/listinfo/bioc-devel); this issue will not be monitored further.