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: reduce the number of sample categories to less than 15 #56

Open
mattbawn opened this issue Jan 5, 2017 · 1 comment
Open

ERROR: reduce the number of sample categories to less than 15 #56

mattbawn opened this issue Jan 5, 2017 · 1 comment

Comments

@mattbawn
Copy link

mattbawn commented Jan 5, 2017

Hi,

I have installed v1.1.2 on my local cluster and it works with the sample data. When I run it using my own data however I get the above message even though I have only 14 Samples and Categories.

I have noticed the following in the traitar code though at line 140:

if len(uq) > 12:
sys.exit("reduce the number of sample categories to less than 15")

Is this a typo?

I am currently attempting to run with 9 samples and categories which seems to have got further.

Thanks,

Matt

@aweimann
Copy link
Owner

aweimann commented Jan 5, 2017

Hi Matt,

Thanks for your interest in Traitar. You're absolutely right. I must have made a mistake there. The limit in the error message doesn't seem to correspond with the conditional in the code. You can safely overwrite e.g. to

if len(uq) > 15:
sys.exit("reduce the number of sample categories to less than 15")

I implemented this check to make sure the heatmap still renders properly, but it doesn't actually affect the Traitar functionality. I will fix this in the next release.

Thanks again,

Aaron

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