HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> Using HyPhy's predefined codon models
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1325077311

Message started by sspiel on Dec 28th, 2011 at 5:01am

Title: Using HyPhy's predefined codon models
Post by sspiel on Dec 28th, 2011 at 5:01am
Hello,

I am trying to run a likelihood analysis using the GY94_3x4 model matrix which comes with the hyphy package. Upon running my batch file, however, I always receive the error message as follows:

Error:
Operation 'MAccess' is not implemented/defined for a Number

Function call stack
1 : Branch  under condition ModelGeneticCode[h]==10 to 9 else 12
-------
2 : codonfreq=GUIBuildCodonFrequencies(observedFreq_outer)


I have tried several other codon models as well and the same error (more or less) is returned for each.

In my troubleshooting efforts, I tried to use a codon model formatted by the GUI rather than the ones in the trunk directory. Interestingly, I found that the "buildcodonfrequencies" function included in the model file that the GUI returns does not work but the other/standard buildcodonfrequencies model works fine with that matrix.

Any thoughts? I've attached my batch file as well.
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?action=downloadfile;file=dnds_globalgy94.bf (0 KB | )

Title: Re: Using HyPhy's predefined codon models
Post by Sergei on Jan 3rd, 2012 at 1:09pm
Hi there,

The models inside "SubstitutionModels" directory are only meant to work through the HyPhy GUI, which sets a lot of variables behind the scenes to make them work (sorry about the lack of documentation on this). I modified the file you include to work. The missing bits were:


  • The model definition expects to have a genetic code defined and stored in the variable ModelGeneticCode
  • The call to GUIBuildCodonFrequencies must follow the call to GUIPopulateModelMatrix


HTH,
Sergei


http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?action=downloadfile;file=dnds_globalgy94_001.bf (1 KB | )

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.