README.md 1.66 KB
Newer Older
janosch's avatar
janosch committed
1 2
# Macro Collection for BigStitcher Automation

janosch's avatar
janosch committed
3 4
by Stephan Janosch, janosch@mpi-cbg.de, https://orcid.org/0000-0002-2401-6862

janosch's avatar
janosch committed
5 6
DOI for this software: https://doi.org/10.17617/1.6L

janosch's avatar
janosch committed
7 8 9 10 11
First you run ***stich_a_day*** on a folder with daily recordings. This takes a while.

Second you run fix filenames somewhere in output folder. This fixes the filename (which takes a long time) and generates quickview jpgs.


janosch's avatar
janosch committed
12 13 14 15 16
## stitch_a_day

2 macros for stitching:
- a directory hierarchie full of
- tifs, each containing multiple channels and tiles
janosch's avatar
janosch committed
17 18 19

Indicate files for stitiching via ***_stitch_*** or any other substring

janosch's avatar
janosch committed
20 21
1 macro for just doing a fusion for all xmls in a daily recording folder. 

janosch's avatar
janosch committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
### MacOs

A directory naming convention like this works
```
/Volumes/SarovHFSP/2018-09-18 SD1 Andre/TRG_1678/
```

```
TRG_1678_16C_to_25C_TimelapseZ_0.tif	TRG_1678_@16C_stitch_1.tif
TRG_1678_16C_to_25C_timelapseZ_1.tif	TRG_1678_@16C_stitch_2.tif
TRG_1678_@16C_stitch_0.tif		TRG_1678_@28C_stitch_0.tif
```

### Windows

janosch's avatar
janosch committed
37 38 39 40
map network drive. Have the days folders in the root of the drive

```
Z:\2018-09-18 SD1 Andre\TRG_1678\
janosch's avatar
janosch committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
```

### stitch_a_day_macos.ijm

Does the whole pipeline on mac

### stitch_a_day_windows.ijm

Does the pipeline on windows

### stitch_a_day_windows_fusion_only1x.ijm

Does only the fusion for a daily recording folder

### fix_filenames_and_create_quickview.ijm

janosch's avatar
janosch committed
57 58 59 60 61 62 63
Fixes all filenames for suffixed-output files. Directory needed to be created via a script above. Select at least one folder above your fused_tp0_ch0* files. Will traverse a whole directory structure.

This script will not recreate JPGs, so you have to delete them before hand. 

```bash
find <folder> -name "*jpg" -delete
```