view tool_macros.xml @ 1:040fb4c886ae default tip

Fix cistrome requirement version
author Jim Johnson <jj@umn.edu>
date Tue, 14 Oct 2014 10:25:24 -0500
parents c392c4007d5e
children
line wrap: on
line source

<macros>

  <macro name="requirements">
    <requirements>
      <requirement type="package" version="1.7.1">numpy</requirement>
      <requirement type="package" version="2014-09-29">cistrome</requirement>
    </requirements>
  </macro>
  <macro name="requirements_seqpos">
    <requirements>
      <requirement type="package" version="1.7.1">numpy</requirement>
      <requirement type="package" version="2014-09-29">cistrome</requirement>
      <requirement type="package" version="2.7.3">jinja2</requirement>
      <requirement type="package" version="2.15.0">R</requirement>
      <requirement type="package" version="1.24.0">bioc_seqlogo</requirement>
    </requirements>
  </macro>
  <macro name="stdio">
    <stdio>
        <exit_code range=":-1"  level="fatal" description="Error: Cannot open file" />
        <exit_code range="1:"  level="fatal" description="Error" />
    </stdio>
  </macro>
  <macro name="refGenomeSourceConditional">
    <conditional name="refGenomeSource">
      <param name="genomeSource" type="select" label="Use a built in reference genome or own from your history" help="Genome Reference Fasta sequence">
        <option value="cached" selected="True">Use a built-in genome</option>
        <option value="history">Use a genome from history</option>
        <option value="installed">cistrome installation</option>
      </param>
      <when value="cached">
        <param name="cistrome_assembly" type="select" label="Cistrome Genome Assembly">
            <options from_data_table="cistrome_assembly"/>
        </param>
      </when>
      <when value="history">
        <param name="ownFile" type="data" format="cistrome_assembly" metadata_name="dbkey" label="Select the reference genome" />
      </when>  <!-- history -->
      <when value="installed">
        <param name="cistrome_static_assembly" type="select" label="Cistrome Genome Assembly">
            <option value="humanhg18">humanhg18</option>
            <option value="humanhg19">humanhg19</option>
            <option value="UCSC_MM7">UCSC_MM7</option>
            <option value="mousemm8_Mar2006">mousemm8_Mar2006</option>
            <option value="UCSC_MM9">UCSC_MM9</option>
            <option value="UCSC_CE4">UCSC_CE4</option>
            <option value="UCSC_CE6">UCSC_CE6</option>
            <option value="UCSC_DM3">UCSC_DM3</option>
        </param>
      </when>  <!-- history -->
    </conditional>  <!-- refGenomeSource -->
  </macro>

  <template name="ref_genome_seq_opts">
#if $refGenomeSource.genomeSource == 'cached':
  -g $refGenomeSource.cistrome_assembly.fields.path
#elif $refGenomeSource.genomeSource == 'history':
  -g $refGenomeSource.ownFile.extra_files_path
#else
  #if  hasattr($__app__.config,'cistrome_static_library_path'):
    -g ${$__app__.config.cistrome_static_library_path}/assembly/$refGenomeSource.cistrome_static_assembly
  #elif $os.path.exists($os.path.join($__tool_data_path__,'assembly'))
    -g $__tool_data_path__/assembly/$refGenomeSource.cistrome_static_assembly 
  #end if
#end if
  </template>

  <template name="script_chars">
#set global $dollar = chr(36)
#set global $gt = chr(62)
#set global $lt = chr(60)
#set global $ad = chr(38)
  </template>

  <token name="@EXTERNAL_DOCUMENTATION@">

For details about this application, please go to:
	https://bitbucket.org/cistrome/cistrome-harvard/wiki/Home

  </token>
  <token name="@CITATION_SECTION@">------

**Citation**

For the underlying tool, please cite the following publication:
"Cistrome: an integrative platform for transcriptional regulation studies," Liu T, Ortiz JA, Taing L, Meyer CA, Lee B, Zhang Y, Shin H, Wong SS, Ma J, Lei Y, Pape UJ, Poidinger M, Chen Y, Yeung K, Brown M, Turpaz Y, Liu XS. Genome Biol. 2011 Aug 22;12(8):R83.

  </token>
</macros>