demianw / tract_querier

Implementation of the White Matter Query Language and associated tools for dMRI white matter tract extraction and analysis
Other
27 stars 27 forks source link

Adding wmql^T (roi_querier script) - No functionallity yet #48

Open gagdiez opened 4 years ago

gagdiez commented 4 years ago

This commit prepares the repository to welcome the new script "roi_querier". Some small errors were also fixed. The main changes are:

  1. The code that parses/transforms a query into a tree has been removed from scripts/tract_querier and made into a function: search_file_and_create_query_body. It is located in the file tract_querier/init.py. This allows us to share the query-parsing in both "roi_querier" and "tract_querier".

  2. The function to parse the queries now returns a "file not found" error when the file.qry does not exists. This is much more informative than the current "error in query file"

  3. The test were giving some encoding-related errors with the files freesurfer_queries_bsf2016*. This have been fixed.