HyPhy message board | |
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> Joining low-freq states in just one class http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1165874372 Message started by Jose_Patane on Dec 11th, 2006 at 1:59pm |
Title: Joining low-freq states in just one class Post by Jose_Patane on Dec 11th, 2006 at 1:59pm
Hi all,
I'm trying to develop a 9x9 state matrix , to work with stems in RNAs... I want to accommodate the not-so-frequent states in just one, separate, class... but so far I've only been able to define 16x16 models in HyPhy. How can I achieve that? I don't know whether the following may interfere with setting up such model or not, but no class have 0 frequency (meaning, I can't simply discard one or more classes from the analyses). |
Title: Re: Joining low-freq states in just one class Post by Sergei on Dec 12th, 2006 at 6:03am
Dear Jose,
There should be no difficulty in defining a 9x9 matrix (by simply writing it down) in the batch language code. However you need to 'alias' 7 low-frequency states into 1, which, unfortunately is tedious to do in the current implementation (i.e. one needs to create a temporary dataset in memory which maps 7 states down to 1). I'll write a little example in a short while on how to do that (assuming the RNA alphabet). Cheers, Sergei |
Title: Re: Joining low-freq states in just one class Post by Jose_Patane on Dec 12th, 2006 at 7:05am
Thanks for the attention, Sergei... I'll wait until your example is ready then. Cheers
|
Title: Re: Joining low-freq states in just one class Post by Sergei on Dec 13th, 2006 at 8:30am
Dear Jose,
Here's a code example for you. You should be able to define the map you need to and after that - the model you need to. Cheers, Sergei Code (] DataSet ds = ReadDataFile ("../DistributionPackages/data/StemRNA.nex"); DataSetFilter rna16filter = CreateFilter (ds,2); stateMap = {16,1}; /* how to map the states down, from AA,AC,...UU to a smaller state the example here maps all unpaired states down to 1 */ stateMap [0):
|
Title: Re: Joining low-freq states in just one class Post by Jose_Patane on Dec 16th, 2006 at 5:14am
Once again, it helped me a lot... cheers
|
HyPhy message board » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2024. All Rights Reserved. |