Giter Club home page Giter Club logo

Comments (4)

yusufkizilarslan avatar yusufkizilarslan commented on June 26, 2024

from truvari.

poddarharsh15 avatar poddarharsh15 commented on June 26, 2024

candidateSV.vcf.gz
Hello, thank you for answering as I have checked the .vcf file earlier it has no FORMAT & SAMPLE column present and I read some earlier issues from truvari git and added FORMAT(GT) & SAMPLE(.) in my vcf files manually but I suppose the files aren't compatible with truvari when I add these columns manually.
Screenshot from 2023-11-24 13-41-29

from truvari.

ACEnglish avatar ACEnglish commented on June 26, 2024

There must have been an error in how the format and sample was added. I ran the following script and was able to run on its output VCF.

  • fixer.py:
import sys

for line in sys.stdin:
    if line.startswith("##"):
        sys.stdout.write(line)
    elif line.startswith("#"):
        sys.stdout.write('##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">\n')
        sys.stdout.write(line.strip() + '\tFORMAT\tSAMPLE\n')
    else:
        sys.stdout.write(line.strip() + '\tGT\t.\n')
  • command line
gunzip -c candidateSV.vcf.gz| python fixer.py | bgzip > cand_fix.vcf.gz

from truvari.

poddarharsh15 avatar poddarharsh15 commented on June 26, 2024

Thank you so much finally it's working for me now.

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.