class Bio::PSORT::PSORT1::Remote

Bio::PSORT::PSORT1::Remote

PSORT1 specific CGIDriver.

Attributes

origin[RW]

Accessor for #origin to contein target domain. Taget domains:

  1. Gram-positive bacterium

  2. Gram-negative bacterium

  3. yeast

  4. animal

  5. plant

parsing[RW]

Accessor for Bio::PSORT::PSORT1#title to contain the query title.

title[RW]

Accessor for Bio::POSRT::PSORT1#sequence to contein the query sequence.

Public Class Methods

new(host, path = nil, title = 'MYSEQ', origin = 'yeast') click to toggle source

Sets remote “host'' and cgi “path''.

Calls superclass method Bio::PSORT::CGIDriver.new
# File lib/bio/appl/psort.rb, line 266
def initialize(host, path = nil, title = 'MYSEQ', origin = 'yeast')
  @title   = title
  @origin  = origin
  @parsing = true
  super(host, path)
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 277
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 285
def parse_report(str)
  str = erase_html_tags(str)
  str = Bio::PSORT::PSORT1::Report.parser(str) if @parsing
  return str
end