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

Unexpected error: DataFrame.drop() takes from 1 to 2 positional arguments but 3 were given #193

Open
halkelchen opened this issue Jun 13, 2024 · 2 comments

Comments

@halkelchen
Copy link

This is my command:

!python /Users/halk/MetaXcan/software/SPrediXcan.py \ --model_db_path /Users/halk/Downloads/eqtl/mashr/mashr_Whole_Blood.db \ --covariance /Users/halk/Downloads/eqtl/mashr/mashr_Whole_Blood.txt.gz \ --gwas_file /Users/halk/cleandatawithsnps.txt \ --gwas_file_pattern ".*txt" \ --snp_column SNPID \ --effect_allele_column EA \ --non_effect_allele_column NEA \ --zscore_column Z \ --pvalue_column P \ --output_file output/spredixcan_TWAS_whole_blood.csv

and this is the out with the error I am receiving:

INFO - Processing GWAS command line parameters INFO - Building beta for /Users/halk/cleandatawithsnps.txt and /Users/halk/Downloads/eqtl/mashr/mashr_Whole_Blood.db INFO - Reading input gwas with special handling: /Users/halk/cleandatawithsnps.txt INFO - Processing input gwas INFO - Aligning GWAS to models INFO - Trimming output INFO - Successfully parsed input gwas in 32.18299175502034 seconds INFO - Started metaxcan process INFO - Loading model from: /Users/halk/Downloads/eqtl/mashr/mashr_Whole_Blood.db INFO - Loading covariance data from: /Users/halk/Downloads/eqtl/mashr/mashr_Whole_Blood.txt.gz INFO - Processing loaded gwas INFO - Started metaxcan association INFO - 0 % of model's snps used INFO - Unexpected error: DataFrame.drop() takes from 1 to 2 positional arguments but 3 were given

Anyone know how to fix this?

@Fnyasimi
Copy link
Collaborator

Hi @halkelchen could you share the sample of GWAS you are using to reproduce the error for further troubleshooting?

On the other note can you check your enviroment has the required version of python has defined here?

@1667857557
Copy link

Same issue

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

3 participants