You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/DCP-documentation/step_2_submit_jobs.md
+71-4
Original file line number
Diff line number
Diff line change
@@ -38,18 +38,85 @@ Job files that don't include it will use the default structure.
38
38
For large numbers of groups, it may be helpful to create this list separately as a .txt file you can then append into the job's JSON file.
39
39
You may create this yourself in your favorite scripting language.
40
40
Alternatively, you can use the following additional tools to help you create and format this list:
41
-
* `batches.sh` allows you to provide a list of all the individual metadata components (plates, columns, rows, etc).
41
+
*`batches.sh` allows you to provide a list of all the individual metadata components (plates, columns, rows, etc).
42
42
It then uses [GNU parallel](https://www.gnu.org/software/parallel/parallel_tutorial.html) to create a formatted text file with all the possible combinations of the components you provided.
43
43
This approach is best when you have a large number of groups and the group structure is uniform.
44
44
45
45
Example: for a 96-well plate experiment where one there are 3 plates and the experiment is grouped by Plate and Well, `batches.sh` would read:
46
-
`parallel echo '{\"Metadata\": \"Metadata_Plate={1},Metadata_Well={2}{3}\"},' ::: Plate1 Plate2 Plate3 ::: A B C D E F G H ::: 01 02 03 04 05 06 07 08 09 10 11 12 | sort > batches.txt`
47
-
* You may also use the list of groupings created by calling `cellprofiler --print-groups` from the command line (see [here](https://github.com/CellProfiler/CellProfiler/wiki/Adapting-CellProfiler-to-a-LIMS-environment#cmd) and [here](https://github.com/CellProfiler/Distributed-CellProfiler/issues/52) for more information).
48
-
Note that for job files that specify groupings in this way, the `output_structure` variable is NOT optional - it must be specified or an error will be returned.
46
+
`parallel echo '{\"Metadata\": \"Metadata_Plate={1},Metadata_Well={2}{3}\"},' ::: Plate1 Plate2 Plate3 ::: A B C D E F G H ::: 01 02 03 04 05 06 07 08 09 10 11 12 | sort > batches.txt`
47
+
* You may also use the list of groupings created by calling `cellprofiler --print-groups` from the command line (see [here](https://github.com/CellProfiler/CellProfiler/wiki/Adapting-CellProfiler-to-a-LIMS-environment#cmd) and [here](https://github.com/CellProfiler/Distributed-CellProfiler/issues/52) for more information).
48
+
Note that for job files that specify groupings in this way, the `output_structure` variable is NOT optional - it must be specified or an error will be returned.
49
49
50
50
## Alternate job submission: run_batch_general.py
51
51
52
52
We also support an alternate second path besides `submitJobs` to create the list of jobs - the `run_batch_general.py` file.
53
53
This file essentially serves as a "shortcut" to run many common types of stereotyped experiments we run in our lab.
54
54
Essentially, if your data follows a regular structure (such as N rows, N columns, N grouping, a particular structure for output, etc.), you may find it useful to take and modify this file for your own usage.
55
55
We recommend new users use the `submitJobs` pathway, as it will help users understand the kinds of information Distributed-CellProfiler needs in order to run properly, but once they are comfortable with it they may find `run_batch_general.py` helps them create jobs faster in the future.
56
+
57
+
As of Distributed-CellProfiler 2.2.0, `run_batch_general.py` has been reformatted as a CLI tool with greatly enhanced customizeability.
58
+
`run_batch_general.py` must be passed 5 pieces of information:
59
+
60
+
### Required inputs
61
+
62
+
*`step` is the step that you would like to make jobs for.
63
+
Supported steps are `zproj`, `illum`, `qc`, `qc_persite`, `assaydev`, and`analysis`
64
+
*`identifier` is the project identifier (e.g. "cpg0000-jump-pilot" or "2024_11_07_Collaborator_Cell_Painting")
65
+
*`batch` is the name of the data batch (e.g. "2020_11_04_CPJUMP1")
66
+
*`platelist` is the list of plates to process.
67
+
Format the list in quotes with individual plates separated by commas and no spaces (e.g. "Plate1,Plate2,Plate3")
68
+
69
+
A minimal `run_batch_general.py` command may look like:
*`--plate-format <value>`: if used, can be `96` or `384` and will overwrite `rows` and `columns` to produce standard 96- or 384-well plate well names (e.g. A01, A02, etc.)
90
+
*`--rows <value>`: a custom list of row labels.
91
+
Will be combined with `columns` to generate well names.
92
+
Separate values with commas and no spaces and surround with quotation marks (e.g. `"A,B,C,D,E,F,G"`)
93
+
*`--columns <value>`: a custom list of column labels.
94
+
Will be combined with `rows` to generate well names.
95
+
Separate values with commas and no spaces and surround with quotation marks (e.g. `"1,2,3,4,5,6,7,8,9,10"`)
96
+
*`--wells <value>`: a custom list of wells.
97
+
Overwrites `rows` and `columns`.
98
+
Separate values with commas and no spaces and surround with quotation marks (e.g. `"C02,D04,E04,N12"`)
99
+
*`--no-well-digit-pad`: Formats wells without well digit padding.
100
+
Formats wells passed with `--plate format` or `--rows` and `--columns` but not `--wells`.
101
+
(e.g. `A1` NOT `A01`)
102
+
*`--sites <value>`: a custom list of sites (fields of view) to be analyzed.
103
+
Separate values with commas and no spaces and surround with quotation marks (e.g. `"1,2,3,4,5,6"`)
0 commit comments