This repository has been archived by the owner on May 6, 2024. It is now read-only.
proteomicsLFQ removes features with few measurements from MSstats input #102
Labels
bug
Something isn't working
Description of the bug
I run quantms v1.1.1 for a DDA LFQ experiment with the option "msstatslfq_removeFewMeasurements": false to keep features with 2 measurements but proteomicsLFQ removes them from the *_msstats_in.csv" file anyway. I want to keep features with 2 measurements since I have only 3 replicates per condition in this experiment.
The msstats.log (attached) says both that:
and that
INFO [2023-05-26 10:45:53] ** Features with one or two measurements across runs are removed.
I tried to export the sdrf_openms_design_msstats_in_comparisons.csv into MSstats to ensure these features are not removed but noticed that proteomicsLFQ has already removed them.
data <- read.csv("proteomicslfq/sdrf_openms_design_msstats_in.csv", header = TRUE, sep = ',')
data <- data %>% filter(!grepl('CONTAMINANT_', ProteinName))
data_msstats <- OpenMStoMSstatsFormat(data, useUniquePeptide = TRUE, removeFewMeasurements=FALSE, removeProtein_with1Feature = FALSE, summaryforMultipleRows = max, use_log_file = FALSE)
data_msstats %>% group_by(PeptideSequence, PrecursorCharge) %>% summarise(RunCount = sum((Intensity))) %>% ungroup() %>% count(RunCount) %>% mutate(Frequency = n / sum(n))
RunCount n Frequency
1 3 106 0.0484
2 4 368 0.168
3 5 639 0.292
4 6 1077 0.492
msstats.log
Command used and terminal output
No response
Relevant files
No response
System information
The text was updated successfully, but these errors were encountered: