HyPhy message board | |
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy feedback >> observed frequencies http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1176228312 Message started by jxn on Apr 10th, 2007 at 11:05am |
Title: observed frequencies Post by jxn on Apr 10th, 2007 at 11:05am
hi, I am just starting Hyphy to define a model
for the vector obsFreqs, how can i define it? here is my code REVRateMatrix = [*,a,b,c}{a,*,d,e}{b,d,*,f}{c,e,f,*]; Model REV = (REVRateMatrix, obsFreq); Thanks a lot. |
Title: Re: observed frequencies Post by Sergei on Apr 10th, 2007 at 11:28am
Dear jxn,
You can use HarvestFrequencies to compute frequencies from the data (take a look at Examples/SimpleAnalyses/F81.bf in the HyPhy directory for a very basic example), or you can define it by hand, e.g. [code] obsFreq = [0.4}{0.2}{0.2}{0.2] [/code] Cheers, Sergei |
Title: Re: observed frequencies Post by jxn on Apr 10th, 2007 at 11:40am
Sergei, thank you for your reply.
I did put HarvestFrequencies in my code before. but it didn't work Error:obsFreq has not been defined prior to the call to Model = ... Current BL Command:Define the model REV using transition matrix REVRateMatrix and equilibrium frequencies.obsFreq my code ------------------------------------- DataSet myData = ReadDataFile ("/home/cmei/HyPhy/Hominoid.txt"); DataSetFilter myFilter = CreateFilter (myData,1); HarvestFrequencies (obsFreqs, myFilter, 1, 1, 1); REVRateMatrix = [*,a,b,c}{a,*,d,e}{b,d,*,f}{c,e,f,*]; Model REV = (REVRateMatrix, obsFreq); Tree myTree = (Or((Mc,Gb)(Hm(Gr(Ch,Bo))))); LikelihoodFunction theLikFun = (myFilter, myTree, obsFreqs); Optimize (paramValues, theLikFun); fprintf (stdout, theLikFun); ------------------------------- Maybe i had other problems. any specific struture of the sequence data in the data file?can it be .txt? and should the species name start with #? Thank you so much |
Title: Re: observed frequencies Post by Sergei on Apr 10th, 2007 at 12:19pm
Dear jxn,
You have a typo in [code]Model REV = (REVRateMatrix, obsFreq); [/code] - the second argument should read obsFreqs Cheers, Sergei |
HyPhy message board » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2024. All Rights Reserved. |