Skip to content

Commit

Permalink
Merge pull request #93 from oesteban/enh/GenReportWithFullSample
Browse files Browse the repository at this point in the history
[ENH] Automatically generate report when mriqc is run with the full sample
  • Loading branch information
oesteban committed May 6, 2016
2 parents 3aa4938 + 459c63e commit dbefcdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion build/circle_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ set -e

if [[ $CIRCLE_NODE_INDEX -eq 0 ]]; then
docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch oesteban/mriqc -B /scratch/data/ds003_downsampled -d func -o outputs/ms-func/out -w outputs/ms-func/work
docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch --entrypoint="/usr/bin/run_mriqc_plot" oesteban/mriqc -d func -o outputs/ms-func/out -w outputs/ms-func/work
docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch oesteban/mriqc -B /scratch/data/ds003_downsampled -S $(seq -f '%02g' 01 05) -d anat -o outputs/ms-anat/out -w outputs/ms-anat/work
docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch --entrypoint="/usr/bin/run_mriqc_plot" oesteban/mriqc -d anat -o outputs/ms-anat/out -w outputs/ms-anat/work
fi
Expand Down
6 changes: 5 additions & 1 deletion mriqc/utils/mriqc_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @Author: oesteban
# @Date: 2015-11-19 16:44:27
# @Last Modified by: oesteban
# @Last Modified time: 2016-05-04 14:43:55
# @Last Modified time: 2016-05-06 11:14:22

"""
=====
Expand All @@ -19,6 +19,7 @@
from argparse import RawTextHelpFormatter
from nipype import config as ncfg

from mriqc.reports.generators import workflow_report
from mriqc.workflows import core as mwc
from mriqc import __version__

Expand Down Expand Up @@ -117,6 +118,9 @@ def main():

workflow.run(**plugin_settings)

if opts.subject_id is None:
workflow_report(dtype, settings)


if __name__ == '__main__':
main()

0 comments on commit dbefcdb

Please sign in to comment.