You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My data comes from here.
When I run the dataProcess() function, it will report an error: Aggregation function missing: defaulting to length Error in factor(work$RUN, levels = unique(work$RUN), labels = seq(1, length(unique(work$RUN)))) : invalid 'labels'; length 2 should be 1 or 1
If this helps, my code is as follows:
I have viewed the MSstats code on Github, but I didn't find relevant information, how should I solve it?
Is this experiment label-free? If so, there should be a single value per feature per run, I can see two values in many cases. They should be aggregated
This experiment is label-free, and is the feature refer to PeptideSequence, PrecursorCharge, FragmentIon, ProductCharge?
If so, I didn't find two same features in same run.
Hi,
I found the problem, I just need a bit of time to figure out if it's a problem with the annotation of the dataset (perhaps adding "TechReplicate" column to annotation can solve it) or an implementation problem. I'll let you know as soon as I can
We made this example to show you what should be the correct annotation for this dataset. Does it help? Current annotation appears to be wrong. Please let me know if you can fix the annotation based on this screenshot and if dataProcess works with the updated dataset
Oh, this is my overesight. I originally guess because the Condition column name is too long, and we need is the intermediate real Condition,so I handled the condition column. But the out_msstats before and after running DataProcess are also wrong.
I only extract the real useful information in the original Condition column to generate a new out_msstats file, but run them all report the same error.
Hi, I changed summaryMethod = 'TMP' to summaryMethod = 'linear', then it can run normally. But there is a warning message: In summary.lm(fit) : essentially perfect fit: summary may be unreliable
it was a legitimate error, but the message or lack of message was wrong. One thing that can be done to solve this is to add TechReplicate column and import the data using updated version of MSstatsConvert:
devtools::install_github("Vitek-Lab/MSstatsConvert", ref = "hotfix-techreplicate")
but it needs further discussion. I'm moving this discussion to #65 and related pull request. It will be solved (either via TechReplicate column or better error message) in the next release.
Activity
mstaniak commentedon Jul 1, 2021
Hi,
looks like you are using old version of MSstats (we retired the cutoffCensored parameter). Please check if the problem persists with v4.0.1
mstaniak commentedon Jul 1, 2021
Sorry about the late response, not sure why I missed the issue
Douerww commentedon Jul 4, 2021
Thanks for reply. After I updated the version of MSstats(v4.1.1), the error message turned into it:


and my code is:
The rest of my data (also from this site) worked, but I couldn't find the difference between error data and normal data.
mstaniak commentedon Jul 4, 2021
Thanks, looks like the problem carried over from v3 to v4. I'll check what's going on there
mstaniak commentedon Jul 4, 2021
Is this experiment label-free? If so, there should be a single value per feature per run, I can see two values in many cases. They should be aggregated
Douerww commentedon Jul 5, 2021
This experiment is label-free, and is the feature refer to PeptideSequence, PrecursorCharge, FragmentIon, ProductCharge?
If so, I didn't find two same features in same run.
mstaniak commentedon Jul 5, 2021
My bad, I misread the columns. I'll check again
mstaniak commentedon Jul 5, 2021
Hi,
I found the problem, I just need a bit of time to figure out if it's a problem with the annotation of the dataset (perhaps adding "TechReplicate" column to annotation can solve it) or an implementation problem. I'll let you know as soon as I can
mstaniak commentedon Jul 5, 2021
@Douerww are some of the runs here considered technical replicates?
Douerww commentedon Jul 5, 2021
yes, it is, in this file
mstaniak commentedon Jul 5, 2021
I'll double check the solution with the team, but hopefully it will be just a minor change in your annotation
Douerww commentedon Jul 5, 2021
thanks!
mstaniak commentedon Jul 5, 2021
We made this example to show you what should be the correct annotation for this dataset. Does it help? Current annotation appears to be wrong. Please let me know if you can fix the annotation based on this screenshot and if dataProcess works with the updated dataset
Douerww commentedon Jul 6, 2021
OK, I will check the annotation based on this screenshot, and test dataProcess again, thanks!
Douerww commentedon Jul 7, 2021
Hi, we think the SDRF annotation file has no problem after a discussion. Can you check the expdesign file to find the problem?
5 remaining items
mstaniak commentedon Jul 9, 2021
how many conditions are there in this experiment?
Douerww commentedon Jul 9, 2021
3: breast tumor (1-3 cm) distant tissue, breast tumor (1-3 cm) distant tissue and breast tumor tissue
mstaniak commentedon Jul 9, 2021
Exactly, and I counted 9 conditions, because bioreplicate ID was appended to Condition ID. Is this correct?
Douerww commentedon Jul 9, 2021
unique(out_msstats["Condition"]) shows 3 conditions, do you mean that MSstats is calculated together with Bioreplicate and Condition?
mstaniak commentedon Jul 9, 2021
then we are looking at different datasets
mstaniak commentedon Jul 9, 2021
Douerww commentedon Jul 9, 2021
mstaniak commentedon Jul 9, 2021
Why/how is your input different from the linked file?
Douerww commentedon Jul 9, 2021
Oh, this is my overesight. I originally guess because the Condition column name is too long, and we need is the intermediate real Condition,so I handled the condition column. But the out_msstats before and after running DataProcess are also wrong.
Douerww commentedon Jul 9, 2021
I only extract the real useful information in the original Condition column to generate a new out_msstats file, but run them all report the same error.
Douerww commentedon Jul 16, 2021
Hi, I changed
summaryMethod = 'TMP'tosummaryMethod = 'linear', then it can run normally. But there is a warning message:In summary.lm(fit) : essentially perfect fit: summary may be unreliablemstaniak commentedon Jul 20, 2021
Hi, linear is not the recommended summarization method. Please try adding a TechReplicate column to indicate technical replicate
mstaniak commentedon Jul 20, 2021
If the warning about perfect fit is coming from dataProcess, it's completely harmless
mstaniak commentedon Sep 24, 2021
Hi,
it was a legitimate error, but the message or lack of message was wrong. One thing that can be done to solve this is to add TechReplicate column and import the data using updated version of MSstatsConvert:
devtools::install_github("Vitek-Lab/MSstatsConvert", ref = "hotfix-techreplicate")
but it needs further discussion. I'm moving this discussion to #65 and related pull request. It will be solved (either via TechReplicate column or better error message) in the next release.