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

Drop unused factor levels when prepping the sleuth object. #71

Closed
wants to merge 2 commits into from

Conversation

roryk
Copy link
Contributor

@roryk roryk commented Jun 10, 2016

Hi everyone,

This fixes #69, which was caused by unrepresented factor levels hanging around in the sample_to_covariates matrix.

Fixes pachterlab#69.

Thanks to @marypiper for opening the issue with a nice test
dataset demonstrating the issue.
@biounix
Copy link

biounix commented Aug 18, 2016

Hi,

Wondering why not just sample_to_covariates = droplevels(sample_to_covariates); instead of the for loop? Final objects seem to be identical().

@roryk
Copy link
Contributor Author

roryk commented Aug 18, 2016

@gresteban -- ah, I didn't know droplevels() worked like that. Thanks-- I swapped over to using that one liner instead.

@Drwhit
Copy link

Drwhit commented Mar 9, 2017

Thank you for doing this... I just spent nearly a full day trying to figure out why sleuth_fit was failing... it was due to empty factor levels.

warrenmcg added a commit to warrenmcg/sleuth that referenced this pull request Mar 13, 2017
@pimentel
Copy link
Collaborator

this looks useful -- thanks!

really sorry about the massive delay on this. will merge in by the end of this week.

thanks,

harold

@roryk
Copy link
Contributor Author

roryk commented Mar 15, 2017

No worries, thanks Harold!

@roryk
Copy link
Contributor Author

roryk commented Mar 15, 2017

Merging Warren's p/r will get this in and I think all the merge conflicts are good so I'll close this in favor of his request.

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

Successfully merging this pull request may close these issues.

error running sleuth_fit
4 participants