Skip to content

Commit dc64993

Browse files
authored
feat(msstats+): make run order determine order of levels of Run column (#131)
1 parent ec4ed62 commit dc64993

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

R/MSstatsConvert_core_functions.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,10 @@ MSstatsAnomalyScores = function(input, quality_metrics, temporal_direction,
571571

572572
subset_cols = subset_cols[subset_cols %in% names(input)]
573573
input = input[, ..subset_cols]
574-
574+
575+
ordered_runs = .standardizeColnames(run_order$Run[order(run_order$Order)])
576+
input$Run = factor(input$Run, levels = ordered_runs)
577+
575578
return(input)
576579

577580
}

0 commit comments

Comments
 (0)