Read metadata

  • Go into the data/ directory and read in R the Toy_Metadata.txt file

Read ReadCounts data

  • Control that all in metadata are present in data/Toy_STARcounts/ directory (using code !)

  • Based on comments found in metadata, write a function that:

    • Take sample name as argument
    • Read STAR gene count file
    • skip first 4 lines
    • return counts from the 4th column
  • Read all Sample file, to have at the end a matrix of count, matrix col.names should be Sample ID and matrix row.names should be Gene

Read Log files

  • Do the same as above for STAR Log file name Log.final.out (The file is a bit harder to read, you can use the option “fill” in the read.table() function)

  • Plot the number of Uniquely mapped reads