Class: NpSearch::Signalp
- Inherits:
-
Object
- Object
- NpSearch::Signalp
- Extended by:
- Forwardable
- Defined in:
- lib/npsearch/signalp.rb
Overview
A class to hold sequence data
Class Method Summary collapse
Class Method Details
.analyse_sequence(seq) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/npsearch/signalp.rb', line 13 def analyse_sequence(seq) sp_headers = %w(name cmax cmax_pos ymax ymax_pos smax smax_pos smean d sp dmaxcut networks orf) seqs = setup_analysis(seq) sp_results = [] seqs.each do |sequence| sp_results << run_signalp(sequence, sp_headers) end sp_results.sort_by { |h| h[:d] }.reverse[0] end |