brielin / Popcorn

Software for estimating correlation of trait effect sizes across populations
33 stars 15 forks source link

Popcorn on python 3 #13

Closed 1Coleman closed 3 years ago

1Coleman commented 3 years ago

I am trying to install popcorn on mac and running into problems.

for i in xrange(int(np.ceil(bed.sid_count/s))): NameError: name 'xrange' is not defined

brielin commented 3 years ago

Hi 1Coleman,

popcorn doesn't work in Python 3 because one of the dependencies (pysnptools) hasn't been ported to Python 3. There are a few more minor 2->3 syntax changes. I can't promise I will have time to port this to Python 3 anytime soon, but you are welcome to fork or submit a PR and try yourself.

Cheers, Brielin