... | ... | @@ -3,31 +3,34 @@ Your filenames already carry important information about your experiment such as |
|
|
|
|
|
## Summary
|
|
|
The script does the following:
|
|
|
1. reads a template for how to chop the filename up
|
|
|
2. reads the 'slot numbers' below the template for what key to store the values in
|
|
|
3. then chops up each file name to extract the values, matches them with a key, then stores the key-value pairs with the image.
|
|
|
|
|
|
1. Reads a template for how to chop the filename up
|
|
|
2. Reads the 'slot numbers' below the template for what key to store the values in
|
|
|
3. Then chops up each file name to extract the values, matches them with a key, then stores the key-value pairs with the image.
|
|
|
|
|
|
On this page we will use the filename example set. The filenames have this structure
|
|
|
|
|
|
`171101_dose-100_time1_rep1.tif`
|
|
|
`150707_FishNewProbes_TRITC_Eurb388_01_snapshot_R3D.dv`
|
|
|
|
|
|
To attach the key value metadata the following is added to the Dataset Description.
|
|
|
|
|
|
```
|
|
|
# filename key-value
|
|
|
template *_dose-*_time1*_rep*.tif
|
|
|
template *_*_*_*_*_snapshot_R3D.dv
|
|
|
|
|
|
1. DateOfExperiment
|
|
|
2. Dose
|
|
|
3. TimeStart
|
|
|
4. Replicate
|
|
|
2. Probe used
|
|
|
3. FilterSet
|
|
|
4. GeneInsert
|
|
|
5. Replicate
|
|
|
# end key-value
|
|
|
```
|
|
|
|
|
|
# Template
|
|
|
|
|
|
The easiest way to set the template up is to:
|
|
|
|
|
|
1. Copy a filename from one of your files into the Description box.
|
|
|
2. Highlight each part of the name that is changing and replace it with an `*`.
|
|
|
3. Below this write `1. ` then name of key. Repeat this each of the values stored in the name, incrementing the slot counter.
|
|
|
3. Below this write `1 ` then name of key. Repeat this each of the values stored in the name, incrementing the slot counter.
|
|
|
|