Code Monkey home page Code Monkey logo

galaxy.consensus's People

Contributors

v-a-s-a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

galaxy.consensus's Issues

writing a valid vcf

Right now, I'll be adding a minimally valid header and recoding the output vcf file instead of recomputing.

Output VCF file format

Correct me if I'm wrong, but I believe that there is a small inconsistency with the output VCF file and the VCFv4.1 specification (http://samtools.github.io/hts-specs/VCFv4.1.pdf) section 1.4.2 on Genotype fields.

At the moment a variant is notated as follows:

#CHROM  POS         ID              REF ALT QUAL    FILTER  INFO    FORMAT  1483JS0009
22      17072483    22:17072483:A:G A   G   .       PASS    X1:X2   CN:GT   C:0/1   

I believe the genotype data and its FORMAT should have the GT field at position 0, like:

#CHROM  POS         ID              REF ALT QUAL    FILTER  INFO    FORMAT  1483JS0009
22      17072483    22:17072483:A:G A   G   .       PASS    X1:X2   GT:CN   0/1:C   

I've been having some trouble with a few tools due to this. A small program on my side fixes the problem, but I figured you would like to know about this.

single database file

We have an issue of overwriting the database if we run the consensus caller in parallel on a single machine. Essentially, the sqlite3 database file will be overwritten each time.

allelic primitives

When you run comparisons, how do you deal with cases where nearby alleles have been merged (clumped)?

arbitrary input files

As of now, the tables in the db schema are named based on the file names. Change this so that galaxy can rename the input files as a part of its workflows.

'Reader' object has no attribute 'genotype'

I'm trying the example, but it gives these error:

Traceback (most recent call last):
File "./consensus_tool/consensus_genotyper.py", line 37, in
main()
File "./consensus_tool/consensus_genotyper.py", line 32, in main
for records, genotypes in ensemble.concordant_variants(siteThresh=args.siteThresh, genoThresh=args.genoThresh):
File "/opt/galaxy.consensus/consensus_tool/vcf_ensemble.py", line 101, in concordant_variants
yield records, ensemble.set_concordance()
File "/opt/galaxy.consensus/consensus_tool/variant_ensemble.py", line 39, in set_concordance
calls = [ record.genotype(sample).gt_type for record in self.recordSet ]
AttributeError: 'Reader' object has no attribute 'genotype'

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.