Skip to content

Commit c6ec0a0

Browse files
authored
Merge branch 'develop' into feature/total_readout_time
2 parents 8301e3c + 37a6874 commit c6ec0a0

File tree

72 files changed

+4159
-3915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+4159
-3915
lines changed

.github/Dockerfiles/C-PAC.develop-ABCD-HCP-bionic.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM ghcr.io/fcp-indi/c-pac/stage-base:abcd-hcp-v1.8.4
1+
FROM ghcr.io/fcp-indi/c-pac/stage-base:abcd-hcp-v1.8.5.dev
22
LABEL org.opencontainers.image.description "Full C-PAC image with software dependencies version-matched to [ABCD-HCP BIDS fMRI Pipeline](https://github.com/DCAN-Labs/abcd-hcp-pipeline/blob/e480a8f99534f1b05f37bf44c64827384b69b383/Dockerfile)"
33
USER root
44

55
# install C-PAC
6-
COPY dev/docker_data/default_pipeline.yml /cpac_resources/default_pipeline.yml
76
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
87
COPY . /code
98
RUN pip install -e /code

.github/Dockerfiles/C-PAC.develop-bionic.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM ghcr.io/fcp-indi/c-pac/stage-base:standard-v1.8.4
1+
FROM ghcr.io/fcp-indi/c-pac/stage-base:standard-v1.8.5.dev
22
LABEL org.opencontainers.image.description "Full C-PAC image"
33
USER root
44

55
# install C-PAC
6-
COPY dev/docker_data/default_pipeline.yml /cpac_resources/default_pipeline.yml
76
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
87
COPY . /code
98
RUN pip install -e /code

.github/Dockerfiles/C-PAC.develop-fMRIPrep-LTS-xenial.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM ghcr.io/fcp-indi/c-pac/stage-base:fmriprep-lts-v1.8.4
1+
FROM ghcr.io/fcp-indi/c-pac/stage-base:fmriprep-lts-v1.8.5.dev
22
LABEL org.opencontainers.image.description "Full C-PAC image with software dependencies version-matched to [fMRIPrep LTS](https://reproducibility.stanford.edu/fmriprep-lts#long-term-support-lts)"
33
USER root
44

55
# install C-PAC & set up runscript
6-
COPY dev/docker_data/default_pipeline.yml /cpac_resources/default_pipeline.yml
76
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
87
COPY . /code
98
RUN pip install -e /code

.github/Dockerfiles/Ubuntu.bionic-non-free.Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
FROM ghcr.io/fcp-indi/c-pac_templates:latest as c-pac_templates
12
FROM neurodebian:bionic-non-free AS dcan-hcp
23

4+
35
ARG DEBIAN_FRONTEND=noninteractive
46

57
# Adding DCAN dependencies & HCP code
@@ -145,10 +147,15 @@ RUN conda update conda -y && \
145147
git lfs install
146148

147149
# Installing C-PAC templates and atlases
148-
COPY --from=ghcr.io/fcp-indi/c-pac_templates:latest /cpac_templates /cpac_templates
150+
COPY --from=c-pac_templates /cpac_templates /cpac_templates
149151
COPY --from=dcan-hcp /opt/dcan-tools/pipeline/global /opt/dcan-tools/pipeline/global
150152
COPY --from=ghcr.io/fcp-indi/c-pac/neuroparc:v1.0-human /ndmg_atlases /ndmg_atlases
151153

154+
# Installing surface files for downsampling
155+
COPY --from=c-pac_templates /opt/dcan-tools/pipeline/global/templates/standard_mesh_atlases/ /opt/dcan-tools/pipeline/global/templates/standard_mesh_atlases/
156+
COPY --from=c-pac_templates /opt/dcan-tools/pipeline/global/templates/Greyordinates/ /opt/dcan-tools/pipeline/global/templates/Greyordinates/
157+
158+
152159
ENTRYPOINT ["/bin/bash"]
153160

154161
# Link libraries for Singularity images

.github/Dockerfiles/Ubuntu.xenial-20200114.Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
FROM ghcr.io/fcp-indi/c-pac_templates:latest as c-pac_templates
12
FROM nipreps/fmriprep:20.2.1 as fmriprep
23
FROM ubuntu:xenial-20200114 AS dcan-hcp
34

@@ -156,9 +157,13 @@ RUN pip install -r /opt/requirements.txt
156157
RUN pip install xvfbwrapper
157158

158159
# install cpac templates
159-
COPY --from=ghcr.io/fcp-indi/c-pac_templates:latest /cpac_templates /cpac_templates
160+
COPY --from=c-pac_templates /cpac_templates /cpac_templates
160161
COPY --from=dcan-hcp /opt/dcan-tools/pipeline/global /opt/dcan-tools/pipeline/global
161162

163+
# Installing surface files for downsampling
164+
COPY --from=c-pac_templates /opt/dcan-tools/pipeline/global/templates/standard_mesh_atlases/ /opt/dcan-tools/pipeline/global/templates/standard_mesh_atlases/
165+
COPY --from=c-pac_templates /opt/dcan-tools/pipeline/global/templates/Greyordinates/ /opt/dcan-tools/pipeline/global/templates/Greyordinates/
166+
162167
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
163168
RUN apt-get install git-lfs
164169
RUN git lfs install

