view metacyto_histogram.xml @ 0:f5526d97056c draft default tip

"planemo upload for repository commit cb978232e32b64f7b0ff3c1852e708361045d268"
author azomics
date Thu, 29 Jul 2021 22:15:11 +0000
line wrap: on
line source

<tool id="metacyto_histogram" name="Generate histograms" version="1.0+galaxy0" profile="18.01">
  <description>of MetaCyto's clustering results</description>
    <requirement type="package" version="1.4.0">bioconductor-metacyto</requirement>
    <exit_code range="1:9" />
    <exit_code range="10" level="fatal" description="Please provide a valid input FCS file." />
    <exit_code range="11" level="fatal" description="Please provide a valid input file for gate definitions." />
    <exit_code range="12" level="fatal" description="Please provide a cluster definition" />
    <exit_code range="13:" />
    Rscript --slave --vanilla '$__tool_directory__/metacyto_histogram.R' '${input}' '${}' 'metacyto_plots' '${unused}' '${outformat}'
  #if $ == "F"
    'F' '${input_option.gates}'
  #else if $ == "L"
    'L' '${input_option.first_def}'
    #for $r in $input_option.cl_df
    #end for
  #end if
    <param format="fcs" name="input" type="data" label="FCS file"/>
    <conditional name="input_option">
      <param name="co" type="select" label="Clusters to plot">
        <option value="F">from file</option>
        <option value="L">manual input</option>
      <when value="F">
        <param format="metacyto_clr.txt" name="gates" type="data" label="List of cluster definition" help="One gate definition per line."/>
      <when value="L">
        <param name="first_def" type="text" label="Additional cluster definition:" help="i.e.:CD3+,CD4-,CD8+,CCR7+"/>
        <repeat name="cl_df" title="Cluster:">
          <param name="cluster_def" type="text" label="Additional cluster definition:" help="i.e.:CD3+,CD4-,CD8+,CCR7+"/>
    <param name="outformat" type="select" label="Output Format" help="PDF will be larger files that may take some time to load.">
      <option value="PNG" selected="true">PNG</option>
      <option value="PDF">PDF</option>
    <data format="txt" name="unused" label="List of clusters not found in ${}"/>
    <collection type="list" label="Histograms in ${}, PNG format" name="output_png">
      <discover_datasets pattern="(?P&lt;name&gt;.*)" directory="metacyto_plots" format="png" />
    <collection type="list" label="Histograms in ${}, PDF format" name="output_pdf">
      <discover_datasets pattern="(?P&lt;name&gt;.*)" directory="metacyto_plots" format="pdf" />
      <param name="input" value="Group1.fcs"/>
      <param name="co" value="L"/>
      <param name="first_def" value="CD3+,CD4-"/>
      <param name="outformat" value="PNG"/>
      <output name="unused">
          <has_n_lines n="1"/>
      <output_collection name="output_png">
        <element name="Group1_CD3+CD4-_plot.png" ftype="png">
            <has_size value="105600" delta="30000"/>
Histograms of the distribution of events after clustering with MetaCyto for provided gating definitions

**Input files**

This tool requires a valid FCS file and a list of clusters as input.


This tool generates plots to show the distribution of cells in each cluster definition. The gray histograms show the distribution of markers in all cells. The red histograms show the distribution of markers in the identified cell subset.


*Input* - Cluster List::


*Output* - Unused Cluster List::


*Graphical output*

.. image:: images/meta_histo.png