How to teach computational competence to scientists.

Assessment – Navigating the file system from the command line

Posted on:
2014-07-23
Author:
Jeff Walton

This assessment would be given after a short lesson on the basics of the file system. Q1.  Given the Unix file system shown in the tree diagram below, if your current working directory was smalldir, which of the following commands would you use to change to the planets2 directory? A) cd planets2 B) cd planets/planets2 […]

Posted in Assessment, Round 10/3 | No Comments

Reverse Instructional Design — Data extraction and manipulation with awk

Posted on:
2014-07-23
Author:
Leonor Garcia-Gutierrez

Before asking these questions, I would take 10-15 min to teach this about awk: column numbering/accessing, printing columns subject to conditions, and specifying delimiters. If needed, also logical (&&, ||), relational (>,<,>=,<=, ==, !=) and arithmetic (+, -, *, /) operators. We have a tab-separated datafile (patient_data.txt, see preview below), containing data for 100 patients: […]

Posted in Assessment, Round 10/3 | No Comments

Reverse instructional design – using ggplot2 in R

Posted on:
2014-07-23
Author:
James Robinson
screenshot

Consider the following dataset named “temp” of the goals and assists scored by 10 hockey players from the USA and Canada: Q1. Using ggplot2 in R, how would you make a scatter plot of the number of goals against number of assists, coloured by the country? a) ggplot(data=temp, x=goals, y=assists, col=country) b) ggplot(data=temp, x=goals, y=assists, aes(col=country)) […]

Posted in Assessment, R, Round 10/3 | No Comments

Reverse Instructional Design — LEFT JOIN in MySQL/MariaDB

Posted on:
2014-07-23
Author:
Luca Cerone

Imagine in your MySQL database you have a table A like this: id 1 2 3 4 and a table B like this: id 1 2 5 6 Answer the following questions: 1. What would be the result of the following query? SELECT A.id, B.id FROM A LEFT JOIN B ON A.id=B.id ORDER BY A.id; […]

Posted in Assessment, Round 10/3 | No Comments

Reverse Instructional Design — The Apply family in R

Posted on:
2014-07-23
Author:
Scott Ritchie

Question 1: Suppose you have the following data.frame: > df # a b c group # 1 12 0.7575236 -6 a # 2 2 -0.6816639 7 a # 3 9 0.5233682 -5 a # 4 0 -0.2917147 -6 b # 5 -1 0.5255509 NA b # 6 8 -1.7260456 1 b Question 1a: Which of […]

Posted in Assessment, Design, Proficiency, R, Round 10/2 | 1 Comment

Reverse Instructional Design: Python Dictionaries

Posted on:
2014-07-22
Author:
Johnny Lin

Multiple choice question: Consider the following dictionary dataset_metadata: dataset_metadata = {‘title’:'GISSTEMP’, ‘variable’:'Temperature’, ‘units’:'K’, ‘author’:'Johnny Lin’} Let’s say you want to create a string that is suitable for a graph axis label showing the variable name and the units (i.e., the string ‘Temperature [K]‘). Which of the following creates such a string? a) variable + units […]

Posted in Assessment, Python, Round 10/3 | 2 Comments

Assessment – Video processing with matlab

Posted on:
2014-07-22
Author:
Tom

Question 1 > movie=VideoReader(‘filename.avi’); > frame=read(movie,1); > size(frame) ans = 200 271 3 Given the matlab code above which of the following statements is correct: a) the frame size is 200 pixels high by 271 pixels wide and the movie is in RGB format b) the frame size is 271 pixels high by 200 pixels […]

Posted in Uncategorized | No Comments

Reverse Instructional Design – Lists in R

Posted on:
2014-07-22
Author:
Aaron Erlich

        QUESTION 1 Consider the list myList in R. Which of the following would correctly extract the object storing the lm() regression results? (Select all that apply)   a. myList[['reg']][[1]] b. myList['reg'][1] c. myList[['reg']][1] d. myList[[4]][[1]] e. myList[[3]][[1]] QUESTION 2: Not knowing about what the objects glm() and lm() return look like, […]

Posted in Assessment, R, Round 10/3 | 1 Comment

Reverse Instructional Design – GitHub

Posted on:
2014-07-21
Author:
Jane Lewis

You’ve created a new source code file which you’d like to add to your team’s repository which is held on GitHub. You’ve done it at home rather than from your usual PC so haven’t got the other source code… what is the sequence of git commands that you could run to deliver your file? A […]

