This function is used to write a set of weights
to a file and to set the file name argument for WeightFile in the sampletrees
settings object. The user can use default weights (if weightmat is
NULL) or they can specify alternative weights by providing
an argument to weightmat.The matrix weightmat must be a 2 column matrix of maximum 7 rows.
The first column contains the sampling probability for the proposal
distribution listed in the second column. The first column must sum
to 1. The second column will consist only of some subset of the numbers
1 through 7.
The default values for the sampling weights are:
haplotype data: (0.1,0.1,0.4,0.2,0.2) for update types 1-5
genotype data: (0.1,0.1,0.35,0.1,0.1,0.125,0.125) for update types 1-7