class Bio::PSORT::PSORT2::Remote

Bio::PSORT::PSORT2::Remote

PSORT2 specific CGIDriver

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
385 def initialize(host, path)
386   @origin = 'yeast'
387   super(host, path)
388   @parsing = true
389 end

Private Instance Methods

make_args(query) click to toggle source

Returns parsed CGI argument. An API implementation.

    # File lib/bio/appl/psort.rb
404 def make_args(query)
405   @args.update({'sequence' => query})
406   return args_join(@args)
407 end
parse_report(str) click to toggle source

Returns parsed output report. An API implementation.

    # File lib/bio/appl/psort.rb
412 def parse_report(str)
413   str = str.gsub(/\n<hr>/i, Report::BOUNDARY)
414   str = erase_html_tags(str)
415   str = Bio::PSORT::PSORT2::Report.parser(str, self.args['title']) if @parsing
416   return str
417 end