Comments (7)
Sorry for the delay. I'm not sure what the problem is, but I suspect it might be something odd about teh way your genotypes are encoded. Are you sure all genotypes are single nucleotides (like "A/T") and not indels (like "A/TAA")?
from genomics_general.
Hi Simon,
I checked the genotypes of my samples and didn't find any individuals with indels.
Here is an example of the genotype data
NewChr10 255917 A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/T A/A A/A A/A A/A A/T A/A A/A A/A A/T N/N A/A A/A A/A A/A A/A A/A N/N A/A A/T A/A A/A A/A A/T A/A N/N A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A N/N A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/A A/T N/N A/T A/A
from genomics_general.
Hi Fushi,
This is a puzzle. The only thing I can recommend is to make reduced versions of your geno file with say 1000 lines, 2000 lines etc, to try to find out which line in particular is causing the script to fail.
from genomics_general.
Hi Fushi and Simon,
Did you end up finding a solution for this? I'm encountering the same error. I converted my vcf to geno using parseVCF.py --skipIndels.
Here's my command:
python /home/rmarco3/bin/simon-martin-scripts/popgenWindows.py -T 4 -g asp_con_din_par_quality_filtered_ONLY.geno --windType coordinate -w 50000 -s 25000 --popsFile pops_file_for_martin -p asp -p par -f pairs --verbose -o simon_stats_aspVpar
Thanks for any help!
from genomics_general.
from genomics_general.
Hi Fushi and Simon,
Did you end up finding a solution for this? I'm encountering the same error. I converted my vcf to geno using parseVCF.py --skipIndels.
Here's my command:
python /home/rmarco3/bin/simon-martin-scripts/popgenWindows.py -T 4 -g asp_con_din_par_quality_filtered_ONLY.geno --windType coordinate -w 50000 -s 25000 --popsFile pops_file_for_martin -p asp -p par -f pairs --verbose -o simon_stats_aspVpar
Thanks for any help!
Hi Rafael,
In the README.md file, you can find -f pairs refers to genotype without a line between alleles. And "-f phased", should be proper in the situation with or without phasing.
- Genotypes can be incoded in various ways, as indicated by the
-f
flag.
-f phased
means that genotypes include phase information (but they don't necessarily need to actually be phased):
scaffold1 1 A/A G/G G|A
-f pairs
is the same, but without the phase indicator:
scaffold1 1 AA GG AG
-f haplo
means that genotypes are haploid bases:
scaffold1 1 A G G
-f diplo
means that genotypes are single bases denoting the diploid genotype, using ambiguity codes for heterozygotes:
scaffold1 1 A G R
Best,
Fushi
from genomics_general.
Thanks, Fushi. Yea, it's working now with -f phased.
from genomics_general.
Related Issues (20)
- popgenWindows.py Dxy estimates are large with vcf with invariant sites HOT 7
- How to cite ? HOT 2
- ValueError: Sample B5 at Chr01:18606751 genotype . does not match explected ploidy of 2 HOT 4
- filterGenotypes does not accept 'randomAlleles' as an output format HOT 6
- In the results of popgenWindows.py, Dxy > Fst HOT 2
- problem with phyml_sliding_windows.py HOT 6
- Can ABBA script was used with only one sample per species/population HOT 1
- ABBABABAwindows.py "TypeError: slidingCoordWindows()" HOT 2
- IndexError: list index out of range - freq & sfs HOT 2
- error with popgenWindows.py: "All populations must be represented by at least one sample." HOT 2
- ABBABABAwindows.py output halts half-way through scaffold (possibly due to outgroup?) HOT 2
- Query Regarding Fst Calculation Method in popgenWindows.py HOT 1
- popgenWindows only runs on some scaffolds HOT 4
- Error with parseVCF.py HOT 1
- error transcripts codingSiteTypes HOT 6
- parseVCF.py bug? HOT 1
- --minSites set HOT 1
- phased HOT 3
- DOI? HOT 1
- error with popgenWindows.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genomics_general.