More R: how best to store results for future use?

LabKey Support Forum (Inactive)
More R: how best to store results for future use? Ben Bimber  2010-03-18 10:54
Status: Closed
 
I'd like to create script so users can rapidly view family structure around some small number of index animals. There's R packages to do the pedigree plotting. There's also packages to calculate a matrix of family relationships, which is used to extract generations (ie. figure out which animals to include in my small family tree).

Calculating this matric takes time and it changes infrequently (gotta do it on the whole colony). It seems like this is a perfect case for a script that runs as a pipeline job. I have a script to calculate this matrix, and other scripts consume the result. Within labkey, what is the best way to store that matrix?

should I have the R script put it in the filesystem? if i have a view scheduled to run as a pipeline, does it somehow already make variables available to scripts that include them?

thanks.