snpsea icon indicating copy to clipboard operation
snpsea copied to clipboard

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

Open AdaShaw1996 opened this issue 8 years ago • 3 comments

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

AdaShaw1996 avatar Aug 08 '17 02:08 AdaShaw1996

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?

slowkow avatar Aug 08 '17 10:08 slowkow

Thanks for your reply!

AdaShaw1996 avatar Aug 09 '17 02:08 AdaShaw1996

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.

AdaShaw1996 avatar Aug 09 '17 02:08 AdaShaw1996