Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • crazyhottommy
    Senior Member
    • Apr 2012
    • 187

    How to make an average conservation plot from ChIP-seq data

    Hi all,

    I want to know how to make an average conservation plot
    http://ceas.cbi.pku.edu.cn/ this website can make something I want, but it can only plot
    a set of regions at one time, I want to plot two sets of regions, and compare them.

    " 2. GC content and evolutionary conservation of each ChIP-region and their
    average. CEAS uses PhastCons conservation scores from UCSC Genome
    Bioinformatics, which is based on multiz alignment of human, chimp, mouse,
    rat, dog, chicken, fugu, and zebrafish genomic DNA. CEAS generates thumbnail
    conservation plot for each ChIP-region and the average conservation plot for
    all the ChIP-regions, which can be directly used in ChIP-chip biologists'
    manuscript.
    "


    Any python scripts or bioconductor package can do it?

    Thanks
  • paolo.kunder
    Member
    • Aug 2011
    • 93

    #2
    Hi,

    I encountered the same problem few weeks ago,

    It seems that there are not many "expert" regarding PhastCons in this forum.

    I explain you what I did,

    I took my Chip-seq regions, in bed file format, intersect them with PhastCons element in (mouse example)

    Code:
    http://hgdownload-test.cse.ucsc.edu/goldenPath/mm9/phastCons30way/

    and calculated for each genomic position the score of conservation.
    Then averaged all the score.

    Consider that you will need to transform a bit the PhastCons file format,

    for example:

    original format ( just replaced some words with empty)
    Code:
    chrom=chr1 start=3000306
    0.006
    0.010
    0.014
    chrom=chrX start=40000306
    0.014
    chrom=chr9 start=80000306 
    0.1
    0.2
    processed format
    Code:
    chr1 3000306 3000307 0.006
    chr1 3000307 3000308 0.010
    chr1 3000308 3000309 0.019
    chrX 40000306 40000307 0.014
    chr9 80000306 80000307 0.1
    chr9 80000307 80000308 0.2
    with the following script:
    Code:
    awk '/^chrom/{split($1,a,"=");split($2,b,"=");next} { printf "%s\t%10d\t%10d\t%f\n",a[2],b[2],b[2]+1,$1;b[2]++}' filename


    Another possibility that I am investigating is using circos
    HTML Code:
    http://circos.ca/
    but You will need to study first how the software works,

    Cheers,
    Paolo

    Comment

    • crazyhottommy
      Senior Member
      • Apr 2012
      • 187

      #3
      Thank you so much!!



      Originally posted by paolo.kunder View Post
      Hi,

      I encountered the same problem few weeks ago,

      It seems that there are not many "expert" regarding PhastCons in this forum.

      I explain you what I did,

      I took my Chip-seq regions, in bed file format, intersect them with PhastCons element in (mouse example)

      Code:
      http://hgdownload-test.cse.ucsc.edu/goldenPath/mm9/phastCons30way/

      and calculated for each genomic position the score of conservation.
      Then averaged all the score.

      Consider that you will need to transform a bit the PhastCons file format,

      for example:

      original format ( just replaced some words with empty)
      Code:
      chrom=chr1 start=3000306
      0.006
      0.010
      0.014
      chrom=chrX start=40000306
      0.014
      chrom=chr9 start=80000306 
      0.1
      0.2
      processed format
      Code:
      chr1 3000306 3000307 0.006
      chr1 3000307 3000308 0.010
      chr1 3000308 3000309 0.019
      chrX 40000306 40000307 0.014
      chr9 80000306 80000307 0.1
      chr9 80000307 80000308 0.2
      with the following script:
      Code:
      awk '/^chrom/{split($1,a,"=");split($2,b,"=");next} { printf "%s\t%10d\t%10d\t%f\n",a[2],b[2],b[2]+1,$1;b[2]++}' filename


      Another possibility that I am investigating is using circos
      HTML Code:
      http://circos.ca/
      but You will need to study first how the software works,

      Cheers,
      Paolo

      Comment

      • szaman
        Junior Member
        • Jul 2015
        • 1

        #4
        Making the step size 200 bp

        Hello Paolo,

        Your code is extraordinarily useful, however, I am trying to make the step size 200 bp and while doing so, I want to average the phastCon score over each 200 bp region. I am not even sure how to get started (really not even sure which language to use, I only know rudimentary unix, perl, & R). As much as I love one-liner codes, I do not think that it possible in this situation. I am working with hg38.phastCons20way.wigFix (phastcon scores calculates for human genome wide based on 19 species alignments) and it is a huge file. Any guidance would be much appreciated.

        Comment

        Latest Articles

        Collapse

        • 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
        • 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-24-2026, 12:17 PM
        0 responses
        30 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-23-2026, 11:41 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-20-2026, 11:10 AM
        0 responses
        213 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-13-2026, 10:26 AM
        0 responses
        79 views
        0 reactions
        Last Post SEQadmin2  
        Working...