# HG changeset patch # User kevyin # Date 1355721751 18000 # Node ID 22b7d878f3d00bd3de06dda87d434a58b9ef500a # Parent a28abb0c325ecc5eedb59d76a05dbbd0e284aeed Deleted selected files diff -r a28abb0c325e -r 22b7d878f3d0 README --- a/README Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -Homer wrapper for Galaxy - -Code repo: https://bitbucket.org/gvl/homer - -=========================================: -LICENSE for this wrapper: -=========================================: -Kevin Ying -Garvan Institute: http://www.garvan.org.au -GVL: https://genome.edu.au/wiki/GVL - -http://opensource.org/licenses/mit-license.php - diff -r a28abb0c325e -r 22b7d878f3d0 annotatePeaks.xml --- a/annotatePeaks.xml Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ - - - homer - - - - - annotatePeaks.pl $input_bed $genome_selector 1> $out_annotated - 2> $out_log || echo "Error running annotatePeaks." >&2 - - - - - - - - - - - - - - - - - - - - - - - .. class:: infomark - - **Homer annoatePeaks** - More information on accepted formats - http://biowhat.ucsd.edu/homer/ngs/annotation.html - - - - - diff -r a28abb0c325e -r 22b7d878f3d0 bed2pos.xml --- a/bed2pos.xml Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ - - - homer - - - - - bed2pos.pl $input_bed 1> $out_pos - 2> $out_log || echo "Error running bed2pos." >&2 - - - - - - - - - - - - - - - - - - - .. class:: infomark - - **Homer bed2pos.pl** - http://biowhat.ucsd.edu/homer/ngs/miscellaneous.html - - - diff -r a28abb0c325e -r 22b7d878f3d0 findPeaks.xml --- a/findPeaks.xml Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ - - - homer - - Homer's peakcaller. Requires tag directories (see makeTagDirectory) - - - findPeaks $tagDir.extra_files_path $options -o $outputPeakFile - - #if $control_tagDir: - -i $control_tagDir.extra_files_path - #end if - - 2> $out_log || echo "Error running findPeaks." >&2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .. class:: infomark - - **Homer findPeaks** - http://biowhat.ucsd.edu/homer/ngs/peaks.html - - - - diff -r a28abb0c325e -r 22b7d878f3d0 makeTagDirectory.py --- a/makeTagDirectory.py Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -""" - - -""" -import re -import os -import sys -import subprocess -import optparse -import shutil -import tempfile - -def getFileString(fpath, outpath): - """ - format a nice file size string - """ - size = '' - fp = os.path.join(outpath, fpath) - s = '? ?' - if os.path.isfile(fp): - n = float(os.path.getsize(fp)) - if n > 2**20: - size = ' (%1.1f MB)' % (n/2**20) - elif n > 2**10: - size = ' (%1.1f KB)' % (n/2**10) - elif n > 0: - size = ' (%d B)' % (int(n)) - s = '%s %s' % (fpath, size) - return s - -class makeTagDirectory(): - """wrapper - """ - - def __init__(self,opts=None, args=None): - self.opts = opts - self.args = args - - def run_makeTagDirectory(self): - """ - makeTagDirectory [options] [alignment file 2] - - """ - if self.opts.format != "bam": - cl = [self.opts.executable] + args + ["-format" , self.opts.format] - else: - cl = [self.opts.executable] + args - print cl - p = subprocess.Popen(cl) - retval = p.wait() - - - html = self.gen_html(args[0]) - #html = self.gen_html() - return html,retval - - def gen_html(self, dr=os.getcwd()): - flist = os.listdir(dr) - print flist - """ add a list of all files in the tagdirectory - """ - res = ['

Files created by makeTagDirectory

\n'] - - flist.sort() - for i,f in enumerate(flist): - if not(os.path.isdir(f)): - fn = os.path.split(f)[-1] - res.append('\n' % (fn,getFileString(fn, dr))) - - res.append('
%s
\n') - - return res - -if __name__ == '__main__': - op = optparse.OptionParser() - op.add_option('-e', '--executable', default='makeTagDirectory') - op.add_option('-o', '--htmloutput', default=None) - op.add_option('-f', '--format', default="sam") - opts, args = op.parse_args() - #assert os.path.isfile(opts.executable),'## makeTagDirectory.py error - cannot find executable %s' % opts.executable - - #if not os.path.exists(opts.outputdir): - #os.makedirs(opts.outputdir) - f = makeTagDirectory(opts, args) - - html,retval = f.run_makeTagDirectory() - f = open(opts.htmloutput, 'w') - f.write(''.join(html)) - f.close() - if retval <> 0: - print >> sys.stderr, serr # indicate failure - - - diff -r a28abb0c325e -r 22b7d878f3d0 makeTagDirectory.xml --- a/makeTagDirectory.xml Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ - - - homer - - Simple wrapper for makeTagDirectory. Used by findPeaks - - makeTagDirectory.py ${tagDir.files_path} - #for $alignF in $alignmentFiles - $alignF.file -f $alignF.file.ext - #end for - -o $tagDir - 2> $out_log || echo "Error running homer_makeTagDirectory." >&2 - - - - - - - - - - - - - - - - - - - - - - - - - - - .. class:: infomark - - After the job finishes, save the zip file, unzip and open "index.html" - - The actual meme-chip command is displayed under "Command line summary" - - Defaults: - http://meme.nbcr.net/meme/doc/meme-chip.html - - - - diff -r a28abb0c325e -r 22b7d878f3d0 pos2bed.xml --- a/pos2bed.xml Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ - - - homer - - - - - pos2bed.pl $input_peak 1> $out_bed - 2> $out_log || echo "Error running pos2bed." >&2 - - - - - - - - - - - - - - - - - - - .. class:: infomark - - **Homer pos2bed.pl** - http://biowhat.ucsd.edu/homer/ngs/miscellaneous.html - - - diff -r a28abb0c325e -r 22b7d878f3d0 tool_dependencies.xml --- a/tool_dependencies.xml Thu Dec 13 23:53:23 2012 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ - - - - - - http://biowhat.ucsd.edu/homer/configureHomer.pl - perl ./configureHomer.pl -install - perl ./configureHomer.pl -install hg19 - - $INSTALL_DIR/bin - - - - - Installs homer - - - -