# HG changeset patch # User imgteam # Date 1576663207 0 # Node ID c0a1bffb9783823e7f9e5c365dd5a973b3fb2d4c # Parent 413c02625317ad29b1eb35a0de28ce3e1cb95a51 "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/wsi_extract_top_view/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90" diff -r 413c02625317 -r c0a1bffb9783 wsi_extract_top_view.py --- a/wsi_extract_top_view.py Sat Feb 09 14:27:00 2019 -0500 +++ b/wsi_extract_top_view.py Wed Dec 18 10:00:07 2019 +0000 @@ -4,7 +4,7 @@ import fnmatch import skimage.io import numpy as np - + def wsi_extract_top_view(input_path, out_path): img_raw = openslide.OpenSlide(input_path) top_size = img_raw.level_dimensions[len(img_raw.level_dimensions)-1] @@ -18,5 +18,5 @@ parser.add_argument('input_file', type=argparse.FileType('r'), help='input file') parser.add_argument('out_file', help='out file') args = parser.parse_args() - + wsi_extract_top_view(args.input_file.name, args.out_file) diff -r 413c02625317 -r c0a1bffb9783 wsi_extract_top_view.xml --- a/wsi_extract_top_view.xml Sat Feb 09 14:27:00 2019 -0500 +++ b/wsi_extract_top_view.xml Wed Dec 18 10:00:07 2019 +0000 @@ -1,12 +1,13 @@ - + from whole-slice image - + scikit-image numpy openslide-python glob2 + tifffile - +