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

Check on wrong assay? #75

Open
p-smirnov opened this issue Dec 21, 2020 · 3 comments
Open

Check on wrong assay? #75

p-smirnov opened this issue Dec 21, 2020 · 3 comments

Comments

@p-smirnov
Copy link
Contributor

if(!is.null(SummarizedExperiment::assay(res, 1))) {

Im about 60% sure this is supposed to be a 2 in the if statement, it does not really make much sense otherwise. The first assay should not be null, we just put it in there.

@p-smirnov
Copy link
Contributor Author

@ChristopherEeles When you have a chance, can you confirm my understanding?

@ChristopherEeles
Copy link
Contributor

IIRC I added that condition to replicate the output of the old function for ExpressionSets, which always produced a second assay in the summary (I think it was supposed to hold the standard error of the summarized metric). As far as I could tell it was always an NA matrix with the same dimensions and row/colnames as the first assay matrix.

If we remove that block, there will be an error in the assayNames assignment on line 236. The block serves no other function than to match the output of the original function and prevent the error I mentioned. You can see there was a note in there to generalize that block for SummarizedExperiments with more than one assay.

@ChristopherEeles
Copy link
Contributor

I check if the first assay is null to deal with PharmacoSets without molecular profiles, which should not have a second assay added in the summary.

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

No branches or pull requests

2 participants