Week 4&5: Milestone

Apr 09, 2021

Hi guys, welcome back to my blog! I hope all of you had a great Spring break! In the past 2 weeks I finished the transcription of the MATLAB program into python. I also started outlining and writing my final paper, which will discuss the effectiveness of population genetic simulations.

Today I want to mainly talk about the most important aspect in our program about population of clonal plants: the grids and matrices used in it. No, not those fancy things we learned in linear algebra, instead, they are more like a map or a data base. Let me explain, some grids in the program could be imagined as maps because we are imagining them as the field that these plants physically exist on, with each box on the grid representing the location of one plant. In this way, we could easily quantify the distance between potential mating plants (whose behavior see last post) and thus find out if their mate is successful or not (if they are too far away they can’t mate). We can also use this grid to easily represent which part of the field is empty and see if the surrounding areas have living plants that can re-habitat that empty spot.

The second type of grids are harder to quantify, but they are 2d or 3d grids to store all sorts of data generated, they kind of act like data bases to store data for times needed. When functions are called, they will go through each location on these grids and access or modify the data at those locations, generating new data, which might be stored back in the same grid or into a new data grid. For example, when needed to store alleles for each plant in the field, a 3d grid is used with 3 sides being x-location, y-location, and locus of that allele in the plant’s gene pool.

These grids/lists/arrays/matrices, however you want to call them, are therefore very important in this program.

I am working on debuging this program now and will soon move on to the next part of this project, stay tuned!


One Reply to “Week 4&5: Milestone”

  1. Peter L. says:

    Fancy stuff! Congrats on finishing the MATLAB transcription. I didn’t know matrices can be applied this way in biology! Hope they’re not too hard to deal with in bio , keep up the good work! (Btw hold Windows key and ; for emojis :))

Leave a Reply