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

AssertionError: Expect col to appear in data only once. #42

Open
Tingwei1021 opened this issue Jan 10, 2024 · 1 comment
Open

AssertionError: Expect col to appear in data only once. #42

Tingwei1021 opened this issue Jan 10, 2024 · 1 comment

Comments

@Tingwei1021
Copy link

I am using the command popcorn compute --bfile PATH_TO_PLINK_FILESET OUTPUT_RESULT
But I keep getting this error:
Traceback (most recent call last): File "/mnt/data_schen_1/anaconda3/envs/Popcorn/bin/popcorn", line 8, in <module> sys.exit(main()) File "/mnt/data_schen_1/anaconda3/envs/Popcorn/lib/python3.7/site-packages/popcorn/__main__.py", line 227, in main scores = compute.covariance_scores_1_pop(args) File "/mnt/data_schen_1/anaconda3/envs/Popcorn/lib/python3.7/site-packages/popcorn/compute.py", line 62, in __init__ bed_1_index = np.sort(bed_1.sid_to_index(snps_to_use)) # File "/mnt/data_schen_1/anaconda3/envs/Popcorn/lib/python3.7/site-packages/pysnptools/snpreader/snpreader.py", line 520, in sid_to_index return self.col_to_index(list) File "/mnt/data_schen_1/anaconda3/envs/Popcorn/lib/python3.7/site-packages/pysnptools/pstreader/pstreader.py", line 574, in col_to_index ), "Expect col to appear in data only once." AssertionError: Expect col to appear in data only once.

I found out that the input was read incorrectly. This issue causes variants to be same(let's say 12:000012 reads as 12:00001, which duplicates with actual 12:00001)

@chirrie
Copy link

chirrie commented Sep 19, 2024

How did you solve the issue? I am also stuck there

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

2 participants