GithubHelp home page GithubHelp logo

Comments (2)

lassemaretty avatar lassemaretty commented on July 21, 2024

Hi,

Thank you for posting!

Regarding your specific issue:

bayesTyperTools combine requires the header to contain contig (e.g.##contig=<ID=8,length=146364022>) entries for all reference sequences containing variants in the vcf; the contigs further need to appear in the same order in the header and for the variant entries. We have added information about this to the readme.

Generally about running on bacterial genomes:

We have not tested BayesTyper on bacteria. There are no theoretical reasons why it shouldn't work, but please note that:

  • BayesTyper can only call variants where the coverage is an integer multiple (1 or 2) of the haploid coverage. Hence, your sample should probably only contain a single strain.
  • BayesTyper currently only uses autosomes (reference sequences not called chrX, X, chrY or Y) to estimates parameters. Hence, while the theoretically optimal way of running it would be to label your reference sequence Y to inform BayesTyper that the organism is haploid, it wouldn't work. For now, you therefore have to run it as diploid (by using a non sex chromosome label) and ignore heterozygote genotypes - hopefully you wont get that many. If you do, it could be a sign that BayesTyper is not working as intended on your data. We will try to push out a release as soon as possible that will estimates parameters also on non-diploid chromosomes and that will support inputting a set of reference sequence ploidies to replace the currently hard-coded sex chromosome plodies.

Please do not hesitate to post again if you further questions or suggestions for how we can improve the BayesTyper support for bacterial data.

br,

Lasse

from bayestyper.

martinghunt avatar martinghunt commented on July 21, 2024

Thank you! I got it working (one of the VCFs didn't have the contig header line)

from bayestyper.

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.