CartwrightLab / dawg

Simulating Sequence Evolution
GNU General Public License v2.0
11 stars 3 forks source link

Allow user to specify root sequence #35

Closed zmertens closed 6 years ago

zmertens commented 7 years ago
zmertens commented 7 years ago

How does Dawg currently handle the root sequence? I thought it might be mocked in 'matic.cpp' but could not find it.

reedacartwright commented 7 years ago

Each matic_section has a root_model rut_mod member variable.

https://github.com/reedacartwright/dawg/blob/9c44bdc8cb1ebbfca4cddf4976841d734cf09288/src/include/dawg/matic.h#L53

https://github.com/reedacartwright/dawg/blob/9c44bdc8cb1ebbfca4cddf4976841d734cf09288/src/lib/matic.cpp#L65

zmertens commented 6 years ago

Where are the root sequence and rates used? Are they part of the sequence structure?

reedacartwright commented 6 years ago

Each residue in a sequence has a base and a rate associated with it. do_stat generates these from a model: https://github.com/reedacartwright/dawg/blob/9c44bdc8cb1ebbfca4cddf4976841d734cf09288/src/include/dawg/root.h#L41-L42

The other do_ functions will need to either generate them from a model or use the values specified by the user.

zmertens commented 6 years ago

The other do_ functions will need to either generate them from a model or use the values specified by the user.

Oh, that's straightforward. I saw the rate_cat but I confused base and root_seq.

reedacartwright commented 6 years ago

Fixed in #36