Spherotob / GAMO_public

Genetic Algorithm for Metabolic Optimization
MIT License
2 stars 0 forks source link

handle maximum gene knockout #1

Open Mzohrabi opened 4 years ago

Mzohrabi commented 4 years ago

Hi I have a question about, how do you handle the number of gene deletion in mutation phase, if the number of deleted genes exceeding the maximum number that user defines

Spherotob commented 3 years ago

Hi Mzohrabi, the number of deleted genes or reactions is always equal or less than the maximum number X. Less if a gene knockout occurs multiple times in a solution. Each solution, meaning a set of gene/reaction knockouts, is encoded in an binary format, so each of the X gene knockouts is encoded by a set of 0's and 1's. Only this binary is changed in the mutation phase. Thus, the number of knockouts stays the same.

I hope this (late) response is of help! Best Tobias