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

Issue with fit4 #18

Open
longchung90 opened this issue Aug 7, 2024 · 5 comments
Open

Issue with fit4 #18

longchung90 opened this issue Aug 7, 2024 · 5 comments

Comments

@longchung90
Copy link

Hi there,

I've encountered an issue after I applied fit4 = spectraCounteBayes(fit3)

It reports this error: Error in model.frame.default(formula = logVAR ~ x) :
variable lengths differ (found for 'x')

I just happened to me recently

Thank you

@yafeng
Copy link
Owner

yafeng commented Aug 7, 2024 via email

@longchung90
Copy link
Author

Hi Yafeng,

I've check fit3, they appear to be all numerical, some with negative sign.

I still got the issue over different data sets.

Feeling a bit stuck!

@yafeng
Copy link
Owner

yafeng commented Aug 14, 2024

Hi @longchung90
fit3$count is the peptide/PSM count used for quantification of this protein. It should be positive numbers (integers), negative number definitely make no sense here .
Type min(fit3$count) to check if it contains missing, negative or zeros value, these are not allowed.
You need to check if the correct data was assigned to the fit3$count variable.

Yafeng

@longchung90
Copy link
Author

Hi Yafeng,

I did notice that my psm.count.table did contain NA values. Should I remove them from there before performing a fit4?

Thank you

@yafeng
Copy link
Owner

yafeng commented Sep 5, 2024

@longchung90
fit3$count variable stores the peptide/psm count values for all proteins, NA values are definitely not allowed.

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

2 participants