squirrel utilities

The squirrel command line program

The squirrel command line program allows converstion of DICOM to squirrel, BIDS to squirrel, modification of existing squirrel packages, and listing of information from packages.

Installing squirrel utilities

Download squirrel from https://github.com/gbook/squirrel/releasesarrow-up-right

sudo yum localinstall --nogpgcheck squirrel-xxx.xx.xxx-1.elx.x86_64.rpm
circle-info

Too many open files error

If you encounter an error "too many open files", or you are unable to write squirrel packages, try increasing the open files limit within Linux

# increase open file limit (temporarily for the current session)
ulimit -n 2048

# increase open file limit (permanently)
# append these lines to /etc/security/limits.conf
*               soft    nofile            2048
*               hard    nofile            2048

Command Line Usage

There are 5 tools available in the command line utility

  • info - view information about the contents of the package. This is the tool to use to view non-imaging data

  • extract - extract imaging data from the packge into a specified directory

  • modify - add, remove, or update objects within the package

  • bids2squirrel - attempt to convert a BIDS directory to a squirrel package

  • dicom2squirrel - create a squirrel package from a set of DICOM files or directories

Convert DICOM to squirrel

Convert BIDS to squirrel

Modify existing squirrel package

List information about a squirrel package

Last updated