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

Plink - Error invalid chromosome code #35

Closed
wbirru opened this issue Aug 4, 2022 · 3 comments
Closed

Plink - Error invalid chromosome code #35

wbirru opened this issue Aug 4, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation user-query User queries & requests

Comments

@wbirru
Copy link

wbirru commented Aug 4, 2022

Hi, I am using this pipeline and encountered the following error:

Error: Invalid chromosome code 'chr1_gl000191_random' on line 9605356 of --vcf
file.
(Use --allow-extra-chr to force it to be accepted.)

I have used --allow-extra-chr but the problem persists. I am using an old plink (in the docker container I also upgrade plink 2.0 to 3.3 (module/local/plink2_vcf.nf), however, the problem is still there.
I have also tried to use --allow-extra-chr in plink2_vcf.nf script again can not avoid the error (where should we apply this flag in the script)
I would like to get quick help as the problem seems easy ---- tried to consult plink page but still could not get a solution.

Thanks

@smlmbrt
Copy link
Member

smlmbrt commented Aug 4, 2022

Hi @wbirru, currently the pipeline is setup to only run on chr1-22 and sex chromosomes (X,Y, XY) as most of the PGS we see do not contain variants on patches. The easiest way to get the pipeline running would be to remove those variants from your dataset and output a set of pfiles on just those chromosomes, something like:
plink2 --vcf [yourfile] --allow-extra-chr --chr 1-22, X, Y, XY -make-pgen --out [yourfile]_axy

@nebfield nebfield added the documentation Improvements or additions to documentation label Aug 4, 2022
@wbirru
Copy link
Author

wbirru commented Aug 4, 2022

Thanks, @smlmbrt for your quick reply. Yes, I understand that your pipeline does calculate only for those chromosomes you mentioned. I will apply your advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation user-query User queries & requests
Projects
None yet
Development

No branches or pull requests

3 participants