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


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

#ctermObject (readonly)

Amino acids subsequence at C-terminal region.



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

def cterm
  @cterm
end

#entry_idObject (readonly)

Query sequence name.



172
173
174
# File 'lib/bio/appl/pts1.rb', line 172

def entry_id
  @entry_id
end

#fpObject (readonly)

False positive probability



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

def fp
  @fp
end

#outputObject (readonly)

Raw output



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

def output
  @output
end

#predictionObject (readonly)

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



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

def prediction
  @prediction
end

#profileObject (readonly)

Profile



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

def profile
  @profile
end

#scoreObject (readonly)

Score



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

def score
  @score
end

#spptaObject (readonly)

S_ppt (accessibility)



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

def sppta
  @sppta
end

#spptnaObject (readonly)

S_ppt (non accessibility)



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

def spptna
  @spptna
end