Coder Social home page Coder Social logo

Comments (7)

simonhmartin avatar simonhmartin commented on July 24, 2024

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.

fushike avatar fushike commented on July 24, 2024

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.

simonhmartin avatar simonhmartin commented on July 24, 2024

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.

rafmarcondes avatar rafmarcondes commented on July 24, 2024

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.

fushike avatar fushike commented on July 24, 2024

from genomics_general.

fushike avatar fushike commented on July 24, 2024

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.

rafmarcondes avatar rafmarcondes commented on July 24, 2024

Thanks, Fushi. Yea, it's working now with -f phased.

from genomics_general.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.