Class: Bio::SOSUI::Report
Overview
Defined Under Namespace
Classes: TMH
Constant Summary collapse
- DELIMITER =
Delimiter
"\n>"
- RS =
DELIMITER
Instance Attribute Summary collapse
-
#entry_id ⇒ Object
readonly
Query entry_id.
-
#prediction ⇒ Object
readonly
Returns the prediction result whether “MEMBRANE PROTEIN” or “SOLUBLE PROTEIN”.
-
#tmhs ⇒ Object
readonly
Transmembrane helixes ary.
Instance Method Summary collapse
-
#initialize(output_report) ⇒ Report
constructor
Parser for SOSUI output report.
Constructor Details
#initialize(output_report) ⇒ Report
Parser for SOSUI output report.
43 44 45 46 47 48 49 50 51 |
# File 'lib/bio/appl/sosui/report.rb', line 43 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 |
Instance Attribute Details
#entry_id ⇒ Object (readonly)
Query entry_id
33 34 35 |
# File 'lib/bio/appl/sosui/report.rb', line 33 def entry_id @entry_id end |
#prediction ⇒ Object (readonly)
Returns the prediction result whether “MEMBRANE PROTEIN” or “SOLUBLE PROTEIN”.
37 38 39 |
# File 'lib/bio/appl/sosui/report.rb', line 37 def prediction @prediction end |
#tmhs ⇒ Object (readonly)
Transmembrane helixes ary
40 41 42 |
# File 'lib/bio/appl/sosui/report.rb', line 40 def tmhs @tmhs end |