Giter Club home page Giter Club logo

Comments (3)

ACEnglish avatar ACEnglish commented on June 24, 2024

The GM128*.vcf has a header definition of ID=SVTYPE,Number=A. This is causing Truvari to see its svtype as a tuple e.g. ("INS",) instead of string "INS". By changing the header line to:

##INFO=<ID=SVTYPE,Number=1,Type=String,Description="Variant type">

I was able to see:

{
    "TP-base": 18,
    "TP-call": 18,
    "FP": 1,
    "FN": 25,
    "precision": 0.9473684210526315,
    "recall": 0.4186046511627907,
    "f1": 0.5806451612903226,
    "base cnt": 43,
    "call cnt": 19,
    "TP-call_TP-gt": 0,
    "TP-call_FP-gt": 18,
    "TP-base_TP-gt": 0,
    "TP-base_FP-gt": 18,
    "gt_concordance": 0.0,
    "gt_matrix": {
        "(1, 1)": {
            "(None, None)": 6
        },
        "(1, 0)": {
            "(None, None)": 3
        },
        "(0, 1)": {
            "(None, None)": 9
        }
    }
}

Truvari uses pysam to parse VCF files and while there are safe guards for Number=. (See line) I'll need to edit that line for Number=A and others which tell pysam to return tuples instead of lists via:

if isinstance(ret_type, (list, tuple)):

from truvari.

ACEnglish avatar ACEnglish commented on June 24, 2024

Sorry, one more thing... The --giabreport can only be used on the GIAB vcfs. See wiki

from truvari.

zhengdafangyuan avatar zhengdafangyuan commented on June 24, 2024

Thanks, I followed the step you mentioned and it worked.

from truvari.

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.