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

construct function error #5

Open
agreco92 opened this issue May 4, 2018 · 2 comments
Open

construct function error #5

agreco92 opened this issue May 4, 2018 · 2 comments

Comments

@agreco92
Copy link

agreco92 commented May 4, 2018

the function construct uses an object called rexpr at line 23 that doesn't match any other name (maybe refers to rexprs?)

Therefore when creating a SINCERA object from an expression matrix gives an error:

Error in construct(exprmatrix = exp) : object 'rexpr' not found

@agreco92 agreco92 closed this as completed May 4, 2018
@DrLucyMac
Copy link

Hi @agreco92 how did you fix this error? I am getting it when trying to construct S4 object using matrix from SCE.

sc <- construct(exprmatrix=as.matrix(counts(pbmc)))

@agreco92
Copy link
Author

Hi @lmacdonald12
I don't remember the specifics exactly, but I somehow managed to create the object by explicitly stating the sample vector in the construct function, something like this:

sc = construct(exprmatrix = exp, samplevector = rep('sample1',dim(exp)[2]))

(since I only had one sample to analyse). Hope that works!

Cheers

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