view jbrowse-fromdir.xml @ 42:6cd09d7b5f37 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit 96f42b908d68ef8b1da5507e9216db74e46ebf06"
author iuc
date Sat, 06 Feb 2021 12:01:13 +0000
parents 8774b28235bb
children
line wrap: on
line source

<tool id="jbrowse_to_standalone" name="JBrowse - Data Directory to Standalone" version="@TOOL_VERSION@+@WRAPPER_VERSION@">
  <description>upgrades the bare data directory to a full JBrowse instance</description>
  <macros>
    <import>macros.xml</import>
  </macros>
  <edam_operations>
    <edam_operation>operation_3434</edam_operation>
  </edam_operations>
  <edam_topics>
    <edam_topic>topic_3307</edam_topic>
    <edam_topic>topic_0092</edam_topic>
  </edam_topics>
  <expand macro="requirements"/>
  <command detect_errors="exit_code"><![CDATA[
## Create output directory
mkdir -p $output.files_path &&

export JBROWSE_SOURCE_DIR=\$(dirname \$(command -v prepare-refseqs.pl))/../opt/jbrowse  &&

## Copy in jbrowse
cp -R \${JBROWSE_SOURCE_DIR}/* $output.files_path/ &&

## Copy in data directory
cp -R $input.dataset.extra_files_path/data/ $output.files_path/ &&
cp $output.files_path/index.html $output
]]></command>
  <inputs>
    <param label="JBrowse Data Directory"
           name="input"
           type="data"
           help="Look for datasets with 'JBrowse ... Data Directory' in the name"
           format="html" />
  </inputs>
  <outputs>
      <data format="html" name="output" label="#set $name = $input.name.replace('Data Directory', 'Standalone')# $name"/>
  </outputs>
  <tests>
  </tests>
  <help><![CDATA[
Upgrades an existing bare JBrowse "data" directory into a full-fledged JBrowse instance.

@ATTRIBUTION@
]]></help>
  <expand macro="citations"/>
</tool>