User Tools

Site Tools


2018pipes2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
2018pipes2 [2018/07/24 11:23]
erin
2018pipes2 [2018/08/30 09:28] (current)
erin
Line 7: Line 7:
 **tee** - redirect stdout or stderr to multiple locations **tee** - redirect stdout or stderr to multiple locations
  
-:!: **Exercise**: ​Let's make a test file. Copy and paste the text below into a file called mini.gff+:!: **Exercise**: ​You probably already have the file called ''​mini.gff''​. If you don't, copy and paste the text below into a file by that name.
  
 <​code>​ <​code>​
Line 63: Line 63:
 <code bash> <code bash>
 $ sort mini.gff | uniq $ sort mini.gff | uniq
 +</​code>​
 +
 +That wasn't very interesting. What if we do this just for the first column...
 +
 +<code bash>
 +$ cut -f 1 mini.gff
 +$ cut -f 1 mini.gff | sort
 +$ cut -f 1 mini.gff | sort | uniq
 </​code>​ </​code>​
  
Line 92: Line 100:
 ---- ----
  
-:!: **Exercise**:​ Can you write a series of pipes that will determine how many unique ​chromosomes are represented in mini.gff?+:!: **Exercise**:​ Can you write a series of pipes that will output a list of unique ​transcript_id entries from mini.gff?
   * [[wiki:​pipes2_hint1|hint1]]   * [[wiki:​pipes2_hint1|hint1]]
   * [[wiki:​pipes2_hint2|hint2]]   * [[wiki:​pipes2_hint2|hint2]]
 +  * [[wiki:​pipes2_hint3|answer]]
  
  
-[[wiki:exercises2|{{:​wiki:​slide2_arrow.png?​40|}}]] [[wiki:exercises2|Further Exercises2]]+[[assignments:2018assignment3|{{:​wiki:​slide2_arrow.png?​40|}}]] [[assignments:2018assignment3|Assignment 3]]
  
2018pipes2.1532453017.txt.gz ยท Last modified: 2018/07/24 11:23 by erin