Unconfigured Ad

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

    #1

    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

            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              Yesterday, 10:25 AM
            • SEQadmin2
              How Immunogenomics Decodes Immunity’s Genetic Blueprint
              by SEQadmin2




              The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

              This convergence of genetics, immunology, and computation...
              09-01-2026, 05:41 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 09-25-2026, 09:06 AM
            0 responses
            29 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 09-23-2026, 11:05 AM
            0 responses
            24 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 09-18-2026, 11:37 AM
            1 response
            46 views
            0 reactions
            Last Post pekgio
            by pekgio
             
            Started by SEQadmin2, 09-16-2026, 10:23 AM
            1 response
            55 views
            0 reactions
            Last Post pekgio
            by pekgio
             
            Working...