templateflow / python-client

A python client to query TemplateFlow via pyBIDS
https://templateflow.org/python-client/
Apache License 2.0
8 stars 12 forks source link

[ENH] Use a BIDSLayout to index TemplateFlow #6

Closed oesteban closed 5 years ago

oesteban commented 5 years ago

Uses pybids to access the data (fixes #4).

Additionally, resorts to datalad iff there are missing files (rel. #5). I will not close that one because this is not really a datalad-free fallback.

effigies commented 5 years ago

@oesteban This looks reasonable to me. If you can get Anderson to update to this and pull down a tarball, that will probably be enough to check the hardest case.

oesteban commented 5 years ago

I'm going to merge and give #5 a go before bothering @andersonwinkler. Although I'm tagging him just in case he would like to try now.

Steps would be:

export $TEMPLATEFLOW_HOME=$HOME/.cache/templateflow
mkdir -p $TEMPLATEFLOW_HOME
curl "https://files.osf.io/v1/resources/ue5gx/providers/osfstorage/?zip=" -o templateflow.
unzip templateflow.zip -d $TEMPLATEFLOW_HOME
pip install git+https://github.com/templateflow/python-client.git@c710e810df606bcaa9e476dc88847b3323757b23#templateflow-0.0.4

If you change $TEMPLATEFLOW_HOME to anything different from $HOME/.cache/templateflow, then make sure that the TEMPLATEFLOW_HOME environment variable is defined and pointing to where you unziped the template package.

andersonwinkler commented 5 years ago

Thanks @oesteban. I'll give it a try for the next time we need to run FMRIPREP (soon I believe, in a few weeks). Thanks thanks! Anderson