.github/workflows/check_updated_version.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ jobs:
4444
VERSION=$(python -c "from info import __version__; print('.'.join(('.'.join(__version__[::-1].split('-')[1].split('.')[1:])[::-1], __version__.split('-')[1])) if '-' in __version__ else __version__)")
4545
cd ..
4646
echo "v${VERSION}" > version
47-
sed -i -r "s/^(# [Vv]ersion ).*$/# Version ${VERSION}/g" dev/docker_data/default_pipeline.yml
4847
find ./CPAC/resources/configs -name "*.yml" -exec sed -i -r "s/^(# [Vv]ersion ).*$/# Version ${VERSION}/g" {} \;
49-
git add version CPAC/resources/configs dev/docker_data/default_pipeline.yml
48+
git add version CPAC/resources/configs
5049
if [[ ! -z $(git diff origin/${GITHUB_BRANCH}) ]]
5150
then
5251
git commit -m ":bookmark: Update version to ${VERSION} ($COMMIT_MESSAGE)"

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ develop-eggs
1717
.installed.cfg
1818
.env*
1919

20-
# Copy from packaging
21-
CPAC/resources/configs/default_pipeline.yml
22-
2320
# Installer logs
2421
pip-log.txt
2522

.pylintrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,18 +428,25 @@ function-naming-style=snake_case
428428
# Good variable names which should always be accepted, separated by a comma.
429429
good-names=c,
430430
e,
431+
f,
431432
i,
432433
j,
433434
k,
434435
ex,
435436
nb,
436437
Run,
438+
TR,
439+
v,
437440
wf,
438441
_,
439442

440443
# Good variable names regexes, separated by a comma. If names match any regex,
441444
# they will always be accepted
442-
good-names-rgxs=^_version_(extra|m[a-n]{2}[or]{2})$ # version parts in info.py
445+
good-names-rgxs=^_version_(extra|m[a-n]{2}[or]{2})$, # version parts in info.py
446+
.*EPI.*,
447+
.*TE.*,
448+
.*T1.*,
449+
.*T2.*
443450

444451
# Include a hint for the correct naming format with invalid-name.
445452
include-naming-hint=yes

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,29 @@ All notable changes to this project will be documented in this file.
1414
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1515
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1616

17-
## unreleased
17+
## [unreleased]
1818

1919
### Added
20+
- Added the ability to downsample to 10K or 2K resolution for freesurfer runs
2021
- Added the ability to ingress TotalReadoutTime from epi field map meta-data from the JSON sidecars.
2122
- Added the ability to use TotalReadoutTime of epi field maps in the calculation of FSL topup distortion correction.
23+
- Difference method (``-``) for ``CPAC.utils.configuration.Configuration`` instances
24+
25+
### Changed
26+
- Added a level of depth to `working` directories to match `log` and `output` directory structure
27+
- Renamed participant-pipeline-level `output` directory prefix to `pipeline_` to match `log` and `working` paths
28+
- Changed the 1mm atlases chosen in the rbc-options preconfig to the 2mm versions
29+
- For Nilearn-generated correlation matrices, diagonals are now set to all `1`s (were all `0`s)
30+
- Added ability to apply nusiance correction to template-space BOLD images
31+
- Removed ability to run single-step-resampling on motion-corrected BOLD data
32+
- Moved default pipeline config into directory with other preconfigs
33+
- Added crash messages from during and before graph building to logs
34+
- Added data-config-specific hash string to C-PAC-generated config files
35+
- Updated `rbc-options` preconfig to use `fmriprep-options` preprocessing
2236

2337
### Fixed
38+
- Fixed [bug](https://github.com/FCP-INDI/C-PAC/issues/1795) that was causing `cpac run` to fail when passing a manual random seed via `--random_seed`.
39+
- Replaces ``DwellTime`` with ``EffectiveEchoSpacing`` for FSL usage of the term
2440
- Fixed an issue that was causing some epi field maps to not be ingressed if the BIDS tags were not in the correct order.
2541

2642
## [v1.8.4] - 2022-06-27

CPAC/alff/alff.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ def alff_falff(wf, cfg, strat_pool, pipe_num, opt=None):
246246
"switch": ["run"],
247247
"option_key": "None",
248248
"option_val": "None",
249-
"inputs": [["desc-cleaned_bold", "desc-brain_bold", "desc-preproc_bold",
250-
"bold"],
249+
"inputs": [["desc-cleanedNofilt_bold", "desc-brain_bold",
250+
"desc-preproc_bold", "bold"],
251251
"space-bold_desc-brain_mask"],
252252
"outputs": ["alff",
253253
"falff"]}
@@ -262,7 +262,7 @@ def alff_falff(wf, cfg, strat_pool, pipe_num, opt=None):
262262
alff.get_node('hp_input').iterables = ('hp', alff.inputs.hp_input.hp)
263263
alff.get_node('lp_input').iterables = ('lp', alff.inputs.lp_input.lp)
264264

265-
node, out = strat_pool.get_data(["desc-cleaned_bold", "desc-brain_bold",
265+
node, out = strat_pool.get_data(["desc-cleanedNofilt_bold", "desc-brain_bold",
266266
"desc-preproc_bold", "bold"])
267267
wf.connect(node, out, alff, 'inputspec.rest_res')
268268

0 commit comments

Comments
 (0)