[go: nahoru, domu]

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

Weighted moving average smoothing of spectra #273

Closed
wants to merge 4 commits into from
Closed

Weighted moving average smoothing of spectra #273

wants to merge 4 commits into from

Conversation

SiggiSmara
Copy link

As explained in #272

@sgibb sgibb self-assigned this Nov 7, 2017
Copy link
Collaborator
@sgibb sgibb left a comment

Choose a reason for hiding this comment

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

Thanks for your PR. This won't be merged before sgibb/MALDIquant#54 isn't merged and MALDIqant 1.17 is available on CRAN.

Please also add MALDIquant >= 1.17 to the DESCRIPTION file.

@@ -439,7 +439,7 @@ pickPeaks_Spectrum <- function(object, halfWindowSize = 2L,
}

smooth_Spectrum <- function(object,
method = c("SavitzkyGolay", "MovingAverage"),
method = c("SavitzkyGolay", "MovingAverage","MovingWeightedAverage"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a space after the comma. We try to follow the Bioconductor coding style: https://bioconductor.org/developers/how-to/coding-style/

@@ -26,7 +27,8 @@

Smooths all spectra in \code{MSnExp}. \code{method} could be
\code{"SavitzkyGolay"} or
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the "or" and replace it by a comma, reads: SavitzkyGolay, MovingAverage or MovingWeightedAverage.

@SiggiSmara
Copy link
Author

Thanks for the helpful comments. I'm working on an updated pull also reflecting the suggestions in sgibb/MALDIquant#54.

@sgibb
Copy link
Collaborator
sgibb commented Nov 12, 2017

I guess this PR is not needed anymore. MALDIquant 1.17 introduces a new "weighted" argument to MALDIquant:::.movingAverage (which would be passed by ...). I close this. @SiggiSmara if I am wrong please feel free to reopen.

@sgibb sgibb closed this Nov 12, 2017
@SiggiSmara
Copy link
Author

The only thing that was to do in the end was to change the man page to reflect the changes in MALDIquant. I leave it up to you guys if you want to reopen this one or change the man pages at a later time, perhaps when something more substantial is to be done there?

sgibb added a commit that referenced this pull request Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants