Modify code: We will perform a number of coding exercises in this class. You will be given several population genetics modules written in R to work with in class. One take-home exercise will be to...

1 answer below »


Modify code:
We will perform a number of coding exercises in this class. You will be given several population genetics modules written in R to work with in class. One take-home exercise will be to modify the underlying code to do something unique.





Assignment: Take one of the 5 R modules we worked with in class – non-random mating, genetic drift, mutation, gene flow, or selection – and modify the code to create new output. This is an individual assignment and you should not discuss with peers. Code can be modified in any number of creative and interesting ways. Examples include things like





·
Adding additional parameters


·
Increasing variance in reproductive success


·
Combining drift and non-random mating


·
Adding multiple loci


·
Drastically changing or improving the output





You will turn in the assignment as a .R file. We will run every .R file to see what happens. Please describe at the top of the file what we should expect to see happen. All changes to code should be bracketed with comment lines (see below):






Original code






#========================================================#



Modified code goes here



#=========================================================#




If multiple blocks of code are changed throughout you should bracket each change as above. This will help me find where and how you changed your code.





Rubric:
The following rubric (or one similar to this) will be used. Note that creativity is emphasized over functionality. We are always available at office hours and after class if you would like to discuss your ideas or code. Keep in mind that because there are so many different ways to code things, two similar assignments will be suspicious (i.e., don’t plagiarize). You are strongly encouraged to use the web to learn about specific R commands, syntax, and plots.




Creative and works: 50/50


Creative and does not work: 45/50


Multiple basic changes (colors, shapes, plots etc.): 45/50


One basic change (e.g., changed colors of points): 35/50







Random tips:


· Work through code line by line to see what it is doing


· Make multiple copies of the .R files and don’t be afraid to “break” them or make then non-functional. The best way to learn in coding is by making things NOT work and then figuring out why.





Please upload your R file here (it will have the file extension .R). If you're familiar with markdown, knitted markdown files are also acceptable.


Please included your commented out name at the top of your submission. It might look like something like this:


### Recep Yildiz, Coding Assignment, BIO 580





Answered Same DayFeb 17, 2022

Answer To: Modify code: We will perform a number of coding exercises in this class. You will be given several...

Subhanbasha answered on Feb 17 2022
112 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here