-
Notifications
You must be signed in to change notification settings - Fork 93
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
ValueError: Sample NR112 at Scaffold_1:1 genotype ./././. does not match explected ploidy of 2 #90
Comments
Hi, If you get errors, please post the error here so I can help diagnose it. Simon |
Hi Simon, Many thanks for your help, but I still encounter the error: parseVCF.py: error: argument --ploidy: invalid int value: 'ploidy_female.txt'. I presume that the content of my ploidy.txt file was not in the right format. The contents of my ploidy.txt file are as follows: Thanks again, |
If all of your individuals are tetraploid, you can use If some of your individuals are diploid and some are tetraploid, use: |
Thanks again. I used --ploidyFile ploidy_file.txt, and The contents of my ploidy.txt file are as follows: sample_ID ploidy Then I got error: Also, I tried the ploidy_file.txt file without the table header: Sample_1 2 Then I got error: |
Please check your ploidy file for empty lines. It sounds like the script is trying to read a line in the file that has no data in it. |
Thanks again. When I try to set my ploidy.txt file in the following format(When I turned 'ploidy' in the second column of the first row into a number), it worked sample_ID 2 and I don't know if it has an effect. Besides, I'm having a new problem. Error:Sample Sample_2 at Scaffold_1:1 genotype ./././. does not match explected ploidy of 2 (appears when I set Sample_2 to be a 2x.) I know it's supposed to be a problem with my sample (it's supposed to be tetraploid), but I'm putting it here and I would appreciate if you could give your opinion. How should I preprocess a sample like this. |
Yes, this is a problem with your vcf, which includes incorrect formatting for some sites. You can add the option |
Thank you very much for such fantastic scripts, please, I have tetraploids in my sample, is it not working?
I tried to use the script for Processing VCF files,
here is my command: python VCF_processing/parseVCF.py -i input.vcf.gz --skipIndels --minQual 30 --gtf flag=DP min=5 max=50 -o output.geno.gz
Yes, there are some samples in my vcf file that are tetraploids
The text was updated successfully, but these errors were encountered: