|
4 | 4 |
|
5 | 5 | # Segmentation G_EK_000233_L IHC_v5: |
6 | 6 | # Components: 1, 2, 3, 4, 5, 8 |
7 | | -# Additional locations for annotation |
8 | | -# {"position":[1369.3745663030836,1518.1919905173781,629.7304794154277],"timepoint":0} |
9 | | -# {"position":[1455.8392111279102,1678.0405530924381,706.4828408796568],"timepoint":0} |
10 | | -# {"position":[787.5688223108835,937.4842970917134,254.5776808983996],"timepoint":0} |
11 | | -# {"position":[673.778067707707,1047.544514258375,1573.6031222817312],"timepoint":0} |
12 | | -# {"position":[593.1568182540034,1018.005901151162,276.4582768781532],"timepoint":0} |
13 | | -# {"position":[962.1827956246404,1973.0958986758776,756.6812813123805],"timepoint":0} |
14 | 7 |
|
15 | 8 |
|
16 | 9 | def initial_blocks(): |
@@ -53,9 +46,37 @@ def initial_blocks(): |
53 | 46 | ) |
54 | 47 |
|
55 | 48 |
|
| 49 | +def next_blocks(): |
| 50 | + blocks_to_annotate = [ |
| 51 | + "[1369.3745663030836,1518.1919905173781,629.7304794154277]", |
| 52 | + "[1455.8392111279102,1678.0405530924381,706.4828408796568]", |
| 53 | + "[787.5688223108835,937.4842970917134,254.5776808983996]", |
| 54 | + "[673.778067707707,1047.544514258375,1573.6031222817312]", |
| 55 | + "[593.1568182540034,1018.005901151162,276.4582768781532]", |
| 56 | + "[962.1827956246404,1973.0958986758776,756.6812813123805]", |
| 57 | + ] |
| 58 | + |
| 59 | + input_path = "G_EK_000233_L/images/ome-zarr/Vglut3.ome.zarr" |
| 60 | + input_key = "s0" |
| 61 | + output_key = None |
| 62 | + resolution = 0.38 |
| 63 | + |
| 64 | + output_folder = "./G_EK_000233_L_VGlut3-round2" |
| 65 | + os.makedirs(output_folder, exist_ok=True) |
| 66 | + print("Exporting to", output_folder) |
| 67 | + for coords in blocks_to_annotate: |
| 68 | + halo = [196, 196, 48] |
| 69 | + coords = json.loads(coords) |
| 70 | + extract_block( |
| 71 | + input_path, coords, output_folder, input_key, output_key, resolution, halo, |
| 72 | + tif=True, s3=True, |
| 73 | + ) |
| 74 | + |
| 75 | + |
56 | 76 | def main(): |
57 | | - initial_blocks() |
| 77 | + # initial_blocks() |
| 78 | + next_blocks() |
58 | 79 |
|
59 | 80 |
|
60 | 81 | if __name__ == "__main__": |
61 | | - initial_blocks() |
| 82 | + main() |
0 commit comments