PRIMUS-2.8.pl is a stand alone perl script that can be run on the commandline. For documentation and usage type:
perl PRIMUS-2.8.pl -help
or read the PRIMUS_documentation file.
RUNNING EXAMPLE DATA
Inside the example_data directory there are four files:
Here are the commands to run the example data.
perl PRIMUS-2.8.pl -input ../example_data/example.genome
There should be standard output to the terminal window that looks like this:
Trait file: size
Relatedness_file: ../example_data/example.genome
Threshold: 0.1
Selection criteria are based on the following:
size
Writing results files to ../example_data/example.genome_results/
Loading data...
Loading trait data: size
done.
colapsing networks...
done.
Checking for large networks...
done.
writing out independent set...
done.
and results files should have been written to "PRIMUS/example_data/example.genome_results/". There should be 3 files in this directory: example.genome_maximum_independent_set, example.genome_network7.dot, and example.genome_networks
The maximum set of unrelated or independent individuals is in example.genome_maximum_independent_set, and it should have samples 56, 57, 58, and 61. This is the largest set of unrelated individuals in this pedigree. This set contains 3 unaffected individuals and 1 affected individual.
perl PRIMUS-2.8.pl -input ../example_data/example.genome -ped ../example_data/example.ped
You should see that the selection criteria has changed from
Selection criteria are based on the following:
size
and is now
Selection criteria are based on the following:
../example_data/example.ped
size
You should also see that the file example.genome_maximum_independent_set is different. It should contain sample 61, 70, and 58 (2 affecteds and 1 unaffected).
This weighting criteria sacrificed the maximum size of the unrelated set to maximize the number of affected individuals.
perl PRIMUS-2.8.pl -input ../example_data/example.genome -trait size -ped ../example_data/example.ped
By putting the "-trait size" option first, it will first weight on size and then the ped file's affected status column.
Notice the selection criteria change
Selection criteria are based on the following:
size
../example_data/example.ped
This will produce the same results as example run 1.
perl PRIMUS-2.8.pl -input ../example_data/example.genome -low/btrait ../example_data/example.btrait
will select an unrelated set of idividuals that maximizes the number of individuals with a btrait = 2.
or
perl PRIMUS-2.8.pl -input ../example_data/example.genome -high/btrait ../example_data/example.btait
will select an unrelated set of idividuals that maximizes the number of individuals with a btrait = 1.
perl PRIMUS-2.8.pl -input ../example_data/example.genome -low/qtrait ../example_data/example.qtrait
The quantitative weighting method is only able to weight as a secondary weighting criteria, meaning that you must weight by size or a binary trait first.
If the only weighting trait provided is a qtrait (like in the example above), the program will weight for size first, and then the qtrait.
For this particular example, weighting by a qtrait affect the results because there is a single maximum set, and that set will be selected regarless of weighting.
However, in family networks where there are multiple maximum sets, it will select the one with the lowest average qtrait values.
You can also do the following command if you wish to weight differently using the qtrait:
perl PRIMUS-2.8.pl -input ../example_data/example.genome -high/qtrait ../example_data/example.qtrait
perl PRIMUS-2.8.pl -input ../example_data/example.genome -tails/qtrait ../example_data/example.qtrait
perl PRIMUS-2.8.pl -input ../example_data/example.genome -mean/qtrait ../example_data/example.qtrait
perl PRIMUS-2.8.pl -input ../example_data/example.genome -5/qtrait ../example_data/example.qtrait
perl PRIMUS-2.8.pl -input ../example_data/example.genome -high/btrait ../example_data/example.btrait -low/qtrait ../example_data/example.qtrait