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

NotImplementedError: iLocation based boolean indexing on an integer type is not available #422

Open
XochitlDiaz opened this issue Mar 11, 2024 · 0 comments

Comments

@XochitlDiaz
Copy link

Hi,
Im trying to run something like

ldsc.py --bfile 1000G.EUR --l2 --ld-wind-cm 1 --yes-really --annot $annot_dir.$chrom.annot.gz --print-snps hm.$chrom.snp --out $annot_dir.$chrom

It's important to mention I'm using LDSC obtained though pip install ldsc for pyhton 3.11.4, so the version that is only available through pip install

How ever, I encountered the following error:

File "/software/python/Python-3.11.4/bin/ldsc.py", line 343, in ldscore
    df = df.iloc[df.SNP.isin(print_snps.SNP),:]

I believe the expression df.SNP.isin(print_snps.SNP) would give back a boolean series, so for python 3 the appropriate way to write it would be with df.loc instead of df.iloc, so

 df = df.loc[df.SNP.isin(print_snps.SNP),:]
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

1 participant