Docker image for PyhRF.
The following command runs a PyHRF analysis using a canonical HRF (--no-estimate-hrf
). For more examples of
pyhrf_jde_vem_analysis
, please refer to the PyhRF documentation.
docker run --rm \
-v <folder to save the outputs>:/output:rw \
-v <folder to inputs>:/inputs:ro \
-e LOCAL_USER_ID=`id -u $USER` \
pyhrf/pyhrf \
pyhrf_jde_vem_analysis --output /output --beta <beta value> --no-estimate-hrf --zero-constraint --drifts-type cos --parallel --log-level WARNING <dt value> /inputs/<mask file> /inputs/<paradigm file> /inputs/<bold image>
The following command allows to run the tests of PyHRF.
docker run --rm \
-v <folder to save the .coverage file>:/output:rw \
-e LOCAL_USER_ID=`id -u $USER` \
pyhrf/pyhrf \
bash -c "nosetests --with-doctest --with-coverage --cover-package=pyhrf -v -s pyhrf; cp .coverage /output"
The following commands allows to build and upload the pyhrf Docker image to the cloud.
- Go to the docker-pyhrf repository:
cd docker-pyhrf
- Build the image of the master branch:
docker build --build-arg PYHRF_BRANCH=master -t pyhrf/pyhrf .
- Log in to Docker Cloud:
docker login
- Push the image:
docker push pyhrf/pyhrf