Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ENH: Add ImageJ2 script to overlay image and ROIs
  • Loading branch information
pan14001 committed May 5, 2017
1 parent 9ce3f0e commit 7d4eb47
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/imagej_open.groovy
@@ -0,0 +1,21 @@
import groovy.io.FileType // Recurse directories per http://stackoverflow.com/a/3954639

/** Path to project Git repo */
def prefix = "/share/Pariksheet/consultations/rnai-screen-tf"

/**
* Read a stack of raw images.
*
* @param plate name of the plate to match
* @param well name of the well in [A-P][01-24] format
*/
def open = {String plate, String well ->
def dirBg = new File("$prefix/results/z_projection")
def found = []
dirBg.eachFileMatch(FileType.FILES, ~/${plate}_${well}_.+/) {
found << it.name
}
println found
}

open("160415_015529-V", "C03")

0 comments on commit 7d4eb47

Please sign in to comment.