Skip to content

Commit

Permalink
Add a very first warm up exercise, fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Rosén committed Oct 16, 2020
1 parent f6ce900 commit eccbd84
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions ht20/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,44 @@ More detailed instructions are given with each task that uses the package.

# Warmup {#warmup}

1. What is the length of chromosome 7 on the reference sequence?
1. Make a directory for the project for you to work in and put the project
files there.

<details>
<summary>Tip</summary>
<section>
<p>Open the reference fasta file and read it line by line.</p>

The commands below are for Mac and Linux and should also work on Windows Subsystem for Linux.
You can get help in the terminal by writing the command name followed by <code>--help</code>, such as <code>cd --help</code>.
Naturally you can also search the web!

<ol>
<li>Download the files (see instructions above)</li>

<li>Open a terminal navigate to a directory where you want your project to be.
Use <code>cd</code> to change directory and <code>pwd</code> to print the working (current) directory.</li>

<li>Make a folder for the project.
Use <code>mkdir</code> or a file explorer. Check that the files are there using by listing the directory's contents with <code>ls</code>.</li>

<li>Move the files to this project.
Move files using <code>mv</code>. Again, use <code>ls</code> to see that the files end up where you want them to be.</li>

<li>Unpack any compressed files: the file extension <code>.gz</code> indicates
gzip compression which can be decompressed using <code>gunzip</code>.
The command for <code>.zip</code> files is <code>unzip</code>.</li>

<li>Examine the file contents using <code>cat</code>, <code>head</code> and <code>tail</code>.</li>
</ol>
</section>
</details>

2. What is the length of chromosome 7 on the reference sequence?

<details>
<summary>Tip</summary>
<section>
<p>Open the reference fasta file and read it line by line. Study the example in the lecture!</p>
<p>In a loop, ignore the first line and get the length of each following line.</p>
<p>Don't forget to remove the trailing newline character from each line.</p>
<p>Sum up all the lengths you found.</p>
Expand All @@ -78,7 +110,7 @@ More detailed instructions are given with each task that uses the package.
</details>


2. How many genes are annotated in the GTF file?
3. How many genes are annotated in the GTF file?

<details>
<summary>Tip</summary>
Expand Down

0 comments on commit eccbd84

Please sign in to comment.