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

- (Report) initialize(str)

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

- (Object) cterm (readonly)

Amino acids subsequence at C-terminal region.



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

def cterm
  @cterm
end

- (Object) entry_id (readonly)

Query sequence name.



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

def entry_id
  @entry_id
end

- (Object) fp (readonly)

False positive probability



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

def fp
  @fp
end

- (Object) output (readonly)

Raw output



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

def output
  @output
end

- (Object) prediction (readonly)

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



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

def prediction
  @prediction
end

- (Object) profile (readonly)

Profile



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

def profile
  @profile
end

- (Object) score (readonly)

Score



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

def score
  @score
end

- (Object) sppta (readonly)

S_ppt (accessibility)



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

def sppta
  @sppta
end

- (Object) spptna (readonly)

S_ppt (non accessibility)



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

def spptna
  @spptna
end