Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ashlar version update #56

Merged
merged 5 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tools/ashlar/.shed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ name: ashlar
description: "Alignment by Simultaneous Harmonization of Layer/Adjacency Registration
Usage"
remote_repository_url: https://github.com/ohsu-comp-bio/ashlar
homepage_url: https://github.com/labsyspharm/ashlar
long_description: |
Ashlar performs fast, high-quality stitching of microscopy images. It also co-registers multiple rounds of cyclic imaging for methods such as CyCIF and CODEX. Ashlar can read image data directly from BioFormats-supported microscope vendor file formats as well as a directory of plain TIFF files. Output is saved as pyramidal, tiled OME-TIFF.
categories:
- "Imaging"
31 changes: 7 additions & 24 deletions tools/ashlar/ashlar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@

-c $adv.align_channel

#if $adv.stitch_alpha
--stitch-alpha $adv.stitch_alpha
#end if

#if $adv.filter_sigma
--filter-sigma $adv.filter_sigma
#end if
Expand All @@ -73,20 +77,10 @@
#end for
#end if

$adv.pyramid
$adv.flip_mosaic_x
$adv.flip_mosaic_y

-f registered.ome.tif;

#if $upgrade.decide == "do_upgrade"
python3 '${__tool_directory__}/pyramid_upgrade.py'
registered.ome.tif

#if $upgrade.markers_file
-n `echo \$(cat $upgrade.markers_file | tail -n +2 | awk -F, '{print \$3}')`;
#end if
#end if
-o registered.ome.tif;
]]></command>

<inputs>
Expand All @@ -96,24 +90,13 @@
<param name="flip_x" type="boolean" truevalue="--flip-x" falsevalue="" label="Flip X-axis"/>
<param name="flip_y" type="boolean" truevalue="--flip-y" falsevalue="" label="Flip Y-axis"/>
<param name="max_shift" type="integer" value="30" label="Maximum allowed per-tile corrective shift" help="In micros"/>
<conditional name="upgrade">
<param name="decide" type="select" label="Upgrade to BF6-Compliant OME-TIFF Pyramid">
<option value="do_upgrade">Upgrade Pyramid</option>
<option value="dont_upgrade">Leave Legacy Pyramid</option>
</param>
<when value="do_upgrade">
<param name="markers_file" type="data" format="csv,tabular" optional="true" label="Markers File (optional)"/>
</when>
<when value="dont_upgrade">
</when>
</conditional>
<section name="adv" title="Advanced Options" expanded="false">
<param name="align_channel" type="integer" value="0" label="Align Channel Number"/>
<param name="stitch_alpha" type="float" optional="true" label="Alpha"/>
<param name="filter_sigma" type="float" optional="true" label="Sigma"/>
<param name="tile_size" type="integer" optional="true" label="Cyto Mask Channel"/>
<param name="flip_mosaic_x" type="boolean" truevalue="--flip-mosaic-x" falsevalue="" label="Flip output image horizontally"/>
<param name="flip_mosaic_y" type="boolean" truevalue="--flip-mosaic-y" falsevalue="" label="Flip output image vertically"/>
<param name="pyramid" type="boolean" checked="true" truevalue="--pyramid" falsevalue="" label="Write output as a single pyramidal TIFF"/>
</section>
</inputs>

Expand All @@ -130,7 +113,7 @@
</param>
<output name="output" ftype="ome.tiff">
<assert_contents>
<has_size value="4000000" delta="1000000" />
<has_size value="500000" delta="400000" />
</assert_contents>
</output>
</test>
Expand Down
6 changes: 3 additions & 3 deletions tools/ashlar/macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
</xml>
<xml name="citations">
<citations>
<citation type="doi">10.1101/2021.04.20.440625</citation>
<citation type="doi">10.1093/bioinformatics/btac544</citation>
</citations>
</xml>

<token name="@TOOL_VERSION@">1.14.0</token>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@TOOL_VERSION@">1.18.0</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@CMD_BEGIN@">ashlar</token>
</macros>
Loading
Loading