In [1]:
import wellmap
In [3]:
wellmap.show("microplate_96_2_samples_vertical_dilutions.txt")#prints two versions of the same image (png, img)
Out[3]:
In [6]:
wellmap.show("microplate_96_2_samples_horizontal_dilutions.txt")#prints two versions of the same image (png, img)
Out[6]:
In [7]:
import micrompn
In [3]:
! micrompn --help
usage: micrompn [-h] --wellmap WELLMAP --data DATA --cutoff CUTOFF --outfile
                OUTFILE [--plate_name PLATE_NAME] [--value_name VALUE_NAME]
                [--well_name WELL_NAME] [--col_name COL_NAME]
                [--row_name ROW_NAME] [--zero_padded] [--trim_positives]
                [--version] [--logfile LOGFILE]

MicroMPN: Software to estimate Most Probable Number (MPN) bacterial abundance
from microplates

optional arguments:
  -h, --help            show this help message and exit
  --wellmap WELLMAP     A TOML file with plate layout specified in wellmap
                        format
  --data DATA           A csv file or a directory containing csv files with
                        the plate name, optical value, and well or row and
                        column data
  --cutoff CUTOFF       The value from the plate reader above which a well is
                        classified as positive
  --outfile OUTFILE     The file path and name for the results
  --plate_name PLATE_NAME
                        The name of the column containing the plate identifier
                        in the data file
  --value_name VALUE_NAME
                        The name of the column containing the optical signal
                        column in the data file
  --well_name WELL_NAME
                        The name of the column containing the well identifier
                        in the data file
  --col_name COL_NAME   The name of the column containing the plate column
                        identifier in the data file
  --row_name ROW_NAME   The name of the column containing the plate row
                        identifier in the data file
  --zero_padded         If present, the well value in the data file is treated
                        as zero-padded, e.g. A01
  --trim_positives      If present, the list of positive wells will be trimmed
                        to the most dilute all positive dilution and the least
                        dilute all negative dilution. This helps if early
                        dilutions are turbid.
  --version, -v         show program's version number and exit
  --logfile LOGFILE, -l LOGFILE
In [4]:
! micrompn -v
micrompn (0.1)

The cutoff value = (mean RFU T0) + (5*SD). For limit of detection the cutoff was 5.598597652

microplate_96_2_samples_vertical_dilutions

In [8]:
! micrompn --wellmap microplate_96_2_samples_vertical_dilutions.txt --data "path_to_file\96_2_samples_vertical_dilutions.csv" --cutoff 6 --outfile "path_to_file\96_2_samples\OUTFILE_96_2_samples_vertical_dilutions.csv" --plate_name "plate_unique" --value_name "rfu" --well_name "plate_well" 
#this is a mock dataset 
2023-06-09 13:18:26,884 root         INFO     Starting microMPN
2023-06-09 13:18:26,884 root         INFO     Input parameters and arguments for the run:
2023-06-09 13:18:26,884 root         INFO     Namespace(col_name=None, cutoff=6.0, data='path_to_file\\96_2_samples_vertical_dilutions.csv', logfile='micrompn.log', outfile='path_to_file\\OUTFILE_96_2_samples_vertical_dilutions.csv', plate_name='plate_unique', row_name=None, trim_positives=False, value_name='rfu', well_name='plate_well', wellmap='microplate_96_2_samples_vertical_dilutions.txt', zero_padded=False)
2023-06-09 13:18:26,888 root         INFO     Importing data from microplate_96_2_samples_vertical_dilutions.txt and path_to_file\96_2_samples_vertical_dilutions.csv
2023-06-09 13:18:26,928 numexpr.utils INFO     Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2023-06-09 13:18:26,928 numexpr.utils INFO     NumExpr defaulting to 8 threads.
2023-06-09 13:18:27,019 root         INFO     Completed MPN estimation. Results are in path_to_file\OUTFILE_96_2_samples_vertical_dilutions.csv

microplate_96_2_samples_horizontal_dilutions

In [9]:
! micrompn --wellmap microplate_96_2_samples_horizontal_dilutions.txt --data "path_to_file\96_2_samples_horizontal_dilutions.csv" --cutoff 6 --outfile "path_to_file\OUTFILE_96_2_samples_horizontal_dilutions.csv" --plate_name "plate_unique" --value_name "rfu" --well_name "plate_well" --trim_positives 
#this is a mock dataset 
2023-06-09 13:19:03,692 root         INFO     Starting microMPN
2023-06-09 13:19:03,692 root         INFO     Input parameters and arguments for the run:
2023-06-09 13:19:03,692 root         INFO     Namespace(col_name=None, cutoff=6.0, data='path_to_file\\96_2_samples_horizontal_dilutions.csv', logfile='micrompn.log', outfile='path_to_file\path_to_file\\OUTFILE_96_2_samples_horizontal_dilutions.csv', plate_name='plate_unique', row_name=None, trim_positives=True, value_name='rfu', well_name='plate_well', wellmap='microplate_96_2_samples_horizontal_dilutions.txt', zero_padded=False)
2023-06-09 13:19:03,696 root         INFO     Importing data from microplate_96_2_samples_horizontal_dilutions.txt and path_to_file\96_2_samples_horizontal_dilutions.csv
2023-06-09 13:19:03,727 numexpr.utils INFO     Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2023-06-09 13:19:03,727 numexpr.utils INFO     NumExpr defaulting to 8 threads.
2023-06-09 13:19:03,822 root         INFO     Completed MPN estimation. Results are in path_to_file\OUTFILE_96_2_samples_horizontal_dilutions.csv
In [ ]: