Skip to content
Permalink
7d4eb4706e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
21 lines (18 sloc) 570 Bytes
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")