Difference between revisions of "BIO Assignment Week 1"
m |
m |
||
(33 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<div class="b1"> | <div class="b1"> | ||
Assignment for Week 1<br /> | Assignment for Week 1<br /> | ||
− | <span style="font-size: 70%">Wiki editing, Chimera and R</span> | + | <span style="font-size: 70%">Preparations: Wiki editing, Chimera and R</span> |
</div> | </div> | ||
+ | <table style="width:100%;"><tr> | ||
+ | <td style="height:30px; vertical-align:middle; text-align:left; font-size:80%;"> </td> | ||
+ | <td style="height:30px; vertical-align:middle; text-align:right; font-size:80%;">[[BIO_Assignment_Week_2|Assignment 2 >]]</td> | ||
+ | </tr></table> | ||
− | + | {{Template:Inactive}} | |
− | {{Template: | ||
Concepts and activities (and reading, if applicable) for this assignment will be topics on next week's quiz. | Concepts and activities (and reading, if applicable) for this assignment will be topics on next week's quiz. | ||
Line 18: | Line 21: | ||
In this assignment you will: | In this assignment you will: | ||
− | * familiarize yourself with basic Wiki editing on the [http://biochemistry.utoronto.ca | + | * familiarize yourself with basic Wiki editing on the [http://steipe.biochemistry.utoronto.ca/abc/students '''Student Wiki''']; |
− | * install the | + | * install the statistics workbench '''R''', and the RStudio user interface, and work through parts of an introductory tutorial. |
− | |||
+ | Caution: this is a lengthy assignment and can't be done in one day. Work on it every day, or better every morning and evening. A lot of this has to do with first steps of learning the '''R''' programming language and you need constant repetition to bring this material into active memory. Cramming everything in a single, desperate effort makes you forget things quickly and is a waste of your time. | ||
− | + | {{Vspace}} | |
==Wiki== | ==Wiki== | ||
− | Collaboration is a common theme for modern lab work and a Wiki is a great way to share and seamlessly update information in groups - or just for yourself. Probably the most sophisticated Wiki software is MediaWiki, a set of PHP scripts that is under continuous development by the Wikimedia foundation; it is the same software that runs Wikipedia. This is open source, free software that is easy to install, is well documented and requires very little resources other than a machine that runs a {{WP|MySQL}} database server and an {{WP|Apache HTTP Server|Apache}} Webserver. Numerous extensions exist (and extensions are not hard to write); they enhance the already rich functionality. But let's start with small steps. | + | Collaboration is a common theme for modern lab work and a Wiki is a great way to share and seamlessly update information in groups - or just for yourself. Probably the most sophisticated Wiki software is MediaWiki, a set of PHP scripts that is under continuous development by the Wikimedia foundation; it is the same software that runs Wikipedia. This is open source, free software that is easy to install, is well documented and requires very little resources other than a machine that runs a {{WP|MySQL}} database server and an {{WP|Apache HTTP Server|Apache}} Webserver. Numerous extensions exist (and extensions are not hard to write); they enhance the already rich functionality. But let's start with small steps. I will create an account for you on the Student Wiki, and I have configured the Wiki so that |
* only logged in users can view the pages; | * only logged in users can view the pages; | ||
* all logged in users can create and edit pages at will. | * all logged in users can create and edit pages at will. | ||
Line 34: | Line 37: | ||
{{task| | {{task| | ||
− | * Access the [http://biochemistry.utoronto.ca | + | * Access the [http://steipe.biochemistry.utoronto.ca/abc/students '''Student Wiki]; |
* log in and navigate to your user page; | * log in and navigate to your user page; | ||
* open the "Help" link in the left-hand sidebar in a separate tab; | * open the "Help" link in the left-hand sidebar in a separate tab; | ||
Line 41: | Line 44: | ||
** enter your name, | ** enter your name, | ||
** your major(s), specialist program, year of study - or your lab and thesis theme if you are a graduate student; | ** your major(s), specialist program, year of study - or your lab and thesis theme if you are a graduate student; | ||
− | ** and your eMail address. | + | ** and your eMail address. <small>I use this information a lot when I need to contact students, so make sure it is correct and current</small>. |
** Add a category tag to your User page for this year's BCH441 course. <small>All pages with this tag are accessible via the link in the sidebar.</small> | ** Add a category tag to your User page for this year's BCH441 course. <small>All pages with this tag are accessible via the link in the sidebar.</small> | ||
Line 50: | Line 53: | ||
* Play around some more. Feel free to ask how to go about achieving a particular effect that you may have seen elsewhere. | * Play around some more. Feel free to ask how to go about achieving a particular effect that you may have seen elsewhere. | ||
− | + | For next week, you should be comfortable with the following mark-up conventions and concepts: | |
* Login and accessing your user page; | * Login and accessing your user page; | ||
* viewing a page's history; | * viewing a page's history; | ||
Line 56: | Line 59: | ||
* "signing" your name; | * "signing" your name; | ||
* creating internal and external links; | * creating internal and external links; | ||
− | * creating | + | * creating section headers on a page on multiple levels; |
* reverting a changed page to an earlier version; | * reverting a changed page to an earlier version; | ||
* creating a new page (as a subpage of an existing page); | * creating a new page (as a subpage of an existing page); | ||
Line 66: | Line 69: | ||
}} | }} | ||
− | + | {{Vspace}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=='''R'''== | =='''R'''== | ||
Line 101: | Line 75: | ||
{{#lst:R|intro}} | {{#lst:R|intro}} | ||
− | '''R''' is | + | Learning to work with '''R''' code and an introduction to programming in '''R''' is one focus of the course. |
{{task| | {{task| | ||
* Access the [[R tutorial|'''R tutorial''']] on this site. | * Access the [[R tutorial|'''R tutorial''']] on this site. | ||
− | * Work through the sections [[R tutorial# | + | * Work carefully through the following sections: |
+ | **[[R tutorial#The_environment|'''The environment''']]; | ||
+ | **[[R tutorial#Simple commands|'''Simple commands''']]; | ||
+ | **[[R tutorial#Scalar data|'''Scalar data''']]; | ||
+ | **[[R tutorial#Vectors|'''Vectors''']]; | ||
+ | **[[R tutorial#Matrices|'''Matrices''']]; | ||
+ | **[[R tutorial#Scalar data|'''Scalar data''']]; | ||
+ | **[[R tutorial#Lists|'''Lists''']]; | ||
+ | **[[R tutorial#Data frames|'''Data frames''']]; and | ||
+ | **[[R tutorial#Subsetting|'''Subsetting''']]; | ||
+ | . | ||
}} | }} | ||
+ | If any of this material is confusing, discuss it on the mailing list. At the end of this assignment you should have a working installation of '''R''' and RStudio, be able to check out material from GitHub, be competent to read expressions in basic '''R''' syntax, be able to predict their result and spot syntax errors, familiar with the concepts in the tutorial, and able to write your own expressions. | ||
+ | |||
+ | {{Vspace}} | ||
− | |||
== Links and resources == | == Links and resources == | ||
− | * [http://biochemistry.utoronto.ca | + | * [http://steipe.biochemistry.utoronto.ca/abc/students '''Student Wiki'''] |
− | |||
− | |||
* [[R tutorial|'''R tutorial''']] | * [[R tutorial|'''R tutorial''']] | ||
− | + | {{Vspace}} | |
+ | |||
+ | ;Further reading | ||
+ | |||
+ | * Setting up [http://www.benjack.io/2016/01/02/el-capitan-biocomputing.html a Mac under El Capitan for biocomputing] | ||
+ | * <small>I don't know about a good, current guide for setting up Windows computers for biocomputing. Can anyone help?</small> | ||
+ | |||
− | + | <!-- | |
+ | {{#pmid: 26220783}} | ||
+ | {{#pmid: 24156242}} | ||
+ | {{#pmid: 22610544}} | ||
+ | --> | ||
− | |||
<!-- {{WWW|WWW_GMOD}} --> | <!-- {{WWW|WWW_GMOD}} --> | ||
<!-- <div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div> --> | <!-- <div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div> --> | ||
+ | {{vspace}} | ||
− | + | ||
+ | {{Vspace}} | ||
<section begin=assignment_footer /> | <section begin=assignment_footer /> | ||
− | == | + | == Footnotes and references == |
<references /> | <references /> | ||
+ | {{Vspace}} | ||
− | |||
== Ask, if things don't work for you!== | == Ask, if things don't work for you!== | ||
− | ;If anything about the assignment is not clear to you, please ask on the mailing list. You can be certain that others will have had similar problems. | + | ;If anything about the assignment is not clear to you, please ask on the mailing list. You can be certain that others will have had similar problems. Success comes from joining the conversation. |
+ | * Do consider how to ask your questions so that a meaningful answer is possible: | ||
+ | ** [http://stackoverflow.com/help/mcve ''How to create a Minimal, Complete, and Verifiable example''] on stack'''overflow''' and ... | ||
+ | ** [http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example ''How to make a great <b>R</b> reproducible example''] are <u>required</u> reading. | ||
+ | |||
+ | |||
+ | <span id="myAnchor"></span> | ||
<section end=assignment_footer /> | <section end=assignment_footer /> | ||
− | |||
+ | {{Vspace}} | ||
+ | |||
+ | <table style="width:100%;"><tr> | ||
+ | <td style="height:30px; vertical-align:middle; text-align:left; font-size:80%;"> </td> | ||
+ | <td style="height:30px; vertical-align:middle; text-align:right; font-size:80%;">[[BIO_Assignment_Week_2|Assignment 2 >]]</td> | ||
+ | </tr></table> | ||
[[Category:Bioinformatics]] | [[Category:Bioinformatics]] | ||
</div> | </div> |
Latest revision as of 11:27, 3 October 2016
Assignment for Week 1
Preparations: Wiki editing, Chimera and R
Assignment 2 > |
Note! This assignment is currently inactive. Major and minor unannounced changes may be made at any time.
Concepts and activities (and reading, if applicable) for this assignment will be topics on next week's quiz.
Contents
The Assignment
In this assignment you will:
- familiarize yourself with basic Wiki editing on the Student Wiki;
- install the statistics workbench R, and the RStudio user interface, and work through parts of an introductory tutorial.
Caution: this is a lengthy assignment and can't be done in one day. Work on it every day, or better every morning and evening. A lot of this has to do with first steps of learning the R programming language and you need constant repetition to bring this material into active memory. Cramming everything in a single, desperate effort makes you forget things quickly and is a waste of your time.
Wiki
Collaboration is a common theme for modern lab work and a Wiki is a great way to share and seamlessly update information in groups - or just for yourself. Probably the most sophisticated Wiki software is MediaWiki, a set of PHP scripts that is under continuous development by the Wikimedia foundation; it is the same software that runs Wikipedia. This is open source, free software that is easy to install, is well documented and requires very little resources other than a machine that runs a MySQL database server and an Apache Webserver. Numerous extensions exist (and extensions are not hard to write); they enhance the already rich functionality. But let's start with small steps. I will create an account for you on the Student Wiki, and I have configured the Wiki so that
- only logged in users can view the pages;
- all logged in users can create and edit pages at will.
This means you could edit pages that don't "belong" to you. Respect the "House Rules" and don't edit other's things without permission, even if you can think of a particularly witty comment or hilarious prank. If you want to comment on a page: every page has an associated "Discussion" page that you can freely edit. Remember to "sign your name" to discussion entries.
Task:
- Access the Student Wiki;
- log in and navigate to your user page;
- open the "Help" link in the left-hand sidebar in a separate tab;
- follow the link to the "Editing" page on the Student Wiki;
- try and learn basic editing syntax by editing your User Page:
- enter your name,
- your major(s), specialist program, year of study - or your lab and thesis theme if you are a graduate student;
- and your eMail address. I use this information a lot when I need to contact students, so make sure it is correct and current.
- Add a category tag to your User page for this year's BCH441 course. All pages with this tag are accessible via the link in the sidebar.
Feel free to look at my User Page for code examples: clicking on the edit link will show you the source text. How do you find my User Page? Good question ...
- Create a subpage to your User Page; call it "Resources" or something similar. Note: the link MUST be in your "User space". If you don't add the prefix
User:yourname/...
before your page name, the new page will end up in the main "namespace". I'll then have to delete it. That's not good because you have then failed this part of the assignment. Make sure you know what you are doing, for example by looking at the code on my User Page, asking someone who knows, or asking on the mailing list. - Put some text on your new page - perhaps a link to a Wikipedia article, or to PubMed, or to the NCBI. Make sure you understand the difference between an internal link and an external link (they have slightly different formats), and you understand the concept of namespace and categories. Also add a category link to that page.
- Play around some more. Feel free to ask how to go about achieving a particular effect that you may have seen elsewhere.
For next week, you should be comfortable with the following mark-up conventions and concepts:
- Login and accessing your user page;
- viewing a page's history;
- basic text formatting;
- "signing" your name;
- creating internal and external links;
- creating section headers on a page on multiple levels;
- reverting a changed page to an earlier version;
- creating a new page (as a subpage of an existing page);
- the concept of namespaces - especially the default ("main") and
User:
namespace; - the concept of categories.
I expect that there may be aspects of the Wiki you find puzzling, it is after all a complex piece of software that supports the world's largest collaborative project and one of the busiest sites on the Internet. Do ask about these things on the mailing list. My first encounter with Wikis is a while back and I can't remember everything I was initially confused about.
R
The R statistics environment and programming language is an exceptionally well engineered, free (as in free speech) and free (as in free beer) platform for data manipulation and analysis. The number of functions that are included by default is large, there is a very large number of additional, community-generated analysis modules that can be simply imported from dedicated sites (e.g. the Bioconductor project for molecular biology data), or via the CRAN network, and whatever function is not available can be easily programmed. The ability to filter and manipulate data to prepare it for analysis is an absolute requirement in research-centric fields such as ours, where the strategies for analysis are constantly shifting and prepackaged solutions become obsolete almost faster than they can be developed. Besides numerical analysis, R has very powerful and flexible functions for plotting graphical output.
Learning to work with R code and an introduction to programming in R is one focus of the course.
If any of this material is confusing, discuss it on the mailing list. At the end of this assignment you should have a working installation of R and RStudio, be able to check out material from GitHub, be competent to read expressions in basic R syntax, be able to predict their result and spot syntax errors, familiar with the concepts in the tutorial, and able to write your own expressions.
Links and resources
- Further reading
- Setting up a Mac under El Capitan for biocomputing
- I don't know about a good, current guide for setting up Windows computers for biocomputing. Can anyone help?
Footnotes and references
Ask, if things don't work for you!
- If anything about the assignment is not clear to you, please ask on the mailing list. You can be certain that others will have had similar problems. Success comes from joining the conversation.
- Do consider how to ask your questions so that a meaningful answer is possible:
- How to create a Minimal, Complete, and Verifiable example on stackoverflow and ...
- How to make a great R reproducible example are required reading.
Assignment 2 > |