This datreant submodule adds a convenience CLI interface for Treant directories. It provides a easy way to filter directories based on tags and categories.
For more information on what datreant is and what it does, check out the official documentation.
If you want to work on the code, either for yourself or to contribute back to the project, clone the repository to your local machine with:
git clone https://github.com/datreant/datreant.cli.git cd datreant.cli python setup.py install
You should have a new command dtr available.
For example to look how many files are in each simulation of 1AKE that are created with gromacs one could use the following line, assuming 1AKE as tag and gromacs=2016.4 as a categories key:value pair:
for f in $(dtr search simulations --tags=1AKE --categories gromacs:2016.4) do ls $l | wc -l done
This project is still under heavy development, and there are certainly rough edges and bugs. Issues and pull requests welcome!