Class: ActionRemAditArtifacts
- Inherits:
-
SeqtrimAction
- Object
- SeqtrimAction
- ActionRemAditArtifacts
- Defined in:
- lib/seqtrimnext/actions/action_rem_adit_artifacts.rb
Overview
Author: Almudena Bocinos Rioboo
Defines the main methods that are necessary to execute PluginActionLowHighSize
Inherit: Plugin
Instance Attribute Summary
Attributes inherited from SeqtrimAction
#cut, #end_pos, #found_definition, #informative, #left_action, #message, #reversed, #right_action, #start_pos, #tag_id
Instance Method Summary collapse
-
#apply_decoration(char) ⇒ Object
def apply_to(seq) # seq.seq_fasta = seq.seq_fasta.slice(start_pos,end_pos) $LOG.debug “ Applying #selfself.class to #seqseq.seq_name ” #delete sequence if it was created end.
-
#initialize(start_pos, end_pos) ⇒ ActionRemAditArtifacts
constructor
A new instance of ActionRemAditArtifacts.
Methods inherited from SeqtrimAction
#action_type, #apply_to, #contains?, #contains_action?, #decorate, #description, #inspect, #left_action?, #near_left?, #right_action?, #title, #to_hash, #to_human, #type
Constructor Details
#initialize(start_pos, end_pos) ⇒ ActionRemAditArtifacts
Returns a new instance of ActionRemAditArtifacts.
12 13 14 15 16 |
# File 'lib/seqtrimnext/actions/action_rem_adit_artifacts.rb', line 12 def initialize(start_pos,end_pos) super(start_pos,end_pos) @cut =true end |
Instance Method Details
#apply_decoration(char) ⇒ Object
def apply_to(seq)
# seq.seq_fasta = seq.seq_fasta.slice(start_pos,end_pos)
$LOG.debug " Applying #{self.class} to #{seq.seq_name} "
#delete sequence if it was created
end
27 28 29 |
# File 'lib/seqtrimnext/actions/action_rem_adit_artifacts.rb', line 27 def apply_decoration(char) return char.yellow.negative end |