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

Error in rowSums #20

Closed
ofleitas opened this issue Dec 15, 2021 · 6 comments
Closed

Error in rowSums #20

ofleitas opened this issue Dec 15, 2021 · 6 comments

Comments

@ofleitas
Copy link

Hello

I am trying to analyse RNA-seq data with testDA function but i get this return :

606 empty features removed
Running on 3 cores
predictor is assumed to be a categorical variable with 6 levels: ct1, ct2, ct3, rst1, rst2, rst3
Spikeing...
Error in rowSums(count_table[, predictor == 1]) :
'x' must be an array of at least two dimensions

@Russel88
Copy link
Owner

Hi ofleitas,

I need some more information to figure out what's going on.
How many samples and features are in your input?
Are you using phyloseq as input or a data.frame?

@ofleitas
Copy link
Author

ofleitas commented Dec 16, 2021 via email

@Russel88
Copy link
Owner

I looks like your predictor variable is wrong. The output says ct1, ct2, ct3, rst1, rst2, rst3. Your predictor should have the same value for all controls and same value for all treatments. Else it looks like there are six conditions with only 1 sample in each

@ofleitas
Copy link
Author

ofleitas commented Dec 23, 2021 via email

@Russel88
Copy link
Owner

I don't have an example, unfortunately. But in your case it could be predictor = c("ct", "ct", "ct", "rst", "rst", "rst"), if that matches the order of the columns in the input data.frame.

@ofleitas
Copy link
Author

ofleitas commented Dec 26, 2021 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

2 participants