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

spectraCounteBayes Warning messages #14

Open
yudada2020 opened this issue Mar 19, 2024 · 8 comments
Open

spectraCounteBayes Warning messages #14

yudada2020 opened this issue Mar 19, 2024 · 8 comments

Comments

@yudada2020
Copy link

Hello, I have tried to analyse my label-free data by referring to the tutorial "DEqMS analysis using MaxQuant outputs (label-free data)", but when I run the code fit4 = spectraCounteBayes(fit3), R pops up a warning message. How can I fix it?
屏幕截图 2024-03-19 213815
Thanks,
Nai xiang Yu

@yafeng
Copy link
Owner

yafeng commented Mar 21, 2024

@yudada2020 Hi, please check the input expression matrix if there are proteins with missing values.
DEqMS requires at least two values for each group.

Yafeng

@yudada2020
Copy link
Author

Hello, Dr yafeng, I have used the code "df.LFQ.filter = df.LFQ[df.LFQ$na_count_H<2 & df.LFQ$na_count_L<2,1:34]" as per your suggestion to perform missing value removal for the protein expression matrix but the same error is reported. Interesting to be able to output seemingly normal results. Attached is my input protein expression matrix.

Thanks,
Naixiang

test_LFQ.intensity.txt

@longchung90
Copy link

Hi Yafeng, it is such a wonderful script, thanks for sharing with us.

I did encounter a problem when I run fit4 = spectraCounteBayes(fit3)

The error came out as
Error in model.frame.default(formula = logVAR ~ x) : variable lengths differ in DeqMS (found for 'x')

Do you have any ides?

Thank you very much in advance!
L

@yafeng
Copy link
Owner

yafeng commented May 6, 2024

@yudada2020 Hi, i checked your input data frame, you should use
df.LFQ.filter = df.LFQ[df.LFQ$na_count_H<2 & df.LFQ$na_count_L<2,c(1,4:37)] (don't keep column 2, 3 )
and don't forget to do log2 transformation.
protein.matrix = log2(as.matrix(df.LFQ.filter))

if you still encounter error, check the peptide count table, it should contains peptide count per protein.

Yafeng

@yafeng
Copy link
Owner

yafeng commented May 6, 2024

@longchung90
Hi, i suspect there are missing values in fit3$count, which stores the peptide count per protein.
Try min(fit3$count) to see if all proteins have valid peptide count. If it returns NA, then one of your proteins contains NA for peptide count.

Yafeng

1 similar comment
@yafeng
Copy link
Owner

yafeng commented May 6, 2024

@longchung90
Hi, i suspect there are missing values in fit3$count, which stores the peptide count per protein.
Try min(fit3$count) to see if all proteins have valid peptide count. If it returns NA, then one of your proteins contains NA for peptide count.

Yafeng

@longchung90
Copy link

Hi Yafeng,
I've run the script it got back to me this:

min(fit3$count)
[1] Inf
Warning message:
In min(fit3$count) : no non-missing arguments to min; returning Inf

Sorry I am not very experienced, I just started doing some bioinformatics. Thank you

@yafeng
Copy link
Owner

yafeng commented Aug 7, 2024 via email

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

3 participants