Sha256: ab4d9b5e216839dfdcd4ea3de3a65c58743280affa236c149302516cffe489be

Contents?: true

Size: 1.08 KB

Versions: 17

Compression:

Stored size: 1.08 KB

Contents

require "seqtrim_action"

########################################################
# Author: Almudena Bocinos Rioboo                      
# 
# Defines the main methods that are necessary to execute PluginActionLowHighSize                                                     
# Inherit: Plugin
########################################################

class ActionLowQuality < SeqtrimAction    
  
  def initialize(start_pos,end_pos)
     super(start_pos,end_pos)    
     # esto es cut=false porque al principio el plugin lowqual estaba al inicio del pipeline y habia que dejar 
     # la secuencia larga para que se encontrasen los contaminantes y vectores
     # Tambien esta por si un linker tiene baja calidad que pueda encontrarlo
     @cut =false
   end
   
# def apply_to(seq)
#   
#    # seq.seq_fasta = seq.seq_fasta.slice(start_pos,end_pos)
#    $LOG.debug " Applying #{self.class}  to #{seq.seq_name} . This sequence will be ignored due to low quality " 
#    #delete sequence if it was created
#    
#   
# end   


  def apply_decoration(char)
    return char.downcase.on_white
  end 


end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
seqtrimnext-2.0.68 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.66 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.62 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.61 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.60 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.59 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.57 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.56 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.55 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.54 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.52 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.51 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.50 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.49 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.48 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.46 lib/seqtrimnext/actions/action_low_quality.rb
seqtrimnext-2.0.45 lib/seqtrimnext/actions/action_low_quality.rb