Holger Frey
3 years ago
6 changed files with 127 additions and 126 deletions
@ -1,119 +1,119 @@ |
|||||||
""" Column name definitions """ |
""" Column name definitions """ |
||||||
|
|
||||||
# original, unmodified column names |
# original, unmodified column names |
||||||
RAW_DATA_POS_X = "Pos.X" |
POS_X = "Pos.X" |
||||||
RAW_DATA_POS_Y = "Pos.Y" |
POS_Y = "Pos.Y" |
||||||
RAW_DATA_BKG_MEAN = "Bkg.Mean" |
POS_NOM_X = "Pos.Nom.X" |
||||||
RAW_DATA_SPOT_MEAN = "Spot.Mean" |
POS_NOM_Y = "Pos.Nom.Y" |
||||||
RAW_DATA_BKG_MEDIAN = "Bkg.Median" |
BKG_SUM = "Bkg.Sum" |
||||||
RAW_DATA_SPOT_MEDIAN = "Spot.Median" |
BKG_AREA = "Bkg.Area" |
||||||
RAW_DATA_BKG_STDDEV = "Bkg.StdDev" |
BKG_MEAN = "Bkg.Mean" |
||||||
RAW_DATA_SPOT_STDDEV = "Spot.StdDev" |
BKG_MEDIAN = "Bkg.Median" |
||||||
RAW_DATA_BKG_SUM = "Bkg.Sum" |
BKG_STDDEV = "Bkg.StdDev" |
||||||
RAW_DATA_SPOT_SUM = "Spot.Sum" |
SPOT_SUM = "Spot.Sum" |
||||||
RAW_DATA_BKG_AREA = "Bkg.Area" |
SPOT_AREA = "Spot.Area" |
||||||
RAW_DATA_SPOT_AREA = "Spot.Area" |
SPOT_MEAN = "Spot.Mean" |
||||||
RAW_DATA_POS_NOM_X = "Pos.Nom.X" |
SPOT_MEDIAN = "Spot.Median" |
||||||
RAW_DATA_POS_NOM_Y = "Pos.Nom.Y" |
SPOT_STDDEV = "Spot.StdDev" |
||||||
|
|
||||||
# replacement column names |
# replacement column names |
||||||
RAW_DATA_POS_ID = "Pos.Id" |
POS_ID = "Pos.Id" |
||||||
RAW_DATA_SPOT_FOUND = "Spot.Found" |
SPOT_FOUND = "Spot.Found" |
||||||
RAW_DATA_SPOT_DIAMETER = "Spot.Diameter" |
SPOT_DIAMETER = "Spot.Diameter" |
||||||
RAW_DATA_SPOT_SAT = "Spot.Saturation" |
SPOT_SATURATION = "Spot.Saturation" |
||||||
|
|
||||||
|
# some csv columns are just named poorly |
||||||
RAW_DATA_COLUMNS_RENAME_MAP = { |
CSV_RENAME_MAP = { |
||||||
" ID ": RAW_DATA_POS_ID, |
" ID ": POS_ID, |
||||||
"Found": RAW_DATA_SPOT_FOUND, |
"Found": SPOT_FOUND, |
||||||
"Dia.": RAW_DATA_SPOT_DIAMETER, |
"Dia.": SPOT_DIAMETER, |
||||||
"Spot.Sat. (%)": RAW_DATA_SPOT_SAT, |
"Spot.Sat. (%)": SPOT_SATURATION, |
||||||
} |
} |
||||||
|
|
||||||
# meta data extracted from filename and path |
# meta data extracted from filename and path |
||||||
META_DATA_ANALYSIS_NAME = "Analysis.Name" |
ANALYSIS_NAME = "Analysis.Name" |
||||||
META_DATA_WELL_NAME = "Well.Name" |
EXPOSURE_ID = "Exposure.Id" |
||||||
META_DATA_WELL_ROW = "Well.Row" |
WELL_NAME = "Well.Name" |
||||||
META_DATA_WELL_COLUMN = "Well.Column" |
WELL_ROW = "Well.Row" |
||||||
META_DATA_EXPOSURE_ID = "Exposure.Id" |
WELL_COLUMN = "Well.Column" |
||||||
|
|
||||||
# parsed measurement parameter information (optional, from parameters folder) |
# parsed measurement parameter information (optional, from parameters folder) |
||||||
META_DATA_PARAMETERS_CHANNEL = "Parameters.Channel" |
PARAMETERS_TIME = "Parameters.Time" |
||||||
META_DATA_PARAMETERS_TIME = "Parameters.Time" |
PARAMETERS_CHANNEL = "Parameters.Channel" |
||||||
|
|
||||||
|
|
||||||
PARSED_DATA_COLUMN_SET = { |
PARSED_DATA_COLUMN_SET = { |
||||||
RAW_DATA_POS_X, |
ANALYSIS_NAME, |
||||||
RAW_DATA_POS_Y, |
WELL_NAME, |
||||||
RAW_DATA_BKG_MEAN, |
WELL_ROW, |
||||||
RAW_DATA_SPOT_MEAN, |
WELL_COLUMN, |
||||||
RAW_DATA_BKG_MEDIAN, |
EXPOSURE_ID, |
||||||
RAW_DATA_SPOT_MEDIAN, |
POS_X, |
||||||
RAW_DATA_BKG_STDDEV, |
POS_Y, |
||||||
RAW_DATA_SPOT_STDDEV, |
POS_ID, |
||||||
RAW_DATA_BKG_SUM, |
POS_NOM_X, |
||||||
RAW_DATA_SPOT_SUM, |
POS_NOM_Y, |
||||||
RAW_DATA_BKG_AREA, |
BKG_SUM, |
||||||
RAW_DATA_SPOT_AREA, |
BKG_AREA, |
||||||
RAW_DATA_SPOT_SAT, |
BKG_MEAN, |
||||||
RAW_DATA_POS_NOM_X, |
BKG_MEDIAN, |
||||||
RAW_DATA_POS_NOM_Y, |
BKG_STDDEV, |
||||||
RAW_DATA_POS_ID, |
SPOT_SUM, |
||||||
RAW_DATA_SPOT_FOUND, |
SPOT_AREA, |
||||||
RAW_DATA_SPOT_DIAMETER, |
SPOT_MEAN, |
||||||
META_DATA_ANALYSIS_NAME, |
SPOT_FOUND, |
||||||
META_DATA_WELL_NAME, |
SPOT_MEDIAN, |
||||||
META_DATA_WELL_ROW, |
SPOT_STDDEV, |
||||||
META_DATA_WELL_COLUMN, |
SPOT_DIAMETER, |
||||||
META_DATA_EXPOSURE_ID, |
SPOT_SATURATION, |
||||||
META_DATA_PARAMETERS_CHANNEL, |
PARAMETERS_CHANNEL, |
||||||
META_DATA_PARAMETERS_TIME, |
PARAMETERS_TIME, |
||||||
} |
} |
||||||
|
|
||||||
# list of columns to ensure a pandas numeric type |
# list of columns to ensure a pandas numeric type |
||||||
RAW_DATA_NUMERIC_COLUMNS = { |
NUMERIC_COLUMNS = { |
||||||
RAW_DATA_POS_ID, |
POS_ID, |
||||||
RAW_DATA_POS_X, |
WELL_COLUMN, |
||||||
RAW_DATA_POS_Y, |
EXPOSURE_ID, |
||||||
RAW_DATA_POS_NOM_X, |
POS_X, |
||||||
RAW_DATA_POS_NOM_Y, |
POS_Y, |
||||||
RAW_DATA_BKG_MEAN, |
POS_NOM_X, |
||||||
RAW_DATA_BKG_MEDIAN, |
POS_NOM_Y, |
||||||
RAW_DATA_BKG_STDDEV, |
SPOT_SUM, |
||||||
RAW_DATA_BKG_SUM, |
BKG_SUM, |
||||||
RAW_DATA_SPOT_MEAN, |
BKG_MEAN, |
||||||
RAW_DATA_SPOT_MEDIAN, |
BKG_MEDIAN, |
||||||
RAW_DATA_SPOT_STDDEV, |
BKG_STDDEV, |
||||||
RAW_DATA_SPOT_SUM, |
SPOT_MEAN, |
||||||
RAW_DATA_SPOT_DIAMETER, |
SPOT_MEDIAN, |
||||||
META_DATA_EXPOSURE_ID, |
SPOT_STDDEV, |
||||||
META_DATA_WELL_COLUMN, |
SPOT_DIAMETER, |
||||||
|
SPOT_SATURATION, |
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
# set of columns directly dependent on exposure time |
# set of columns where values are directly dependent on exposure time |
||||||
|
|
||||||
EXPOSURE_DEPENDENT_COLUMNS = { |
EXPOSURE_DEPENDENT_COLUMNS = { |
||||||
RAW_DATA_BKG_MEAN, |
BKG_SUM, |
||||||
RAW_DATA_BKG_MEDIAN, |
BKG_MEAN, |
||||||
RAW_DATA_BKG_STDDEV, |
BKG_MEDIAN, |
||||||
RAW_DATA_BKG_SUM, |
BKG_STDDEV, |
||||||
RAW_DATA_SPOT_MEAN, |
SPOT_SUM, |
||||||
RAW_DATA_SPOT_MEDIAN, |
SPOT_MEAN, |
||||||
RAW_DATA_SPOT_STDDEV, |
SPOT_MEDIAN, |
||||||
RAW_DATA_SPOT_SUM, |
SPOT_STDDEV, |
||||||
} |
} |
||||||
|
|
||||||
# common indexes |
# common indexes |
||||||
|
|
||||||
INDEX_COLUMNS_WELL = ( |
INDEX_COLUMNS_WELL = ( |
||||||
META_DATA_ANALYSIS_NAME, |
ANALYSIS_NAME, |
||||||
META_DATA_WELL_NAME, |
WELL_NAME, |
||||||
META_DATA_WELL_ROW, |
WELL_ROW, |
||||||
) |
) |
||||||
|
|
||||||
INDEX_COLUMNS_POS = ( |
INDEX_COLUMNS_POS = ( |
||||||
META_DATA_ANALYSIS_NAME, |
ANALYSIS_NAME, |
||||||
META_DATA_WELL_NAME, |
WELL_NAME, |
||||||
META_DATA_WELL_ROW, |
WELL_ROW, |
||||||
RAW_DATA_POS_ID, |
POS_ID, |
||||||
) |
) |
||||||
|
Loading…
Reference in new issue