class Bio::PSORT::PSORT2::Remote
Bio::PSORT::PSORT2::Remote¶ ↑
Attributes
origin[RW]
An accessor of the origin argument. Default setting is “yeast''.
parsing[RW]
An accessor of the output parsing. Default setting is “true''.
Public Class Methods
new(host, path)
click to toggle source
Sets remote “host'' and cgi “path''.
Calls superclass method
Bio::PSORT::CGIDriver.new
# File lib/bio/appl/psort.rb, line 385 def initialize(host, path) @origin = 'yeast' super(host, path) @parsing = true end
Private Instance Methods
make_args(query)
click to toggle source
Returns parsed CGI argument. An API implementation.
# File lib/bio/appl/psort.rb, line 404 def make_args(query) @args.update({'sequence' => query}) return args_join(@args) end
parse_report(str)
click to toggle source
Returns parsed output report. An API implementation.
# File lib/bio/appl/psort.rb, line 412 def parse_report(str) str = str.gsub(/\n<hr>/i, Report::BOUNDARY) str = erase_html_tags(str) str = Bio::PSORT::PSORT2::Report.parser(str, self.args['title']) if @parsing return str end