Skip to content
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

Notame normalization and feature selection #6

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

vsuksi
Copy link

@vsuksi vsuksi commented Oct 25, 2024

Initial version, using notame 0.3.2, https://github.com/antonvsdata/notame.

@philouail philouail self-assigned this Oct 25, 2024
Copy link
Collaborator

@philouail philouail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really good ! thank you so so much for taking the time for this. I have added comments for things that need to be updated.

A general comment would be that if you have parameters specific to notame functions maybe detail them a bit in the text. otherwise I find it very well described.

I will update the trunk vignette asap so that the SummarizedExperiment is saved and therefore your vignette can work with everything else !

Request my feedback (button on the top right) when you have done the little fixes.

library(notame)
library(SummarizedExperiment)

registerDoParallel(cores = 14)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the other vignettes we use the BiocParallel package for setting parallelisation. Also we use 2 cores :) So the code should be as below:

#' Set up parallel processing using 2 cores
if (.Platform$OS.type == "unix") {
    register(MulticoreParam(2))
} else {
    register(SnowParam(2))
} 

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and therefore no need for the doParallel package

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I have a question here @vsuksi - I assume you use doParallel parallel processing code within the notame package? Also thinking on the Bioconductor submission of your package, I think it would be good to change/switch here to BiocParallel parallel processing functions (i.e. bplapply(), bpmapply() etc). The BiocParallel is the standard package in Bioconductor to register/configure parallel processing. So, something like the example code above from Phili would then be used across all used packages for the parallel processing. What I found particularly helpful with BiocParallel is that it allows to use a variety of different configurations, from SerialParam to disable parallel processing, to SnowParam (for Windows) MulticoreParam (for Unix) to also parameters that allow to configure and use HPC queueing systems like slurm. And there is also a param for doParallel too :)

So, maybe, on the longer run, it would make sense to switch the parallel processing code within notame to BiocParallel?

Copy link
Author

@vsuksi vsuksi Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to hear and sorry for the delay, I need to practice juggling several things at once! Happily the Bioconductor-version of notame uses BiocParallel instead of doParallel, I will switch to that version and the code chunk above after we're done with some larger changes and submit. We've been taking some time to make this the first real release, but I'm hoping it is ready in a week or two.

vignettes/notame_normalization_and_feature_selection.qmd Outdated Show resolved Hide resolved
vignettes/notame_normalization_and_feature_selection.qmd Outdated Show resolved Hide resolved
vignettes/notame_normalization_and_feature_selection.qmd Outdated Show resolved Hide resolved
vignettes/notame_normalization_and_feature_selection.qmd Outdated Show resolved Hide resolved
vignettes/notame_normalization_and_feature_selection.qmd Outdated Show resolved Hide resolved
vignettes/notame_normalization_and_feature_selection.qmd Outdated Show resolved Hide resolved
@philouail philouail marked this pull request as draft October 30, 2024 08:53
@philouail
Copy link
Collaborator

Just converting to draft so that we don't merge per error until it's ready :)

…n_and_feature_selection.

Just keeping in sync.
Hi, I think I've addressed your suggestions, thanks! I also changed some 
minor things and clarified in the normalization visualizations what one 
would typically look for.
@vsuksi
Copy link
Author

vsuksi commented Nov 11, 2024

Hi, I think I've addressed your suggestions, thanks! I also changed some minor things and clarified in the normalization visualizations what one would typically look for.

@vsuksi vsuksi requested a review from philouail November 12, 2024 07:33
@@ -0,0 +1,42 @@
@article{klavus_notame_2020,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is perfect thanks a lot !

@philouail
Copy link
Collaborator

philouail commented Nov 12, 2024

Hi @vsuksi , Indeed this is completely good now ! If the next version of notame with BiocParallel comes out in a few weeks, let's wait until then before merging :) I am fixing some error that arise after the latest BioC update anyway so there is no rush.

Thanks a lot again ! Super excited to add it to the website :)


registerDoParallel(cores = 14)

dir <- system.file("extdata", "preprocessed_res", package = "metabonaut")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi sorry just tiny thing that needs to change: can you write Metabonaut with a capital letter instead of metabonaut

Now uses SummarizedExperiment. Flagged features are carried further. 
Noticed that I used the non gap-filled assay for the analysis, rectified 
that (not much changed). Clarified some text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants