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.
Unconfigured Ad
Collapse
X
-
Thank you so much!!
Originally posted by paolo.kunder View PostHi,
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)
processed formatCode:chrom=chr1 start=3000306 0.006 0.010 0.014 chrom=chrX start=40000306 0.014 chrom=chr9 start=80000306 0.1 0.2
with the following script: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
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
but You will need to study first how the software works,HTML Code:http://circos.ca/
Cheers,
Paolo
Leave a comment:
-
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)
processed formatCode:chrom=chr1 start=3000306 0.006 0.010 0.014 chrom=chrX start=40000306 0.014 chrom=chr9 start=80000306 0.1 0.2
with the following script: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
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
but You will need to study first how the software works,HTML Code:http://circos.ca/
Cheers,
Paolo
Leave a comment:
-
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?
ThanksTags: None
Latest Articles
Collapse
-
by SEQadmin2
Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?
Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating...-
Channel: Articles
10-14-2026, 09:55 AM -
-
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...-
Channel: Articles
-
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 10-22-2026, 11:13 AM
|
0 responses
23 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 11:13 AM
|
||
|
Started by SEQadmin2, 10-22-2026, 10:48 AM
|
0 responses
20 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 10:48 AM
|
||
|
Started by SEQadmin2, 10-15-2026, 10:52 AM
|
0 responses
36 views
0 reactions
|
Last Post
by SEQadmin2
10-15-2026, 10:52 AM
|
||
|
Started by SEQadmin2, 10-14-2026, 05:39 AM
|
0 responses
42 views
0 reactions
|
Last Post
by SEQadmin2
10-14-2026, 05:39 AM
|
Leave a comment: