To set up your environment to use treemix, use the module command:
module load treemix
See How to use the module command for further information.
To run treemix interactively on the cluster please request an interactive node with qrsh (see: How to Get and Interactive Session through UGE for further information), load treemix into your environment, and invoke treemix at the command line as needed.
To run treemix in batch on the cluster prepare a script to submit to the queue with the sequence of treemix commands needed (see: Running a Batch Job for further information). The script will need to contain setting up of the environment to use treemix (see How to use the module command for further information).