Good day Arman and beast group users,
Thank you for your suggestion. I have tried to follow your suggestion, but find myself freefalling down the Beast rabbit hole and I definitely require further assistance, please.
I have two questions:
1) Can the GTR model be applied to a generalDataType? As far as I can tell, the settings within this do not allow it (i.e. rateAG, rateAC etc.).
2) How does one set the parameters that are nested within the generalSubstitutionModel parameterisation? Below are further details to this question.
I have defined the generalDataType with the worst case scenario of intra-individual site polymorphisms (2ISPs) - I would reduce this on a dataset specific basis excluding any 2ISPs that aren't present in the dataset to avoid inferring rates for states that are not present.
<generalDataType id="twisp-informative-datatype">
<state code="A"/>
<state code="C"/>
<state code="G"/>
<state code="T"/>
<state code="Y"/>
<state code="R"/>
<state code="M"/>
<state code="S"/>
<state code="W"/>
<state code="K"/>
<state code="H"/>
<state code="V"/>
<state code="B"/>
<state code="D"/>
<state code="N"/>
<state code="-"/>
<state code="X"/>
<ambiguity code="?" states ="ACGT"/>
</generalDataType>
Here is the suggested generalSubstitutionModel...
<generalSubstitutionModel randomizeIndicator="true">
<generalDataType idref="twisp-informative-datatype"/>
<frequencies>
<frequencyModel idref="frequencyModel-twisp"/> <!-- how to define this? -->
</frequencies>
<rates>
<diagonalMatrix idref="diagonalMatrix-twisp"/> <!-- how to define this? -->
</rates>
</generalSubstitutionModel>
Below are the parameters referred to in the generalSubstitutionModel parameter above, plus any offshoots from these parameters. I cannot find any documentation as to what precisely these parameters mean or how to change them.
<!------------------------------------------------------------------------------------->
<frequencyModel normalize="true" dataType="codon-yeast">
<frequencies>
<compoundSymmetricMatrix idref="compoundSymmetricMatrix7"/>
</frequencies>
</frequencyModel>
<diagonalMatrix>
<designMatrix idref="designMatrix10"/>
</diagonalMatrix>
<designMatrix addIntercept="true" form="foo" colDimension="1" rowDimension="1">
<parameter idref="parameter8"/>
<compoundSymmetricMatrix idref="compoundSymmetricMatrix9"/>
<compoundSymmetricMatrix idref="compoundSymmetricMatrix6"/>
</designMatrix>
<parameter value="0.5 1.0" dimension="1" upper="0.5 1.0" lower="0.5 1.0"/>
<compoundSymmetricMatrix asCorrelation="true">
<diagonal>
<designMatrix idref="designMatrix9"/>
</diagonal>
<offDiagonal>
<compoundParameter idref="compoundParameter8"/>
</offDiagonal>
</compoundSymmetricMatrix>
<compoundParameter>
<designMatrix idref="designMatrix4"/>
</compoundParameter>
<!------------------------------------------------------------------------------------->
Thanks in advance for any help.
Regards,
Alastair