Mercurial > repos > imgteam > imagecoordinates_flipaxis
diff imagecoordinates_flipaxis.py @ 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 |
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