Sha256: ebf636d6b8f8246c516ade63d345871ec8973630ef6f0756dbb8c38fa1831408

Contents?: true

Size: 1023 Bytes

Versions: 1

Compression:

Stored size: 1023 Bytes

Contents



# NGSCI stands for Sequencing Complexity Index
# This program calculates a sequencing complexity index for each base and/or strand in a genome.
# This program calculates this by averaging average overlaps of reads aligned to that base.
module NGSCI
  require 'yell'
  # For custom error handling in the future, unimplemented
  class NGSCIError < StandardError; end
  class NGSCIIOError < NGSCIError; end
  class NGSCIArgError < NGSCIError; end  

  # Create the universal logger and include it in Object
  # making the logger object available everywhere
  format = Yell::Formatter.new("[%5L] %d : %m", "%Y-%m-%d %H:%M:%S")
  # http://xkcd.com/1179/
  logger = Yell.new(:format => format) do |l|
    l.level = :info
    l.name = Object
    l.adapter STDOUT, level: [:debug, :info, :warn]
    l.adapter STDERR, level: [:error, :fatal]
  end
  Object.send :include, Yell::Loggable

end # NGSCI

# Integrate modules
require 'NGSCI/cmd'
require 'NGSCI/version'
require 'NGSCI/calculator'
require 'NGSCI/read'
#require 'yell'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ngs-ci-0.0.2.b lib/NGSCI.rb