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

AttributeError when running gwas_summary_imputation.py #198

Open
kazemianelham opened this issue Oct 19, 2024 · 0 comments
Open

AttributeError when running gwas_summary_imputation.py #198

kazemianelham opened this issue Oct 19, 2024 · 0 comments

Comments

@kazemianelham
Copy link

Hello
I am encountering an AttributeError while running the gwas_summary_imputation.py script from the summary-gwas-imputation repository. The error occurs when processing multiple regions, specifically indicating that the 'pyarrow.lib.ChunkedArray' object has no attribute 'name'

INFO - Beginning process
INFO - Creating context by variant
INFO - Loading study
INFO - Loading variants' parquet file
INFO - Loading variants metadata
Level 9 - Loading row group 0
INFO - Loading regions
Level 9 - Selecting target regions with specific chromosome
Level 9 - Selecting target regions from sub-batches
Level 9 - generating GWAS whitelist
INFO - Loading gwas
INFO - Acquiring filter tree for 227041 targets
INFO - Processing gwas source
Level 9 - Loaded 59616 GWAS variants
Level 9 - Parsing GWAS
Level 9 - Processing region 1/14 [10583.0, 1961168.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,10583.0,1961168.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 2/14 [1961168.0, 3666172.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,1961168.0,3666172.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 3/14 [3666172.0, 4320751.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,3666172.0,4320751.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 4/14 [4320751.0, 5853833.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,4320751.0,5853833.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 5/14 [5853833.0, 7187275.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,5853833.0,7187275.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 6/14 [7187275.0, 9305140.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,7187275.0,9305140.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 7/14 [9305140.0, 10746927.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,9305140.0,10746927.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 8/14 [10746927.0, 11717784.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,10746927.0,11717784.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 9/14 [11717784.0, 12719464.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,11717784.0,12719464.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 10/14 [12719464.0, 14565015.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,12719464.0,14565015.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 11/14 [14565015.0, 16571235.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,14565015.0,16571235.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 12/14 [16571235.0, 18336405.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,16571235.0,18336405.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 13/14 [18336405.0, 20142656.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,18336405.0,20142656.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
Level 9 - Processing region 14/14 [20142656.0, 21410095.0]
Level 8 - Roll out imputation
Level 8 - Preparing data
INFO - Error for region (1,20142656.0,21410095.0): AttributeError("'pyarrow.lib.ChunkedArray' object has no attribute 'name'")
INFO - Finished in 130.27597111499927 seconds

I have tried using different versions of pandas and pyarrow but have not resolved the issue. Any help or guidance on how to fix this error would be greatly appreciated.

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