Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy custom templates into the TEMPLATEFLOW_HOME directory #12

Open
oesteban opened this issue May 15, 2019 · 0 comments
Open

Copy custom templates into the TEMPLATEFLOW_HOME directory #12

oesteban opened this issue May 15, 2019 · 0 comments

Comments

@oesteban
Copy link
Member

oesteban commented May 15, 2019

Allow custom templates via indexing arbitrary paths.

EDITED

Instead of complicated operations and symlinks, add some kind of install(custom_path, template_id) method to the API, so that the user can insert their templates into the TEMPLATEFLOW_HOME folder.

Then, the names are checked with PyBIDS, and all the NIfTI files are "sanitized" with the appropriate orientation and data types.

We also need to be careful with the update() method, and make sure that these templates are never deleted, even after update(local=False, overwrite=True)

This will be useful in the context of fMRIPrep, as now we will be able to either:

  1. Ask the user to install the template before running fmriprep (which could use of a command line utility)
  2. Add a flag pointing to the path.
@oesteban oesteban changed the title Add custom paths to indexes Copy custom templates into the TEMPLATEFLOW_HOME directory Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant