{
    "name": "m3",
    "synonyms": ["M3"],
    "result_type": "MixtureModel[Codons[a]]",
    "call": "SModel.m3[submodel,ps,omegas]",
    "args": [
        {
            "arg_name": "submodel",
            "arg_type": "Function[Double,RevCTMC[a]]",
            "default_value": "function[w,gy94[omega=w]]",
	    "description": "The model as a function of dN/dS"
        },
        {
            "arg_name": "ps",
            "arg_type": "List[Double]",
            "default_value": "~dirichlet[@n,2]",
	    "description": "The frequency of each omega"
        },
        {
            "arg_name": "omegas",
            "arg_type": "List[Double]",
            "default_value": "~iid[@n,uniform[0,1]]",
	    "description": "The omega (i.e. dN/dS) values"
        },
        {
            "arg_name": "n",
            "arg_type": "Int",
            "default_value": "4",
	    "description": "The number of omega categories, if not specified"
        }
    ],
    "title": "The M3 model",
    "description": "A dN/dS model with heterogenous conserved dN/dS values among sites.",
    "citation": {"type": "article",
		 "title": "Codon-Substitution Models for Heterogeneous Selection Pressure at Amino Acid Sites",
		 "year": "2000",
		 "author": [{"name": "Yang, Ziheng"}, {"name": "Nielsen, Rasmus"}, {"name": "Goldman, Nick"},{"name": "Pederson, Anne-Mette Krabbe"}],
		 "journal": {"name": "Genetics", "volume": "155", "number": "1", "pages": "431--449"},
		 "link": [{"url":"http://www.genetics.org/content/155/1/431.full"}]
		},
    "examples": ["function[w,gy94[omega=w,pi=f1x4]]+m3","function[w,mg94[omega=w]]+m3","function[w,fMutSel0[omega=w]]+m3"],
    "extract": "all",
    "see": ["m3_test"]
}
