Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/protk/tandem_search_tool.rb

Instance Method Summary collapse

Instance Method Details

#xtandem_modification_motif?Boolean

Returns:

  • (Boolean)

4
5
6
7
8
9
10
11
12
13
# File 'lib/protk/tandem_search_tool.rb', line 4

def xtandem_modification_motif?
# [email protected][ is not a modification motif, it is a residue (N-term) modification,
# so when checking if modification is a motif look for paired square brackets.
ismotif=false
case self
when /[\(\)\{\}\!]/,/\[.*\]/
	ismotif=true
end
ismotif
end