Bioperl Training Exercise 11

From BITS wiki
Jump to: navigation, search
  • Write a standalone script that executes the following workflow:
  1. input fasta protein (Google)
    Save the file File:Proteins.txt as proteins.fa.
  2. launch EMBOSS' fuzzpro from your script to look for a pattern (e.g. potential N-glycosylation site). Output should be GFF and written to a temporary file. Hints:
    1. use Data::Dumper to figure out what kind of object your io object actually is
    2. use the methods script to find a method to create a temporary files.
    3. use perldoc to figure out how that method works
    4. the fuzzpro analysis run() method takes a hash as arguments. As keys, the actual EMBOSS fuzzpro should be used. Part of the possible keys can be obtained using the acd() method. However, the key to indicate the report format (GFF) is missing; it's -rformat2 (see fuzzpro EMBOSS documentation).
    5. The pattern for an N-glycosylation site is N-{P}-[ST]
  3. Convert the GFF to features and add them to the sequence. Change every found feature:
    1. add note tag to indicate the used program (fuzzpro)
    2. add note tag to indicate the used pattern
    3. add label 'N-glycosylation'
    4. change the feature type to the Sequence Ontology term 'protein_match'
  4. Write the annotated sequence to a genbank file