Class: Unipept::Commands::Prot2pept
Instance Attribute Summary collapse
-
#root_command ⇒ Object
readonly
Returns the value of attribute root_command.
-
#valid_formats ⇒ Object
readonly
Returns the value of attribute valid_formats.
Class Method Summary collapse
-
.run(args) ⇒ void
Invokes the uniprot command-line tool with the given arguments.
- .split(protein, pattern) ⇒ Object
Instance Attribute Details
#root_command ⇒ Object (readonly)
Returns the value of attribute root_command.
3 4 5 |
# File 'lib/commands/prot2pept.rb', line 3 def root_command @root_command end |
#valid_formats ⇒ Object (readonly)
Returns the value of attribute valid_formats.
3 4 5 |
# File 'lib/commands/prot2pept.rb', line 3 def valid_formats @valid_formats end |
Class Method Details
.run(args) ⇒ void
This method returns an undefined value.
Invokes the uniprot command-line tool with the given arguments.
57 58 59 |
# File 'lib/commands/prot2pept.rb', line 57 def self.run(args) @root_command.run(args) end |
.split(protein, pattern) ⇒ Object
48 49 50 |
# File 'lib/commands/prot2pept.rb', line 48 def self.split(protein, pattern) protein.tr('*', "\n").gsub(pattern, "\\1\n\\2").gsub(pattern, "\\1\n\\2").split("\n").reject(&:empty?) end |