Skip to content

Commit 0e6a972

Browse files
authored
Merge branch 'develop' into fix/rbc_atlas_2mm
2 parents 1f821b7 + 42be2b1 commit 0e6a972

14 files changed

+36
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

.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

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ 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+
## [v1.8.5]
18+
19+
### Added
20+
- Added the ability to downsample to 10K or 2K resolution for freesurfer runs
1821

1922
### Changed
2023
- Changed the 1mm atlases chosen in the rbc-options preconfig to the 2mm versions
2124

25+
### Fixed
26+
2227
## [v1.8.4] - 2022-06-27
2328

2429
### Added

CPAC/func_preproc/func_preproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def get_idx(in_files, stop_idx=None, start_idx=None):
574574
else:
575575
startidx = int(start_idx)
576576

577-
if (stop_idx == None) or (int(stop_idx) > (nvols - 1)):
577+
if (stop_idx in [None, "End"]) or (int(stop_idx) > (nvols - 1)):
578578
stopidx = nvols - 1
579579
else:
580580
stopidx = int(stop_idx)

CPAC/pipeline/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from itertools import chain, permutations
2121

2222
import numpy as np
23-
from voluptuous import All, ALLOW_EXTRA, Any, In, Length, Match, Optional, \
23+
from voluptuous import All, Capitalize, ALLOW_EXTRA, Any, In, Length, Match, Optional, \
2424
Range, Required, Schema
2525
from voluptuous.validators import ExactSequence, Maybe
2626

@@ -749,7 +749,7 @@ def _changes_1_8_0_to_1_8_1(config_dict):
749749
'run': bool,
750750
'truncation': {
751751
'start_tr': int,
752-
'stop_tr': Maybe(Any(int, 'End'))
752+
'stop_tr': Maybe(Any(int, All(Capitalize, 'End')))
753753
},
754754
'scaling': {
755755
'run': bool,

CPAC/surface/surf_preproc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def run_surface(post_freesurfer_folder,
4040
import subprocess
4141

4242
freesurfer_folder = os.path.join(freesurfer_folder, 'recon_all')
43+
4344

4445
# DCAN-HCP PostFreeSurfer
4546
# Ref: https://github.com/DCAN-Labs/DCAN-HCP/blob/master/PostFreeSurfer/PostFreeSurferPipeline.sh
@@ -111,6 +112,7 @@ def surface_connector(wf, cfg, strat_pool, pipe_num, opt):
111112
function=run_surface),
112113
name=f'post_freesurfer_{pipe_num}')
113114

115+
114116
surf.inputs.subject = cfg['subject_id']
115117

116118
surf.inputs.post_freesurfer_folder = os.path.join(cfg.pipeline_setup['working_directory']['path'],
@@ -141,10 +143,12 @@ def surface_connector(wf, cfg, strat_pool, pipe_num, opt):
141143

142144
node, out = strat_pool.get_data('freesurfer-subject-dir')
143145
wf.connect(node, out, surf, 'freesurfer_folder')
146+
144147

145148
node, out = strat_pool.get_data(restore)
146149
wf.connect(node, out, surf, 't1w_restore_image')
147-
150+
151+
148152
node, out = strat_pool.get_data(space_temp)
149153
wf.connect(node, out, surf, 'atlas_space_t1w_image')
150154

CPAC/surface/tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from CPAC.pipeline.cpac_pipeline import run_workflow
1010
from CPAC.utils.configuration import Configuration
1111

12-
12+
@pytest.mark.skip(reason='timing out for unrelated reasons')
1313
@pytest.mark.timeout(60)
1414
def test_duplicate_freesurfer(tmp_path):
1515
"""The pipeline should build fast if freesurfer is not self-duplicating"""

0 commit comments

Comments
 (0)