# HG changeset patch # User Jim Johnson # Date 1418850577 21600 # Node ID f404ec7f679cdd1b8b573d7edb927aa7071685ca # Parent 45e094f8858f798cc80f303d48e8ebbc7d049580 Add Conservation Plot tool diff -r 45e094f8858f -r f404ec7f679c conservation.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conservation.xml Wed Dec 17 15:09:37 2014 -0600 @@ -0,0 +1,140 @@ + + Calculates the PhastCons scores in several intervals sets + conservation_plot.py --version + + ceas_macros.xml + + + + + + +conservation_plot.py +#if $phastcons.phastcons_src == 'cached': + -d "${phastcons.gv.fields.path}" +#else: + -d "$phastcons.phasdb.extra_files_path" +#end if +-w $size +#if $inputs.labeling == 'auto': + #echo str($inputs.bfiles).replace(',',' ') +#else + #for $m in $inputs.more + $m.bfile -l "$m.blabel" + #end for +#end if +&> $log + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +This tool plots the PhastCons scores prfiles in several BED +files. It's based on conservation_plot.py script in Tao Liu's +library. Original code is written by Ying Lei, then modified by +Jaqueline Wentz. + +.. class:: infomark + +**Tip:** If you see red Xs, check the BED input file first. Perhaps, the BED file contains some abnormal chromosome names. + +.. class:: infomark + +**Tip:** For best performance, please make sure the regions in the BED file are centered at peak summits. + +----- + +**Parameters** + +- **Title** Conservation Plot Tool +- **Interval file** is a BED file normally centered at peak summit. +- **BED file label** is the label marked in the legend of the final figure. +- **more** You can add more BED files and labels. +- **Window size** is the regions around peak centers to extract PhastCons scores. +- **UCSC genome version** must be selected according to your BED files. + +----- + +**script parameter list for conservation_plot.py** + +conservation_plot.py + +Draw conservation plot for many bed files. + +Options: + --version show program's version number and exit + -H HEIGHT, --height=HEIGHT + height of plot + -W WIDTH, --width=WIDTH + width of plot + -w W window width centered at middle of bed + regions,default: 1000 + -t TITLE, --title=TITLE + title of the figure. Default: 'Average Phastcons + around the Center of Sites' + -d PHASDB, --phasdb=PHASDB + The directory to store phastcons scores in the server + -l BEDLABEL, --bed-label=BEDLABEL + the BED file labels in the figure. No space is + allowed. This option should be used same times as -w + option, and please input them in the same order as BED + files. default: will use the BED file filename as + labels. + -h, --help Show this help message and exit. + + + + + diff -r 45e094f8858f -r f404ec7f679c repository_dependencies.xml --- a/repository_dependencies.xml Mon Dec 15 15:31:58 2014 -0600 +++ b/repository_dependencies.xml Wed Dec 17 15:09:37 2014 -0600 @@ -1,4 +1,5 @@ + diff -r 45e094f8858f -r f404ec7f679c sitepro.xml --- a/sitepro.xml Mon Dec 15 15:31:58 2014 -0600 +++ b/sitepro.xml Wed Dec 17 15:09:37 2014 -0600 @@ -1,9 +1,13 @@ Draw the score profile near a given interval + sitepro --version ceas_macros.xml + + + sitepro #if $mode.mode_select == "single" @@ -20,7 +24,7 @@ -b "$m.bfile" -l "$m.label" #end for #end if ---span=$span --pf-res=$pfres --name=$name --dump &> $log +--span=$span --pf-res=$pfres --name=$name --dump &> $log && cat *_dump.txt > $dump diff -r 45e094f8858f -r f404ec7f679c test-data/hg19_phasdb.zip Binary file test-data/hg19_phasdb.zip has changed diff -r 45e094f8858f -r f404ec7f679c tool-data/cistrome_conservation.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/cistrome_conservation.loc.sample Wed Dec 17 15:09:37 2014 -0600 @@ -0,0 +1,17 @@ +## Conservation score files +# Instructions from: https://bitbucket.org/cistrome/cistrome-harvard/wiki/Tutorial_for_Cistrome_AP_installation +# Get the cistrome static data: +# http://cistrome.org/aspera/user/?B=%2FCISTROME_STATIC_LIBRARIES +# (send email to cistrome-bugs@jimmy.harvard.edu for a password to download.) +# +#unique_build_id dbkey name path +#ce4 ce4 ce4 /depot/cistrome_static_lib/conservation/ce4 +#ce6 ce6 ce6 /depot/cistrome_static_lib/conservation/ce6 +#dm3 dm3 dm3 /depot/cistrome_static_lib/conservation/dm3 +#hg18/placentalMammals hg18 hg18/placentalMammals /depot/cistrome_static_lib/conservation/hg18/placentalMammals +#hg18/vertebrate hg18 hg18/vertebrate /depot/cistrome_static_lib/conservation/hg18/vertebrate +#hg19/placentalMammals hg19/placentalMammals hg19/placentalMammals /depot/cistrome_static_lib/conservation/hg19/placentalMammals +#hg19/vertebrate hg19 hg19/vertebrate /depot/cistrome_static_lib/conservation/hg19/vertebrate +#mm8/vertebrate mm8 mm8/vertebrate /depot/cistrome_static_lib/conservation/mm8/vertebrate +#mm9/placental mm9 mm9/placental /depot/cistrome_static_lib/conservation/mm9/placental +#mm9/vertebrate mm9 mm9/vertebrate /depot/cistrome_static_lib/conservation/mm9/vertebrate diff -r 45e094f8858f -r f404ec7f679c tool_data_table_conf.xml.sample --- a/tool_data_table_conf.xml.sample Mon Dec 15 15:31:58 2014 -0600 +++ b/tool_data_table_conf.xml.sample Wed Dec 17 15:09:37 2014 -0600 @@ -4,5 +4,16 @@ value, dbkey, name, path + + + + value, dbkey, name, path + +
+