Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashkot
    Member
    • Nov 2011
    • 59

    #1

    Variant Effect Predictor Line Count

    Hi all,
    I am generating a VCF file and then running the Variant Effect Predictor (VEF) tool on it. This is in return giving me a new text file with the a list of variants and its potential effects. In one of the columns is the effect such as intronic change, exonic etc.

    I wanted to get a line count for the total number of lines which have say for e.e exonic in a certain coulmn of the text file. Ideally, i would like to have a list of all variations and the number of lines for e.g.

    Exonic = 200
    Intronic = 600
    ...
    ...

    If that's too complicated then i could simply have a single entity and run it multiple times.

    Thanks in advance.
    A
  • Bukowski
    Senior Member
    • Jan 2010
    • 388

    #2
    grep -v \# VEP_Annotation_File.ann | awk '{print $14}' | awk '{count[$1]++} END {for(j in count) print count[j], j}' | sort -nr

    Works for me - but we have a modified VEP so I'm not sure the column name ($14) is the same in your case.

    Output:

    410 INTRONIC
    277 DOWNSTREAM
    138 UPSTREAM
    119 3PRIME_UTR
    99 WITHIN_NON_CODING_GENE,INTRONIC
    51 INTERGENIC
    46 NMD_TRANSCRIPT,INTRONIC
    42 REGULATORY_REGION
    28 WITHIN_NON_CODING_GENE
    24 NON_SYNONYMOUS_CODING
    15 5PRIME_UTR
    9 SPLICE_SITE,INTRONIC
    4 SYNONYMOUS_CODING
    3 NMD_TRANSCRIPT,3PRIME_UTR
    3 ESSENTIAL_SPLICE_SITE
    2 NMD_TRANSCRIPT,SYNONYMOUS_CODING
    2 CODING_UNKNOWN
    1 STOP_GAINED
    1 SPLICE_SITE,WITHIN_NON_CODING_GENE,INTRONIC
    Last edited by Bukowski; 08-07-2012, 01:04 AM.

    Comment

    • ashkot
      Member
      • Nov 2011
      • 59

      #3
      worked

      hi there,
      thank you, thats awesome, it worked.

      In one of the columns the chromosomal location is mentioned as 1:1000 (for e.g.), can this script be slightly tweaked such that i can get a list based for each chromosome, independant upon the consequence type.

      For e.g.

      chromosome 1 number of consequences
      chromosome 2 number of consequences

      thanks again.
      a
      Last edited by ashkot; 08-07-2012, 03:48 PM.

      Comment

      • Bukowski
        Senior Member
        • Jan 2010
        • 388

        #4
        You could just split your input file up into chromosomes and run it over each one couldn't you? It's all trivially achieved with a bit of shell scripting.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
          by SEQadmin2



          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

          Despite this, “CRISPR helped turn genome editing from a specialized technique into
          ...
          07-31-2026, 11:01 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
          ...
          07-20-2026, 11:48 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Today, 10:35 AM
        0 responses
        4 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-06-2026, 07:41 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-03-2026, 10:13 AM
        0 responses
        41 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-31-2026, 02:55 AM
        0 responses
        47 views
        0 reactions
        Last Post SEQadmin2  
        Working...