Class: NpSearch::ScoreSequence

Inherits:
Object
  • Object
show all
Defined in:
lib/npsearch/scoresequence.rb

Overview

A class to score the Sequences

Constant Summary collapse

DI_CLV =
'KR|RR|KK'.freeze
MONO_NP_CLV_2 =
'[KR]..R'.freeze
MONO_NP_CLV_4 =
'[KR]....R'.freeze
MONO_NP_CLV_6 =
'[KR]......R'.freeze
NP_CLV =
"(#{DI_CLV})|(#{MONO_NP_CLV_2})|(#{MONO_NP_CLV_4})|" \
"(#{MONO_NP_CLV_6})".freeze

Class Method Summary collapse

Class Method Details

.run(sequence, opt) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/npsearch/scoresequence.rb', line 13

def run(sequence, opt)
  split_into_potential_neuropeptides(sequence)
  count_np_cleavage_sites(sequence)
  count_c_terminal_glycines(sequence)
  np_similarity(sequence, opt[:temp_dir])
  acidic_spacers(sequence)
end