Class: Bio::PTS1::Report

Inherits:
Object show all
Defined in:
lib/bio/appl/pts1.rb

Overview

Parser for the PTS1 prediction Report (in HTML).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Report

Parsing PTS1 HTML report.

Example

report = Bio::PTS1::Report.new(str)
report.cterm


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

#ctermObject (readonly)

Amino acids subsequence at C-terminal region.



177
178
179
# File 'lib/bio/appl/pts1.rb', line 177

def cterm
  @cterm
end

#entry_idObject (readonly)

Query sequence name.



174
175
176
# File 'lib/bio/appl/pts1.rb', line 174

def entry_id
  @entry_id
end

#fpObject (readonly)

False positive probability



192
193
194
# File 'lib/bio/appl/pts1.rb', line 192

def fp
  @fp
end

#outputObject (readonly)

Raw output



198
199
200
# File 'lib/bio/appl/pts1.rb', line 198

def output
  @output
end

#predictionObject (readonly)

Prediction (“Targeted”, “Twilight zone” and “Not targeted”)



195
196
197
# File 'lib/bio/appl/pts1.rb', line 195

def prediction
  @prediction
end

#profileObject (readonly)

Profile



183
184
185
# File 'lib/bio/appl/pts1.rb', line 183

def profile
  @profile
end

#scoreObject (readonly)

Score



180
181
182
# File 'lib/bio/appl/pts1.rb', line 180

def score
  @score
end

#spptaObject (readonly)

S_ppt (accessibility)



189
190
191
# File 'lib/bio/appl/pts1.rb', line 189

def sppta
  @sppta
end

#spptnaObject (readonly)

S_ppt (non accessibility)



186
187
188
# File 'lib/bio/appl/pts1.rb', line 186

def spptna
  @spptna
end