view tools/mytools/spatial_proximity.xml @ 1:cdcb0ce84a1b

author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
line wrap: on
line source

<tool id="spatialproximity" name="spatial proximity">
  <description>of two interval sets</description>
  <command interpreter="python"> $inputa $inputb $genome  $outplot $outlog $outbed $strandness
    <param name="inputa" format="interval" type="data" label="Interval set 1" />
    <param name="inputb" format="interval" type="data" label="Interval set 2" />
    <param name="genome" type="select" label="Select genome">
     <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/mouse.mm9.genome" selected="true">mm9</option>
     <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/mouse.mm8.genome">mm8</option>
     <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/human.hg18.genome">hg18</option>
     <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/human.hg19.genome">hg19</option>
          <param name="strandness" type="select" label="Strand requirement" >
		<option value="" selected="true"> none </option>
        <option value="-s" > -s: closest feature on the same strand</option>
        <option value="-S" > -S: closest feature on the opposite strand </option>
    <data format="input" name="outbed" label="${} on ${on_string}: (bed)" />
    <data format="pdf" name="outplot" label="${} on ${on_string}: (plot)" />
      <data format="txt" name="outlog" label="${} on ${on_string}: (log)" />
.. class:: infomark

for each feature in the first interval set, find the closest in the second set, then compared the distance distribution to shuffled set 1.