Open
Conversation
Contributor
Author
|
Addresses #106 |
gpatoine
reviewed
Nov 5, 2025
| # Merge assay, sample, ms_run, and study_variable metadata | ||
| if ("sample_ref" %in% names(assay_tab)) assay_tab$sample_id <- assay_tab$sample_ref | ||
| if ("ms_run_ref" %in% names(assay_tab)) assay_tab$ms_run_id <- assay_tab$ms_run_ref | ||
| if (!is.null(sample_tab) && "sample_id" %in% names(assay_tab)) |
Contributor
There was a problem hiding this comment.
Here and below: Please add curly brackets for if-statement contents on a different line.
gpatoine
reviewed
Nov 5, 2025
| # Build SummarizedExperiment for a section | ||
| build_se <- function(tab, id_col, cd) { | ||
| qcols <- get_assay_quant_cols(tab) | ||
| if (!length(qcols)) stop("No abundance_assay[...] columns in ", id_col, " section.") |
Contributor
There was a problem hiding this comment.
Same with curly brackets here.
gpatoine
reviewed
Nov 5, 2025
| } | ||
|
|
||
| # Cast regular fields to wide | ||
| regular_wide <- reshape(regular_df, idvar = idvar, timevar = field_col, v.names = value_col, direction = "wide") |
Contributor
There was a problem hiding this comment.
Getting a warning: "some constant variables (field) are really varying". Is that an issue?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements readMzTabM() function to import mzTab-M files and convert them to QFeatures objects.
Current Status
Remaining Work