Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 807 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 807 Bytes

parserix

Parse metadata from ImageXpress file paths

BuildStatus coverage

example:

from parserix import parse

filename = "/mnt/ImageXpress/screen/first_screen/HCC15691/2015-07-31/4014/val screen_B02_s1_w3E75611A2-A874-4065-BDAC-EE2467105EEB.tif"

parse.img_well(filename)
    >>> "B02"

parse.img_site(filename)
    >>> 1

parse.img_channel(filename)
    >>> 3

parse.plate_name(filename)
    >>> "HCC15691"

parse.plate_date(filename)
    >>> "2015-07-31"

parse.plate_date(filename, as_datetime=True)
    >>> datetime.datetime(2015, 7, 31, 0, 0)