generateS.Rd
Generate S matrix
generateS(gam, sample.weights, upperBound = 1)
the gam with genes*samples
the samples weights
clip the values greater than 1 to keep it bounded between 0 to 1
S the S matrix