Bioconductor / Contributions

Contribute Packages to Bioconductor
134 stars 33 forks source link

MethReg: Assessing the regulatory potential of DNA methylation regions or sites on gene transcription #1613

Closed tiagochst closed 3 years ago

tiagochst commented 4 years 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 help with submitting your package, please subscribe and post questions to the bioc-devel mailing list.

bioc-issue-bot commented 4 years ago

Hi @tiagochst

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: MethReg
Type: Package
Title: Assessing the regulatory potential of DNA methylation regions or sites on gene transcription
Version: 0.1.0
Authors@R: c(
    person("Tiago", "Silva", email = "tiagochst@gmail.com", role = c("aut", "cre"),
      comment = c(ORCID = "0000-0003-1343-6850")),
    person("Lily", "Wang", email = "lily.wang@gmail.com", role = c("aut"))
      )
Maintainer: Tiago Chedraoui Silva <tiagochst@gmail.com>
Description: MethReg evaluates, annotates and prioritizes DNA methylation regions 
  (or sites) with high regulatory potential, which work synergistically with transcription
  factors to regulate target gene expressions, without any additional ChIP-seq data.
License: GPL-3
Encoding: UTF-8
LazyData: true
Imports:
    dplyr,
    plyr,
    GenomicRanges,
    SummarizedExperiment,
    DelayedArray,
    ggplot2,
    ggpubr,
    tibble,
    tidyr,
    S4Vectors,
    sesameData,
    stringr,
    readr,
    knitr,
    methods,
    stats,
    Matrix,
    MASS,
    rlang,
    pscl,
    IRanges,
    sfsmisc,
    progress
Suggests: 
    rmarkdown,
    testthat (>= 2.1.0),
    parallel,
    downloader,
    R.utils,
    dbplyr,
    RSQLite,
    DBI,
    doParallel,
    reshape2,
    prettydoc,
    JASPAR2020,
    TFBSTools,
    motifmatchr,
    matrixStats,
    biomaRt,
    dorothea,
    viper
VignetteBuilder: knitr
RoxygenNote: 7.1.1
Depends: 
    R (>= 4.0)
biocViews:
  MethylationArray,
  Regression,
  GeneExpression,
  Epigenetics,
  GeneTarget,
  Transcription
tiagochst commented 4 years ago

I fixed the version from 0.1.0 to 0.99.0.

mtmorgan commented 4 years ago

The package needs to be available on the 'master' branch. Please ensure that BiocCheck::BiocCheck() passes without error or warning. Please post a comment here when your package satisfies these basic requirements.

tiagochst commented 4 years ago

Hi Martin,

I fixed it.

Screen Shot 2020-09-01 at 1 34 40 PM

Here is the BiocCheck::BiocCheck().

Screen Shot 2020-09-01 at 1 32 50 PM Screen Shot 2020-09-01 at 1 32 18 PM
tiagochst commented 4 years ago

@mtmorgan Please, do I need to do something else ?

bioc-issue-bot commented 4 years ago

A reviewer has been assigned to your package. Learn what to expect during the review process.

IMPORTANT: Please read this documentation for setting up remotes to push to git.bioconductor.org. It is required to push a version bump to git.bioconductor.org to trigger a new build.

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 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "ERROR". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

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

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "WARNINGS, ERROR, skipped". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "WARNINGS". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "WARNINGS, ERROR". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "ERROR". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

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

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

LiNk-NY commented 4 years ago

Hi Tiago, @tiagochst

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

Best, Marcel


MethReg #1613

DESCRIPTION

NAMESPACE

vignettes

R

Minor:

tests

README.Rmd

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "skipped, ERROR". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "ERROR". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "WARNINGS". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

tiagochst commented 4 years ago

@LiNk-NY I made the updates requested.

I decided to remove get_tf_targets_cistrome.R since I was using it mainly for analysis in the article and it is not a requirement for the package. I had the function unexported, but I think removing makes more sense.

Those dontrun examples were taking some time to run due to the access of DNA methylation metadata information from the sesame package and there was a 20 min computation time limit from Bioconductor. I reviewed some of the examples and removed some dontrun examples.

For the function names here are some changes:

The other requirements were fixed.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "WARNINGS". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

LiNk-NY commented 4 years ago

Hi Tiago, @tiagochst

Thanks for making those changes. Can you please respond to the review line by line?

Best, Marcel

bioc-issue-bot commented 4 years ago

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

tiagochst commented 4 years ago

@LiNk-NY Thanks for the extensive review! Below are the answers to each point.

DESCRIPTION

  • Add more details to the Description: field.

The description was modified from:

MethReg evaluates, annotated, and prioritizes DNA methylation regions (or sites) with high regulatory potential, which work synergistically with transcription factors to regulate target gene expressions, without any additional ChIP-seq data.

To:

Epigenome-wide association studies (EWAS) detects a large number of DNA methylation differences, often hundreds of differentially methylated regions and thousands of CpGs, that are significantly associated with a disease, many are located in non-coding regions. Therefore, there is a critical need to better understand the functional impact of these CpG methylations and to further prioritize the significant changes. MethReg is an R package for integrative modeling of DNA methylation, target gene expression and transcription factor binding sites data, to systematically identify and rank functional CpG methylations. MethReg evaluates, prioritizes and annotates CpG sites with high regulatory potential using matched methylation and gene expression data, along with external TF-target interaction databases based on manually curation, ChIP-seq experiments or gene regulatory network analysis.

https://github.com/TransBioInfoLab/MethReg/commit/49ac86d14caecb28041ea0e9b8fd68b6c454bd17#diff-35ba4a2677442e210c23a00a5601aba3

  • Add a BugReports: link for issue reporting.

BugReports was added: https://github.com/TransBioInfoLab/MethReg/issues/

NAMESPACE

If possible, shorten function names.

For the function names here are some changes:

You may want to import the entirety of GenomicRanges e.g., import(GenomicRanges) rather than using importFrom.

I imported GenomicRanges, but there was a warning of masked functions because I was importing dplyr. So I importedFrom dplyr instead of importing all its functions. However, importedFrom GenomicRanges was a easier solution, since dplyr functions were extensively used in the package.

vignettes

Remove the GitHub installation instructions.

Removed.

Show how to use BiocManager to install the package.

MethReg is a Bioconductor package and can be installed through BiocManager::install().

if (!"BiocManager" %in% rownames(installed.packages()))
     install.packages("BiocManager")
BiocManager::install("MethReg", dependencies = TRUE)

Remove the repeated library(MethReg) call in the vignette.

Removed.

Avoid awkward constructions such as get(data(...)) in a user-facing vignette. data should return the data instead of a character. Perhaps use usethis::use_data.

I normally use get(data(...)) when I need the object with another name instead of the default. But in this case it was not necessary.

object <- get(data(...)) was changed to data(...) only.

Observe the 80 character width limit. It makes text easier to read and even maintain.

I reduced as much as a could the width of the lines.

You don't need to remove the data object from memory with gc().

Removed.

Remove any code for coMethDMR as it is not in Bioconductor or CRAN. R

All the coMethDMR code was removed.

It is possible for the user to save a file themselves without the need of the file.out argument in your function. It may be more simple to remove the argument and include an example in the documentation that shows the user how to write the data to disk.

This option was removed https://github.com/TransBioInfoLab/MethReg/blob/master/R/cor_region_dnam_target_gene.R#L51-L58

Avoid using dontrun{} in examples. This creates stale code whenever there is an API change. If the dontrun examples are too computationally intense, I would suggest using a smaller example dataset.

Don't run examples were removed for the majority of the functions.

The min.confidence argument does not match the documentation in R/create_triplet_regulon_based.R

Thanks for catching this problem. Now the documentations have the same argument description: https://github.com/TransBioInfoLab/MethReg/blob/master/R/create_triplet_regulon_based.R#L12-L15 https://github.com/TransBioInfoLab/MethReg/blob/master/R/regulons.R#L32-L34

Use caching such as BiocFileCache to avoid re-download of human_tfs resources.

BiocFileCache was used for caching: https://github.com/TransBioInfoLab/MethReg/blob/master/R/get_human_tfs.R#L26-L44

Update documentation for dnam and others to include SummarizedExperiment as an option.

Thanks for noticing this problem. I added SummarizedExperiment as an option of input for the DNA methylation and gene expression input.

Avoid downloading files from an Amazon bucket. It is recommended that you obtain it from the official source or from ExperimentHub so that other users/developers can make use of the data (cRegulome.db.gz in R/get_tf_targets_cistrome.R).

This function was removed. https://github.com/TransBioInfoLab/MethReg/commit/a21dc6e5693dc7732de1d98f8c620afd8f1882a2

I think the documented data in R/MethReg.R should be named rather than NULL. See usethis::use_data.

All datasets were named rathen than NULL. https://github.com/TransBioInfoLab/MethReg/blob/master/R/MethReg.R

Minor: Reduce repetitive code by combining logical tests, for example, if (missing(exp) || is.null(exp)) in R/cor_region_dnam_target_gene.R.

Thanks for the suggestion. I changed it in some of the functions.

Allow users to turn off the verbosity from message function calls in functions like get_promoter_avg.

I added the verbose argument to the following functions: cor_tf_target_gene, get_promoter_avg,interaction_model, make_dnam_se, make_exp_se

This will silence the messages output from the function.

tests

  • Remove or update any commented code.

Commented code was removed

  • Looks good.

Thanks!

README.Rmd

Update installation instructions to use BiocManager instead of GitHub.

The installation instructions were updated to:

You can install the MethReg from Bioconductor with: BiocManager::install("MethReg")

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "ERROR". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 4 years ago

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

bioc-issue-bot commented 4 years ago

Dear Package contributor,

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

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "WARNINGS". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be 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/MethReg to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

LiNk-NY commented 4 years ago

Thanks for the detailed response. I've had a look at the changes and they look good! Thank you for contributing to Bioconductor. Best regards, Marcel

bioc-issue-bot commented 4 years ago

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

Thank you for contributing to Bioconductor!

mtmorgan commented 3 years ago

The master branch of your GitHub repository has been added to Bioconductor's git repository.

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/tiagochst.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("MethReg"). The package 'landing page' will be created at

https://bioconductor.org/packages/MethReg

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.