#Note that Plink files "10SNPs.ped", "10SNPs.map" and also "Locations.txt"
#are included in the data folder of the OriGen package with ".txt" appended to the Plink files.
#Please remove ".txt" and navigate to the appropriate location
#before testing the following commands.
#Note that this was done to allow inclusion of the test data in the package.
trials=ConvertPEDData("10SNPs","Locations.txt")
str(trials)
MaxGridLength=20
RhoParameter=10
trials2=FitOriGenModel(trials$DataArray,trials$SampleCoordinates,
MaxGridLength,RhoParameter)
PlotAlleleFrequencySurface(trials2)
Run the code above in your browser using DataLab