Class: Neurohmmer::Signalp

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/neurohmmer/signalp.rb

Overview

A class to hold sequence data

Class Method Summary collapse

Class Method Details

.analyse_sequence(seq) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/neurohmmer/signalp.rb', line 11

def analyse_sequence(seq)
  sp_headers = %w(name cmax cmax_pos ymax ymax_pos smax smax_pos smean d
                  sp dmaxcut networks)
  s = `echo ">seq\n#{seq}\n" | #{opt[:signalp_path]} -t euk -f short \
       -U 0.3 -u 0.3`
  Hash[sp_headers.map(&:to_sym).zip(s.gsub(/^#.*\n/, '').split)]
end