Mercurial > repos > imgteam > imagecoordinates_flipaxis
changeset 2:f8f1100d0701 draft
"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/imagecoordinates_flipaxis/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
| author | imgteam |
|---|---|
| date | Wed, 18 Dec 2019 05:02:25 -0500 |
| parents | d0960e1b25a8 |
| children | 984b342d03a6 |
| files | imagecoordinates_flipaxis.py imagecoordinates_flipaxis.xml |
| diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/imagecoordinates_flipaxis.py Mon Mar 25 11:15:54 2019 -0400 +++ b/imagecoordinates_flipaxis.py Wed Dec 18 05:02:25 2019 -0500 @@ -2,8 +2,8 @@ import pandas as pd -def imagecoordinates_flipyaxis(input_file, output_file, image_height, offset=[0,0]): - df = pd.read_csv(input_file, sep='\t') +def imagecoordinates_flipyaxis(input_file, output_file, image_height, offset=[0,0]): + df = pd.read_csv(input_file, sep='\t') x = df.copy().y # create copy instead of view df.y = image_height-(df.x + 1) + offset[1] # since maximal y index = height-1
--- a/imagecoordinates_flipaxis.xml Mon Mar 25 11:15:54 2019 -0400 +++ b/imagecoordinates_flipaxis.xml Wed Dec 18 05:02:25 2019 -0500 @@ -1,7 +1,7 @@ <tool id="imagecoordinates_flipaxis" name="Switch axis coordinates" version="0.1"> <description>Switches the axes of an image and flips the y axis.</description> <requirements> - <requirement type="package" version="0.23.4" >pandas</requirement> + <requirement type="package" version="0.23.4" >pandas</requirement> </requirements> <command detect_errors="aggressive"> <