Skip to content

Commit d6647e6

Browse files
committed
Fixgit status
1 parent f7f27d4 commit d6647e6

7 files changed

Lines changed: 122 additions & 139 deletions

File tree

.github/workflows/params_test_custom.json

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,52 +11,53 @@
1111
"preprocessing": {
1212
"job_kwargs": {
1313
"chunk_duration": "1s",
14-
"progress_bar": false
14+
"progress_bar": false,
15+
"mp_context": "spawn"
1516
},
16-
"min_preprocessing_duration": 120,
17-
"custom_preprocessing_pipeline": {},
18-
"denoising_strategy": "cmr",
1917
"filter_type": "bandpass",
20-
"highpass_filter": {
21-
"freq_min": 300.0,
22-
"margin_ms": 5.0
23-
},
24-
"bandpass_filter": {
25-
"freq_min": 300.0,
26-
"freq_max": 6000.0,
27-
"margin_ms": 5.0
28-
},
29-
"phase_shift": {
30-
"margin_ms": 100.0
31-
},
32-
"detect_bad_channels": {
33-
"method": "coherence+psd",
34-
"dead_channel_threshold": -0.5,
35-
"noisy_channel_threshold": 1.0,
36-
"outside_channel_threshold": -0.3,
37-
"outside_channels_location": "top",
38-
"n_neighbors": 11,
39-
"seed": 0
40-
},
41-
"remove_out_channels": true,
42-
"remove_bad_channels": true,
18+
"remove_out_channels": false,
19+
"remove_bad_channels": false,
4320
"max_bad_channel_fraction": 0.5,
44-
"common_reference": {
45-
"reference": "global",
46-
"operator": "median"
47-
},
48-
"highpass_spatial_filter": {
49-
"n_channel_pad": 60,
50-
"n_channel_taper": null,
51-
"direction": "y",
52-
"apply_agc": true,
53-
"agc_window_length_s": 0.01,
54-
"highpass_butter_order": 3,
55-
"highpass_butter_wn": 0.01
21+
"denoising_strategy": "destripe",
22+
"default_preprocessing_pipeline": {
23+
"phase_shift": {
24+
"margin_ms": 100.0
25+
},
26+
"highpass_filter": {
27+
"freq_min": 300.0,
28+
"margin_ms": 5.0
29+
},
30+
"bandpass_filter": {
31+
"freq_min": 300.0,
32+
"freq_max": 6000.0,
33+
"margin_ms": 5.0
34+
},
35+
"detect_and_remove_bad_channels": {
36+
"method": "coherence+psd",
37+
"dead_channel_threshold": -0.5,
38+
"noisy_channel_threshold": 1.0,
39+
"outside_channel_threshold": -0.3,
40+
"outside_channels_location": "top",
41+
"n_neighbors": 11,
42+
"channel_filters": ["noise", "dead", "out"],
43+
"seed": 0
44+
},
45+
"common_reference": {
46+
"reference": "global",
47+
"operator": "median"
48+
},
49+
"highpass_spatial_filter": {
50+
"n_channel_pad": 10,
51+
"n_channel_taper": null,
52+
"direction": "y",
53+
"apply_agc": true,
54+
"agc_window_length_s": 0.01,
55+
"highpass_butter_order": 3,
56+
"highpass_butter_wn": 0.01
57+
}
5658
},
59+
"custom_preprocessing_pipeline": null,
5760
"motion_correction": {
58-
"compute": false,
59-
"apply": false,
6061
"preset": "dredge_fast",
6162
"detect_kwargs": {},
6263
"select_kwargs": {},

.github/workflows/params_test.json renamed to .github/workflows/params_test_default.json

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,52 +11,53 @@
1111
"preprocessing": {
1212
"job_kwargs": {
1313
"chunk_duration": "1s",
14-
"progress_bar": false
15-
},
16-
"min_preprocessing_duration": 120,
17-
"custom_preprocessing_pipeline": null,
18-
"denoising_strategy": "cmr",
19-
"filter_type": "bandpass",
20-
"highpass_filter": {
21-
"freq_min": 300.0,
22-
"margin_ms": 5.0
23-
},
24-
"bandpass_filter": {
25-
"freq_min": 300.0,
26-
"freq_max": 6000.0,
27-
"margin_ms": 5.0
28-
},
29-
"phase_shift": {
30-
"margin_ms": 100.0
31-
},
32-
"detect_bad_channels": {
33-
"method": "coherence+psd",
34-
"dead_channel_threshold": -0.5,
35-
"noisy_channel_threshold": 1.0,
36-
"outside_channel_threshold": -0.3,
37-
"outside_channels_location": "top",
38-
"n_neighbors": 11,
39-
"seed": 0
14+
"progress_bar": false,
15+
"mp_context": "spawn"
4016
},
17+
"filter_type": "highpass",
4118
"remove_out_channels": true,
4219
"remove_bad_channels": true,
4320
"max_bad_channel_fraction": 0.5,
44-
"common_reference": {
45-
"reference": "global",
46-
"operator": "median"
47-
},
48-
"highpass_spatial_filter": {
49-
"n_channel_pad": 60,
50-
"n_channel_taper": null,
51-
"direction": "y",
52-
"apply_agc": true,
53-
"agc_window_length_s": 0.01,
54-
"highpass_butter_order": 3,
55-
"highpass_butter_wn": 0.01
21+
"denoising_strategy": "cmr",
22+
"default_preprocessing_pipeline": {
23+
"phase_shift": {
24+
"margin_ms": 100.0
25+
},
26+
"highpass_filter": {
27+
"freq_min": 300.0,
28+
"margin_ms": 5.0
29+
},
30+
"bandpass_filter": {
31+
"freq_min": 300.0,
32+
"freq_max": 6000.0,
33+
"margin_ms": 5.0
34+
},
35+
"detect_and_remove_bad_channels": {
36+
"method": "coherence+psd",
37+
"dead_channel_threshold": -0.5,
38+
"noisy_channel_threshold": 1.0,
39+
"outside_channel_threshold": -0.3,
40+
"outside_channels_location": "top",
41+
"n_neighbors": 11,
42+
"channel_filters": ["noise", "dead", "out"],
43+
"seed": 0
44+
},
45+
"common_reference": {
46+
"reference": "global",
47+
"operator": "median"
48+
},
49+
"highpass_spatial_filter": {
50+
"n_channel_pad": 10,
51+
"n_channel_taper": null,
52+
"direction": "y",
53+
"apply_agc": true,
54+
"agc_window_length_s": 0.01,
55+
"highpass_butter_order": 3,
56+
"highpass_butter_wn": 0.01
57+
}
5658
},
59+
"custom_preprocessing_pipeline": null,
5760
"motion_correction": {
58-
"compute": true,
59-
"apply": false,
6061
"preset": "dredge_fast",
6162
"detect_kwargs": {},
6263
"select_kwargs": {},

.github/workflows/test_pipeline.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/test_pipeline_custom.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
branches: [main]
66
types: [synchronize, opened, reopened]
7+
8+
env:
9+
NXF_SYNTAX_PARSER: v1
10+
711
jobs:
812
test:
913
runs-on: ubuntu-latest

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ tests/.nfs*
1717
# User-specific files
1818
pipeline/nextflow_slurm_custom.config
1919
pipeline/capsule_versions_custom.env
20-
*.idea
20+
.idea
21+
.claude

docs/source/troubleshooting.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ This section provides solutions to common issues encountered while using the AIN
77
If you encounter a problem not listed here, please consider opening an issue on our GitHub repository.
88

99

10+
ERROR ~ Script compilation failed
11+
---------------------------------
12+
13+
The most recent versions of nextflow (v26.04.0) made some `strict syntax <https://docs.seqera.io/nextflow/strict-syntax>`_
14+
the default for nextflow scripts, causing the error ``Script compilation failed`` when running the pipeline.
15+
16+
While we resolve the compatibility issues with the new syntax, you can set the environment variable
17+
``NXF_SYNTAX_PARSER`` to ``v1`` to use the previous syntax parser:
18+
19+
.. note::
20+
21+
To make these changes persistent, you can add the following lines to your ``.bashrc`` or ``.bash_profile`` file:
22+
.. code-block:: bash
23+
24+
export NXF_SYNTAX_PARSER=v1
25+
26+
1027
NUMBA cache issue: ``RuntimeError: cannot cache function``
1128
----------------------------------------------------------
1229

@@ -28,6 +45,13 @@ To resolve this issue, you can create a folder where your user has write access
2845
`nextflow_slurm.config <https://github.com/AllenNeuralDynamics/aind-ephys-pipeline/blob/main/pipeline/nextflow_slurm.config#L120>`_
2946
file, so they will be automatically used automatically if defined.
3047

48+
49+
.. note.::
50+
51+
This error should not happen anymore with the latest versions of the containers, which do not run as root.
52+
See `this PR <https://github.com/AllenNeuralDynamics/aind-ephys-pipeline/pull/103>`_ for more details.
53+
54+
3155
``OSError: Read-only file system`` error
3256
----------------------------------------
3357

@@ -43,6 +67,11 @@ in the ``nextflow_slurm.config`` file:
4367
4468
// containerOptions = "--bind \$HOME:\$HOME"
4569
70+
.. note.::
71+
72+
This error should not happen anymore with the latest versions of the containers, which do not run as root.
73+
See `this PR <https://github.com/AllenNeuralDynamics/aind-ephys-pipeline/pull/103>`_ for more details.
74+
4675
4776
``OSError: Unable to synchronously open file``
4877
----------------------------------------------

tests/params_test.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"progress_bar": false,
1515
"mp_context": "spawn"
1616
},
17-
"filter_type": "bandpass",
18-
"remove_out_channels": false,
19-
"remove_bad_channels": false,
17+
"filter_type": "highpass",
18+
"remove_out_channels": true,
19+
"remove_bad_channels": true,
2020
"max_bad_channel_fraction": 0.5,
21-
"denoising_strategy": "destripe",
21+
"denoising_strategy": "cmr",
2222
"default_preprocessing_pipeline": {
2323
"phase_shift": {
2424
"margin_ms": 100.0

0 commit comments

Comments
 (0)