Class: Bio::PTS1::Report
Overview
Parser for the PTS1 prediction Report (in HTML).
Instance Attribute Summary collapse
-
#cterm ⇒ Object
readonly
Amino acids subsequence at C-terminal region.
-
#entry_id ⇒ Object
readonly
Query sequence name.
-
#fp ⇒ Object
readonly
False positive probability.
-
#output ⇒ Object
readonly
Raw output.
-
#prediction ⇒ Object
readonly
Prediction (“Targeted”, “Twilight zone” and “Not targeted”).
-
#profile ⇒ Object
readonly
Profile.
-
#score ⇒ Object
readonly
Score.
-
#sppta ⇒ Object
readonly
S_ppt (accessibility).
-
#spptna ⇒ Object
readonly
S_ppt (non accessibility).
Instance Method Summary collapse
-
#initialize(str) ⇒ Report
constructor
Parsing PTS1 HTML report.
Constructor Details
#initialize(str) ⇒ Report
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/bio/appl/pts1.rb', line 207 def initialize(str) @cterm = '' @score = 0 @profile = 0 @spptna = 0 @sppta = 0 @fp = 0 @prediction = 0 if /PTS1 query prediction/m =~ str @output = str parse else raise end end |
Instance Attribute Details
#cterm ⇒ Object (readonly)
Amino acids subsequence at C-terminal region.
177 178 179 |
# File 'lib/bio/appl/pts1.rb', line 177 def cterm @cterm end |
#entry_id ⇒ Object (readonly)
Query sequence name.
174 175 176 |
# File 'lib/bio/appl/pts1.rb', line 174 def entry_id @entry_id end |
#fp ⇒ Object (readonly)
False positive probability
192 193 194 |
# File 'lib/bio/appl/pts1.rb', line 192 def fp @fp end |
#output ⇒ Object (readonly)
Raw output
198 199 200 |
# File 'lib/bio/appl/pts1.rb', line 198 def output @output end |
#prediction ⇒ Object (readonly)
Prediction (“Targeted”, “Twilight zone” and “Not targeted”)
195 196 197 |
# File 'lib/bio/appl/pts1.rb', line 195 def prediction @prediction end |
#profile ⇒ Object (readonly)
Profile
183 184 185 |
# File 'lib/bio/appl/pts1.rb', line 183 def profile @profile end |
#score ⇒ Object (readonly)
Score
180 181 182 |
# File 'lib/bio/appl/pts1.rb', line 180 def score @score end |
#sppta ⇒ Object (readonly)
S_ppt (accessibility)
189 190 191 |
# File 'lib/bio/appl/pts1.rb', line 189 def sppta @sppta end |
#spptna ⇒ Object (readonly)
S_ppt (non accessibility)
186 187 188 |
# File 'lib/bio/appl/pts1.rb', line 186 def spptna @spptna end |