Repository 'coordinates_of_roi'
hg clone https://toolshed.g2.bx.psu.edu/repos/imgteam/coordinates_of_roi

Changeset 2:24d9bd16c953 (2019-03-20)
Previous changeset 1:ee045a6bbdef (2019-02-22) Next changeset 3:02a686fc1654 (2019-03-25)
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/coordinates_of_roi/ commit bfae746780819634a014388ea4671a49fc5c178d
modified:
coordinates_of_roi.py
coordinates_of_roi.xml
added:
test-data/.gitignore
test-data/newtable.tsv
test-data/newtable2.tsv
b
diff -r ee045a6bbdef -r 24d9bd16c953 coordinates_of_roi.py
--- a/coordinates_of_roi.py Fri Feb 22 17:11:28 2019 -0500
+++ b/coordinates_of_roi.py Wed Mar 20 09:18:06 2019 -0400
[
@@ -16,11 +16,11 @@
         for i in range(img_height):
             if white_obj == False:
                 if data[i,j] <= threshold:
-                    x.append(j + offset[0])
-                    y.append(img_height-(i+1) + offset[1])
+                    x.append(i + offset[0])
+                    y.append(j + offset[1])
             elif data[i,j] >= threshold:
-                    x.append(j + offset[0])
-                    y.append(img_height-(i+1) + offset[1])
+                    x.append(i + offset[0])
+                    y.append(j + offset[1])
                     
     df = pd.DataFrame()
     df['x'] = x
b
diff -r ee045a6bbdef -r 24d9bd16c953 coordinates_of_roi.xml
--- a/coordinates_of_roi.xml Fri Feb 22 17:11:28 2019 -0500
+++ b/coordinates_of_roi.xml Wed Mar 20 09:18:06 2019 -0400
b
@@ -1,4 +1,4 @@
-<tool id="ip_coordinates_of_roi" name="Coordinates of ROI" version="0.0.3">
+<tool id="ip_coordinates_of_roi" name="Coordinates of ROI" version="0.0.4">
     <description></description>
     <requirements>
         <requirement type="package" version="0.14.2">scikit-image</requirement>
@@ -29,14 +29,14 @@
         <test>
             <param name="im" value="test.png"/>
             <param name="white_obj" value="true"/>
-            <output name="pixel_table" value="table.tsv" ftype="tabular"/>
+            <output name="pixel_table" value="newtable.tsv" ftype="tabular"/>
         </test>
         <test>
             <param name="im" value="test.png"/>
             <param name="white_obj" value="true"/>
             <param name="offset_x" value="1"/>
             <param name="offset_y" value="2"/>
-            <output name="pixel_table" value="table2.tsv" ftype="tabular"/>
+            <output name="pixel_table" value="newtable2.tsv" ftype="tabular"/>
         </test>
     </tests>
     <help>
b
diff -r ee045a6bbdef -r 24d9bd16c953 test-data/.gitignore
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/.gitignore Wed Mar 20 09:18:06 2019 -0400
b
@@ -0,0 +1,1 @@
+/test2.png
b
diff -r ee045a6bbdef -r 24d9bd16c953 test-data/newtable.tsv
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/newtable.tsv Wed Mar 20 09:18:06 2019 -0400
b
@@ -0,0 +1,7 @@
+x y
+5 4
+5 5
+5 6
+5 7
+5 8
+5 9
b
diff -r ee045a6bbdef -r 24d9bd16c953 test-data/newtable2.tsv
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/newtable2.tsv Wed Mar 20 09:18:06 2019 -0400
b
@@ -0,0 +1,7 @@
+x y
+6 6
+6 7
+6 8
+6 9
+6 10
+6 11