# HG changeset patch # User imgteam # Date 1576663091 0 # Node ID fb68afb14731904328efedb2426ba446fc337e37 # Parent fb6b557a29373594c37c7ef86493a540110b1b7e "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/imagecoordinates_flipaxis/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90" diff -r fb6b557a2937 -r fb68afb14731 imagecoordinates_flipaxis.py --- a/imagecoordinates_flipaxis.py Mon Mar 25 11:15:01 2019 -0400 +++ b/imagecoordinates_flipaxis.py Wed Dec 18 09:58:11 2019 +0000 @@ -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 diff -r fb6b557a2937 -r fb68afb14731 imagecoordinates_flipaxis.xml --- a/imagecoordinates_flipaxis.xml Mon Mar 25 11:15:01 2019 -0400 +++ b/imagecoordinates_flipaxis.xml Wed Dec 18 09:58:11 2019 +0000 @@ -1,7 +1,7 @@ Switches the axes of an image and flips the y axis. - pandas + pandas - +