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
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
# File 'lib/bio/appl/pts1.rb', line 205 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.
175 176 177 |
# File 'lib/bio/appl/pts1.rb', line 175 def cterm @cterm end |
#entry_id ⇒ Object (readonly)
Query sequence name.
172 173 174 |
# File 'lib/bio/appl/pts1.rb', line 172 def entry_id @entry_id end |
#fp ⇒ Object (readonly)
False positive probability
190 191 192 |
# File 'lib/bio/appl/pts1.rb', line 190 def fp @fp end |
#output ⇒ Object (readonly)
Raw output
196 197 198 |
# File 'lib/bio/appl/pts1.rb', line 196 def output @output end |
#prediction ⇒ Object (readonly)
Prediction (“Targeted”, “Twilight zone” and “Not targeted”)
193 194 195 |
# File 'lib/bio/appl/pts1.rb', line 193 def prediction @prediction end |
#profile ⇒ Object (readonly)
Profile
181 182 183 |
# File 'lib/bio/appl/pts1.rb', line 181 def profile @profile end |
#score ⇒ Object (readonly)
Score
178 179 180 |
# File 'lib/bio/appl/pts1.rb', line 178 def score @score end |
#sppta ⇒ Object (readonly)
S_ppt (accessibility)
187 188 189 |
# File 'lib/bio/appl/pts1.rb', line 187 def sppta @sppta end |
#spptna ⇒ Object (readonly)
S_ppt (non accessibility)
184 185 186 |
# File 'lib/bio/appl/pts1.rb', line 184 def spptna @spptna end |