Till KTH:s startsida Till KTH:s startsida

Ändringar mellan två versioner

Här visas ändringar i "Advanced assignment" mellan 2015-11-02 11:18 av Lars Arvestad och 2015-11-02 13:42 av Lars Arvestad.

Visa nästa > ändring.

Advanced assignment

Data visualisation using MatPlotLib Completing this assignment will raise your grade one step.

In this assignment you are to visualise Blast results.

Use the module matplotlib and write a program that parses a Blast output file and creates a histogram of all scores for the first Blast result in the file. You will also use the argparse module to ensure a good command-line user-interface.

Requirements
*
Your program should read data from stdin, take one command line parameter for the outtake user input using the argparse module.
* Your program should take two arguments: input file and output filename.
* Read from the given in
put filename, and create a PDF with the histogram in the output file.

* Optional functionality: read from stdin if only on argument is given.

* Appropriate help texts should be available.
To present
* Explain how the histogram is built.
* Show how you can use the results from the assignment "Remote Blast" as input to your program.