Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cmccabe
    Senior Member
    • Jul 2012
    • 355

    add missing annotations to vcf

    I am using bcftools version 1.3.1 and trying to add undefined annotations to a vcf before using bgzip and tabix.

    If I try to run the norm command on the vcf I get:
    Code:
    bcftools norm -m-both -o file.vcf file.vcf.gz
         
    [W::vcf_parse] INFO 'RSC1A1,RSC1A1' is not defined in the header, assuming Type=String
         Could not parse the header line: "##INFO=     <ID=RSC1A1,RSC1A1,Number=1,Type=String,Description="Dummy">"
    So I use:
    Code:
    # find undefined annotations#
    bcftools view -h file.vcf > header.txt
    # add undefined to vcf#
    bcftools reheader -h header.txt file.vcf > fixed.vcf
    I then use bgzip and tabix on the fixed.vcf and rerun the norm command:
    Code:
     bcftools norm -m-both -o fix.vcf fixed.vcf.gz
         [W::vcf_parse] INFO 'RSC1A1,RSC1A1' is not defined in the header, assuming Type=String
         Could not parse the header line: "##INFO= <ID=RSC1A1,RSC1A1,Number=1,Type=String,Description="Dummy">"
         [E::vcf_parse] Could not add dummy header for INFO 'RSC1A1,RSC1A1'
         [W::vcf_parse] INFO 'RSC1A1,RSC1A1' is not defined in the header, assuming Type=String
         Could not parse the header line: "##INFO=<ID=RSC1A1,RSC1A1,Number=1,Type=String,Description="Dummy">"
         [E::vcf_parse] Could not add dummy header for INFO 'RSC1A1,RSC1A1'
         Lines   total/split/realigned/skipped:	116/4/0/0
    It seems the dummy line with the undefined annotation was not added to the vcf, but I am not sure how to fix it. Thank you .
    Last edited by cmccabe; 03-01-2017, 04:55 AM.
  • finswimmer
    Member
    • Oct 2016
    • 60

    #2
    Hello,

    is a comma really allowed in the ID definition? Maybe with quotes around?

    fin swimmer

    Comment

    Latest Articles

    Collapse

    • mylaser
      Reply to Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
      by mylaser
      The world of online gaming has grown tremendously over the past few years, giving players access to exciting sports, casino games, and interactive entertainment from the comfort of their homes. Among the platforms gaining attention, Kheloyaar has become a trusted destination for users seeking a fast, secure, and engaging gaming experience.
      Whether you're a first-time visitor or an existing user, understanding the features of Kheloyar and the Kheloyaar login process can help you enjoy everything...
      Today, 12:33 AM
    • SEQadmin2
      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
      by SEQadmin2


      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

      The systematic characterization of the human proteome has
      ...
      Yesterday, 11:48 AM
    • SEQadmin2
      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by SEQadmin2



      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
      ...
      07-09-2026, 11:10 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 11:10 AM
    0 responses
    8 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-13-2026, 10:26 AM
    0 responses
    30 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-09-2026, 10:04 AM
    0 responses
    39 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-08-2026, 10:08 AM
    0 responses
    25 views
    0 reactions
    Last Post SEQadmin2  
    Working...