Bioperl Training Exercise 12

From BITS wiki
Jump to: navigation, search

In this exercise we will improve Bioperl Training Exercise 11. The code in fuzzpro.pl should be put in a module, because it is perfectly reusable.

Steps to take:

  1. Create the module (class) BITS::Training::SeqProcessor::Fuzzpro
  2. In the constructor add a fuzzpro Bio::Tools::EMBOSSApplication object to your object (aggregation, remember ?).
  3. Create the process_seq() method that basically contains the code that was in the while loop of the original fuzzpro.pl script. That method should simply run fuzzpro (delegation !), add the features as before and finally return the sequence object. No output, simply return the sequence.
  4. Refactor the original fuzzpro.pl (Bioperl Training Exercise 11) or create a new script. This script should use the BITS::Training::SeqProcessor::Fuzzpro module instead