Posted in Assessment, Round 10/2 | No Comments

Assessment – PBS system

Posted on:
2014-07-21
Author:
Maciej Czuchry

1. What command will you use to submit your PBS batch script ($SCRIPTNAME) with torque? qrun $SCRIPTNAME qsub $SCRIPTNAME qstat $SCRIPTNAME qalter $SCRIPTNAME ./$SCRIPTNAME 2. Using manual of torque commands and your knowledge write a short shell (bash/sh/tcsh/…) script which show hostname of worker node the job is running. Resources info to take for PBS are: 1 worker […]

Posted in Uncategorized | 1 Comment

Assessment – Navigating the Windows file system with Git Bash

Posted on:
2014-07-18
Author:
Marcello Barisonzi

The root (“/”) directory in BASH is the directory that encompasses all files and directories, including system and user files. If you had to get to the root directory using Windows Explorer, which one of the icons shown here would you have to click? the “Desktop” icon the “Documents” icon the “Computer” icon the “Local […]

Posted in Assessment, Round 10/3 | 3 Comments

Reverse Instructional Design – Question/Code challenge grep and fasta files

Posted on:
2014-07-18
Author:
Jennifer Shelton

My post is at : https://github.com/kstatebioinfo/swc/blob/master/grep_fasta.md. -J

Posted in Uncategorized | 2 Comments

From Motivation to Reverse Instructional Design

Posted on:
2014-07-18
Author:
Greg Wilson

[apologies for the brevity of this post - it's been a rough couple of weeks...] After people made their pitches (which was a lot of fun), we talked about the difference between formative and summative assessment, then took a brief look at reverse instructional design, which is the teaching equivalent of test-driven development. For our […]

Posted in Assessment, Motivation, Round 10/2, Round 10/3 | No Comments

Demotivating Experience: Shy, Unpopular Kid Does Wrong

Posted on:
2014-07-17
Author:
Scott Talafuse

In 1984, I was a 4th grader at a new school.  I was shy, uncomfortable in my own skin, and had only one friend, another odd boy who I had met in the course of avoiding everyone else at outdoor playtime. In the middle of the year, our class received a shiny new Apple II […]

Posted in Motivation, Round 10/2 | No Comments

Demotivation – sport

Posted on:
2014-07-15
Author:
Jane Lewis

Sports at school were just the most terrifying experience for me. I was always argued over as the last person for the team and which team had to include me ‘cos the other one had had me the week before. Netball – I was pushed over; hockey – I still have the scars of sticks […]

Posted in Motivation, Round 10/2 | No Comments

Demotivation Experience: grad school

Posted on:
2014-07-14
Author:
Ana

So, grad school is a pretty demotivating experience all around! You work in isolation, on a difficult problem that may be impossible and that no one else really knows how to do. Projects fail quite often, which is quite depressing. Since this description of grad school is taken as a given and inevitable, it’s hard […]

Posted in Motivation, Uncategorized | No Comments

Demotivation – Saturday Class

Posted on:
2014-07-14
Author:
David Kua

Being the children of Chinese immigrants, my sisters and I had to attend Saturday morning Cantonese classes. Just having to attend the classes were demotivating to us because we only went because we must do it. As children we hated it because it was extra schooling and most importantly we were missing on our favourite Saturday […]

Posted in Motivation, Round 10/2 | No Comments

Demotivating experience – climbing course

Posted on:
2014-07-14
Author:
Klemens Noga

I’ve remember one truly demotivating experience when I was attending climbing course on artificial walls. Before it I’d been climbing for a while and I’d got proper climbing course but I had not been good at technical climbing, my technique was mediocre. Therefore I went with my friends and colleagues to technical climbing course on […]

Posted in Motivation, Round 10/2 | No Comments

Demotivating Experience

Posted on:
2014-07-13
Author:
Francisco Palm

I was in elementary. So I liked a lot to sing and I was informed about an audition to join school’s choir. I was really eager to be part of the choir, and due to that I was very nervous. The test was very quick, without much explanation had to repeat some vocal tones, and […]

Posted in Biography, Motivation, Round 10/2 | No Comments

Demotivation – recursion

Posted on:
2014-07-10
Author:
Xu Fei

My demotivation story took place in my junior high school in China, where we had our first intro to programming class using BASIC. The teacher told the whole class that if anyone did not understand the recursion lecture, he/she should not continue programming because he/she won’t understand the rest of the class to be a […]

Posted in Round 10/2 | No Comments