extract_trigger.py
EXTRACT_trigger
¶
Source code in element_interface/extract_trigger.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
__init__(scanfile, parameters, output_dir)
¶
A helper class to trigger EXTRACT analysis in element-calcium-imaging.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scanfile |
Union[str, Path]
|
Full path of the scan |
required |
parameters |
dict
|
EXTRACT input paramaters. |
required |
output_dir |
Union[str, Path]
|
Directory to store the outputs of EXTRACT analysis. |
required |
Source code in element_interface/extract_trigger.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
run()
¶
Run the matlab run_extract.m script.
Source code in element_interface/extract_trigger.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
write_matlab_run_script()
¶
Compose a matlab script and save it with the name run_extract.m.
The composed script is basically the formatted version of the m_template attribute.
Source code in element_interface/extract_trigger.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |