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

TypeError: ("make_label() missing 3 required positional arguments: 'pvalue', #2

Open
AdaShaw1996 opened this issue Aug 8, 2017 · 3 comments

Comments

@AdaShaw1996
Copy link

When I use the function 'snpsea-heatmap', it always shows 'TypeError: ("make_label() missing 3 required positional arguments: 'pvalue', 'nu 'occurred at index 53'', Even when I am using the data from the example.

I changed the code 'def make_label(condition, pvalue, nulls, reps):'in line74 into

def make_label(x):
 76         condition = x[0]
 77         pvalue = x[1]
 78         nulls = x[2]
 79         reps = x[3]

and solved this problem

@slowkow
Copy link
Owner

slowkow commented Aug 8, 2017

Great, thanks for reporting and solving your own problem!

I have a hunch that you're using a different version of the code than the one available in this Github repo.

You can see the make_label function in the Github version of the code here:

https://github.com/slowkow/snpsea/blob/master/bin/snpsea-heatmap#L79-L84

Is it different than your code?

@AdaShaw1996
Copy link
Author

Thanks for your reply!

@AdaShaw1996
Copy link
Author

By the way, I also want to ask whether the datasets used in this software, such as Lango2010.txt.gz , NCBIgenes2013.bed.gz and TGP2011.bed.gz is mapped to GRCh37/hg19? Cause I noticed that your SNP sets are all mapped to hg19.

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