Distruct is installed on the HPCC and can be accessed using:
It is important to note that in order to use distruct, a parameter file needs to be read which defaults to the name "drawparams". The distruct application assumes by default, that this file is located in the current directory. Therefore, you can address this in a couple of different ways:
By Program Flag
Use the "-d" program flag to specify the location and name of the parameter file you wish to use. For example:
You can retrieve a copy of the default parameter file and place it in your working directory. Make whatever modifications you'd like to this file, and then run distruct. You can find a copy here:
You can synch the entire installation directory to your home, research or scratch space:
The location and names of Q-Matrix files are specified in the distruct configuration file. If you use the default "drawparams" file, note that distruct will look for the Q-Matrix files "casia.popq" and "casia.indivq" in the current directory. Once again, you can address this issue by either:
- Changing the configuration file to point to the correct location of these files
- Copying these files to your working directory from /mnt/research/common-data/Bio/distruct
- Synching the entire installation directory to your working directory.
- Passing the locations of these files into distruct via the command line
An example of #4 above would be the following:
In this example, we use a copy of the configuration file in our home directory, and point to the installation directory for the Q-Matrix files. Several of the parameters contained in the distruct configuration file can be overridden on the command line.
For more information, see the distruct user documentation.