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

protocolData in quantify_MSnExp are always dropped #265

Closed
sgibb opened this issue Oct 3, 2017 · 4 comments
Closed

protocolData in quantify_MSnExp are always dropped #265

sgibb opened this issue Oct 3, 2017 · 4 comments
Labels

Comments

@sgibb
Copy link
Collaborator

sgibb commented Oct 3, 2017

While looking through the code to fix #264 I found the following:

## Updating protocol slot
if (nrow(protocolData(object)) > 0) {
if (nrow(protocolData(object)) == length(reporters)) {
.protocolData <- protocolData(object)
} else {
warning("protocolData does not match with reporters. Dropping it.")
}
}

As far as I understand the protocolData are always dropped? I suppose that should not be the case.

@sgibb sgibb added the bug label Oct 3, 2017
@lgatto
Copy link
Owner

lgatto commented Oct 4, 2017

No, I don't think it's always dropped. It is only of its dimensions don't match any more. For example if one starts with one raw files, there's a protocolData slot documenting one sample/file, but then quantifies with iTRAQ4-plex, which produces quantitation data for 4 samples. In such a case, the protocolData will only be retrained if it had 4 rows.

To be honest, I don't think this slot is used much.

@sgibb
Copy link
Collaborator Author

sgibb commented Oct 4, 2017

If the dimensions match protocolData are assigned to .protocolData. But .protocolData is never used, so in fact the information is lost.

To be honest, I don't think this slot is used much.

Me, neither.

@lgatto
Copy link
Owner

lgatto commented Oct 5, 2017

Indeed, something like this is missing

msnset@protocolData <- .protocolData

Thank you for spotting! Feel free to send a PR, or I can quickly do it.

@sgibb sgibb closed this as completed in 4785854 Oct 5, 2017
@lgatto
Copy link
Owner

lgatto commented Oct 5, 2017

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants