Bioconductor / Contributions

Contribute Packages to Bioconductor
134 stars 33 forks source link

ceRNAnetsim #1287

Closed selcenari closed 4 years ago

selcenari commented 5 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.

Kayla-Morrell commented 4 years ago

Hello @selcenari - Thank you for making the necessary changes. I have some additional notes before accepting the package. Please see them below.

system.time(TCGA_E9_A1N5_mirnagene %>% 
    priming_graph(competing_count = gene_expression, miRNA_count = total_read))
   user  system elapsed
  3.009   0.410   3.459

This part of the function only about 3.5 seconds to run.

> system.time(TCGA_E9_A1N5_mirnagene %>% 
    priming_graph(competing_count = gene_expression, miRNA_count = total_read) %>% 
    update_how(node_name = "HIST1H3H", how = 30))
   user  system elapsed
  3.232   0.605   3.874

Adding the next part of the code only adds about 0.4 of a second. Then the lengthy part of the code...

> system.time(TCGA_E9_A1N5_mirnagene %>% 
    priming_graph(competing_count = gene_expression, miRNA_count = total_read) %>% 
    update_how(node_name = "HIST1H3H", how = 30) %>% 
    simulate(20))
   user  system elapsed
 95.245  10.596 107.258

Every time you call this simulate() function you are adding about 103 seconds (or almost 2 minutes) of run time. Then in lines 189-193 you repeat the same code. So my thought was to save this chunk of code to a variable so you only do the calculation once, like so:

> tst <- TCGA_E9_A1N5_mirnagene %>% 
    priming_graph(competing_count = gene_expression, miRNA_count = total_read) %>%
    update_how(node_name = "HIST1H3H", how = 30) %>% 
    simulate(20)
Warning message:
In priming_graph(., competing_count = gene_expression, miRNA_count = total_read) :
  First column is processed as competing and the second as miRNA.

> tst %>% find_iteration(plot=TRUE)
> system.time(tst %>% find_iteration(plot=TRUE))
   user  system elapsed
 15.815   0.381  16.402

I would suggest avoid repeating the same code over and over, especially if it takes time to run. Try simplifying code where you can and it may save you some time in the build step (this can be used in any of the vignettes to help speed up the build time as much as possible).

Let me know if you need clarification in any way.

Best, Kayla

bioc-issue-bot commented 4 years ago

Received a valid push; starting a build. Commits are:

894c2c8 Update DESCRIPTION

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, TIMEOUT, 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.

bioc-issue-bot commented 4 years ago

Received a valid push; starting a build. Commits are:

df5f752 Update DESCRIPTION

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, TIMEOUT". 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.

bioc-issue-bot commented 4 years ago

Received a valid push; starting a build. Commits are:

a0e1439 version 20

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, TIMEOUT". 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.

bioc-issue-bot commented 4 years ago

Received a valid push; starting a build. Commits are:

cd87569 version 21

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, TIMEOUT". 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.

bioc-issue-bot commented 4 years ago

Received a valid push; starting a build. Commits are:

4ae1e24 version 22

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, TIMEOUT". 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.

bioc-issue-bot commented 4 years ago

Received a valid push; starting a build. Commits are:

09b2c7a version 23

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.

bioc-issue-bot commented 4 years ago

Received a valid push; starting a build. Commits are:

e391044 version 24

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.

selcenari commented 4 years ago

Hi @Kayla-Morrell ,

Thanks for your review, the changes are shown following:

I have looked at formating of NEWS file. But actually there was nothing wrong in package’s NEWS file. At the same time, i have tried to solve this problem. I have noticed that it could be an Rstudio bug. Because, i encountered Error below, when i ran utils::news(package="example_package")

Error in UseMethod("toHTML") : no applicable method for 'toHTML' applied to an object of class "NULL".

Here you can see the similar problem. I have tried some other methods to solve this problem, but it is non-effective to show news without local changes.

Thanks for the suggestions, it worked great. Two chunks (in auxiliary_commands vignette) includes eval=FALSE, but i shown this as it is only helper command not used as basic steps of the workflow. If you have a suggestion about NEWS file,i can work on it.

Best… Selcen

Kayla-Morrell commented 4 years ago

@selcenari - I rechecked the NEWS file and it seems to be rendering fine now. Thank you for making those changes, everything looks good now and I'd be more than happy to accept the package.

Best, Kayla

bioc-issue-bot commented 4 years ago

Your package has been accepted. It will be added to the Bioconductor Git repository and nightly builds. Additional information will be posed to this issue in the next several days.

Thank you for contributing to Bioconductor!

mtmorgan commented 4 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/selcenari.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("ceRNAnetsim"). The package 'landing page' will be created at

https://bioconductor.org/packages/ceRNAnetsim

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.