Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Phantom123
    Member
    • Mar 2012
    • 13

    Annotating variants using Annovar question

    I have vcf files which i generated using samtools. i wish to annotate variant information in these files using annovar. will the following work?

    perl convert2annovar.pl in.vcf -format vcf4

    perl annotate_variation.pl -buildver hg19 in.vcf humandb

    in particular, will the above take care of the fact that inside the humandb folder (of annovar) i am finding hg18 related files?

    Thanks for your help.
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #2
    If you want to keep all alternative alleles, first do this:

    ./convert2annovar.pl -format vcf4 --allallele variant_file > variant.annovarInput

    Then I recommend doing everything in hg19 with the latest version, which has very fast performance with the "summarize_annovar.pl" script.

    ./summarize_annovar.pl --buildver hg19 --remove --verdbsnp 135 --ver1000g 1000g2012feb --outfile variant.output humandb/

    This will annotate more fully than just the annotate_variation.pl script and is fast enough that it's worth using.

    Comment

    • HESmith
      Senior Member
      • Oct 2009
      • 512

      #3
      Assuming that the vcf data are based on hg18, the positional information of the variants will not match hg19 annotations unless the reference genomes of hg18 and hg19 are identical. You'll need to convert your variant coordinates using liftover tables.

      Comment

      • Phantom123
        Member
        • Mar 2012
        • 13

        #4
        Dear All,
        the first command that i gave in my original post as well as the first command given by heisman work fine on my system.

        [These are:

        perl convert2annovar.pl in.vcf -format vcf4

        and

        ./convert2annovar.pl -format vcf4 --allallele variant_file > variant.annovarInput

        ]

        But the second command given by me and also by Heisman are not working on my system.

        For instance, i started off with a file called RVK127N.vcf

        i then created a new file using this command:

        perl convert2annovar.pl in.vcf -format vcf4 >RVK127N_out.vcf

        i used the new file in the second command:

        perl annotate_variation.pl -buildver hg19 RVK127N_out.vcf humandb

        i then get the following message:
        NOTICE: The --geneanno operation is set to ON by default
        Error: The gene annotation database humandb/hg19_refGene.txt does not exist. Please use 'annotate_variation.pl --downdb refGene humandb -build hg19' to download the database.

        i then type the following in the command line:

        annotate_variation.pl --downdb refGene humandb -build hg19

        but on pressing enter i get this message:

        -bash: annotate_variation.pl: command not found

        ---
        One other question: i have the entire ucsc hg19 reference genome in a file called genome.fa (downloaded independently from UCSC). do i use this genome.fa file in any of the annovar commands?

        ----
        Thanks for your help.

        Comment

        • Heisman
          Senior Member
          • Dec 2010
          • 534

          #5
          You do not need to use the genome.fa file anywhere.

          As for:
          Code:
          annotate_variation.pl --downdb refGene humandb -build hg19
          You need to use "perl annotate_variation.pl" or "./annotate_variation.pl"

          Also, you want to use a command line more like this:
          Code:
          ./annotate_variation.pl -downdb -webfrom annovar -buildver hg19 refGene humandb/

          Comment

          • Phantom123
            Member
            • Mar 2012
            • 13

            #6
            Much obliged to Heisman.

            Comment

            Latest Articles

            Collapse

            • mylaser
              Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by mylaser
              Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
              If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
              This guide explains everything you need to know about...
              Today, 01:13 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
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            17 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-08-2026, 10:08 AM
            0 responses
            10 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-07-2026, 11:05 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-02-2026, 11:08 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Working...