Bioperl Training Exercise 13

From BITS wiki
Jump to: navigation, search

This exercise is very similar to Bioperl Training Exercise 12. The goal is to create a module (e.g. BITS::Training::SeqProcessor::Taxon) that adds the species/taxon information to every sequence in the stream. The taxon information is fetched from Entrez; a taxon id or a taxon name is given as query. Use e.g bioperl website as starting point for your search

  1. The constructor takes 1 argument: a tax id (e.g. 4932) or a taxon name (e.g. 'Saccharomyces cerevisiae'). Using that information set up the correct Entrez taxon query to fetch the taxon object.
  2. In the process_seq() method attach the taxon object to the sequence object (the methods script is your friend again). Return the object (why will become clear later)