class Bio::SOSUI::Report

SOSUI output report parsing class

References

Constants

DELIMITER

Delimiter

RS

Attributes

entry_id[R]

Query #entry_id

prediction[R]

Returns the prediction result whether “MEMBRANE PROTEIN” or “SOLUBLE PROTEIN”.

tmhs[R]

Transmembrane helixes ary

Public Class Methods

new(output_report) click to toggle source

Parser for SOSUI output report.

# File lib/bio/appl/sosui/report.rb, line 44
def initialize(output_report)
  entry       = output_report.split(/\n/)

  @entry_id   = entry[0].strip.sub(/^>/,'')
  @prediction = entry[1].strip
  @tms        = 0
  @tmhs       = []
  parse_tmh(entry) if /MEMBRANE/ =~ @prediction
end