Bioconductor / Contributions

Contribute Packages to Bioconductor
131 stars 33 forks source link

Package Pirat #3308

Closed samWieczorek closed 1 month ago

samWieczorek 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 @samWieczorek

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: Pirat
Type: Package
Title: Precursor or Peptide Imputation under Random Truncation
Description: Pirat enables the imputation of missing values (either MNARs or 
  MCARs) in bottom-up LC-MS/MS proteomics data using a penalized maximum 
  likelihood strategy. It does not require any parameter tuning, it models 
  the instrument censorship from the data available, it accounts for sibling
  peptides correlations and it can leverage complementary transcriptomics
  measurements. 
Version: 0.99.0
Authors@R: 
  c(person(given = "Lucas", 
family = "Etourneau", 
email = "lucas.etourneau@univ-grenoble-alpes.fr", 
role = c("aut")),
    person(given = "Laura", 
family = "Fancello", 
email = " laura.fancello@cea.fr", 
role = c("aut")),
    person(given = "Samuel", 
family = "Wieczorek",
email = "samuel.wieczorek@cea.fr",
role = c("cre", "aut")),
    person(given = "Nelle", 
family = "Varoquaux",
email = " nelle.varoquaux@univ-grenoble-alpes.fr",
role = c("aut")),
    person(given = "Thomas", 
family = "Burger",
email = "thomas.burger@cea.fr",
role = c("aut")))
License: GPL-2
Encoding: UTF-8
biocViews: Proteomics, MassSpectrometry, Preprocessing, Software
RoxygenNote: 7.3.1
BiocViews: Proteomics,  MassSpectrometry
Depends:
  R (>= 4.4.0)
Imports:
    reticulate, progress, ggplot2, MASS, invgamma, grDevices, stats,
    graphics, rstudioapi, SummarizedExperiment
Suggests: knitr
VignetteBuilder: knitr
URL: http://www.prostar-proteomics.org/
BugReports: https://github.com/prostarproteomics/Pirat/issues
vjcitn commented 4 months ago

Thanks for this contribution. Please see https://bioconductor.org/packages/3.19/bioc/html/basilisk.html for the preferred approach to declaring and using python dependencies. I see that you have LBFGS optimization in python source code, and a second python file that uses it via import python.LBFGS. It would be good to indicate why a scipy optimizer won't do here. You can use reticulate within basilisk to get your sources using source_python. This would enable you to remove the miniconda installation and the manipulation of RETICULATE_PYTHON from your package. Happy to discuss further.

lshep commented 3 months ago

may we expect updates to address the above concern?

samWieczorek commented 3 months ago

hi

thank you for getting back to me because I hadn't seen your first message and I've just read it. I'll see how I can modify Pirat to simplify installation. Indeed, if I could do without installing miniconda and avoid having to handle RETICULATE_PYTHON, I'd prefer that. I'll keep you posted on this concern.

I was just about to write to you because I have a question about using the set.seed function, which generates a warning when I execute the BiocCheck::BiocCheck('new-package'=TRUE) function.

I use the set.seed function to be able to reproduce exactly the results obtained which are published in an article. It's important for me to be able to continue using it. Is there a solution for keeping it and remaining compliant with Bioconductor?

Thank you for your help

lshep commented 3 months ago

A set seed can be used in examples and vignettes just make sure it is done outside any internal package code. it should be set visibly, before a function is called.

samWieczorek commented 3 months ago

Following your advice, I modified the Pirat code and now use the basilisk package. It's much simpler. All I have to do now is fix the problem with the set.seed() function

lshep commented 3 months ago

Please let us know when it is addressed and we will re-evaluate moving this forward in the process.

samWieczorek commented 3 months ago

Hi, I have fixed this warning with the set.seed() function. Please let me know if i have to do anything else ?

bioc-issue-bot commented 3 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 3 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.

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.

The following are build products from R CMD build on the Single Package Builder: ERROR before build products produced.

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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

lshep commented 3 months ago

Please fix the ERROR in the build report before the package will move into review.

samWieczorek commented 2 months ago

I have posted a question on the Bioc mailing list but have no answer yet. Here is the question:

As you adviced me, I use the package basilisk

I have followed the instructions of the basilisk package to build mine. Expecially, there are two files named ‘configure’ and ‘configure.win’ which are necessary to install any package which import basilisk.

However, I still have the following build error : ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' on the Linux OS.

In my local Guithub repository, thoses files have 777 has permissions. And I do not know how to fix this issue.

Do you have any idea ?

lshep commented 2 months ago

It looks like when it was cloned onto git.bioconductor.org it lost execute permissions. I pushed up a change from a local checkout to add execute back and manually kicked off a build. Lets see what the next report says.

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

vjcitn commented 2 months ago

make sure you remove any .Rproj files and bump version

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.3.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.4.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.5.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.6.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.7.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.4.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.5.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.6.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

On one or more platforms, the build results were: "ABNORMAL". 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.

The following are build products from R CMD build on the Single Package Builder: : Pirat_0.99.7.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.8.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

bioc-issue-bot commented 2 months ago

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

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.11.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: Linux (Ubuntu 22.04.3 LTS): Pirat_0.99.12.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

LiNk-NY commented 2 months ago

Hi @samWieczorek

Thank you for your submission. Please see the review below and respond to each item for the review to continue.

Best regards, Marcel


Pirat #3308

DESCRIPTION

NAMESPACE

vignettes

R

* checking R code for possible problems ... NOTE
estimate_gamma: no visible global function definition for ‘lm’
estimate_psi_df: no visible binding for global variable ‘var’
estimate_psi_df: no visible binding for global variable ‘x’
mod_Pirat_server : <anonymous>: no visible global function definition
  for ‘observe’
plot_pep_correlations: no visible global function definition for ‘cor’
plot_pep_correlations: no visible binding for global variable ‘group’
remove_NA_pep_reset: no visible global function definition for
  ‘remove_pep_from_idx’
Undefined global functions or variables:
  cor group lm observe remove_pep_from_idx var x
Consider adding
  importFrom("stats", "cor", "lm", "var")
to your NAMESPACE file.

/

tests

> covr::package_coverage(type = "all")
Pirat Coverage: 68.83%
R/mod_Pirat.R: 0.00%
R/reset_data.R: 0.00%
R/split_funcs.R: 48.28%
R/plots.R: 63.46%
R/pirat_utils.R: 82.29%
R/pipeline_impute.R: 92.78%
R/estimate_funcs.R: 93.88%
R/install.R: 100.00%
R/SE.R: 100.00%
R/utils.R: 100.00%
bioc-issue-bot commented 2 months ago

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

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.

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.

The following are build products from R CMD build on the Single Package Builder: ERROR before build products produced.

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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 2 months ago

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

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): Pirat_0.99.14.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/Pirat to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

samWieczorek commented 2 months ago

Hi, I've corrected almost half of your comments. The rest are in the hands of a colleague who looks after certain parts of the code in Pirat.

I have 2 questions if I don't manage to fix everything by the time of release: what will the status of the package be?

About your question relative to the use of the reticulate package. I need it for two reasons: