Sha256: 5353b80f1a40659df7f8894d6d2b25251a6bf277dd388a4ef91773a4e17a3fd9

Contents?: true

Size: 872 Bytes

Versions: 2

Compression:

Stored size: 872 Bytes

Contents

require 'spec_helper'
require 'bioinform/parsers/string_fantom_parser'

module Bioinform    
  describe StringFantomParser do
    good_cases = {
      'string in Fantom-format' => {input: "
        NA  motif_CTNCAG
        P0	A	C	G	T	
        P1	0	1878368	0	0	
        P2	0	0	0	1878368	
        P3	469592	469592	469592	469592	
        P4	0	1878368	0	0	
        P5	1878368	0	0	0	
        P6	0	0	1878368	0",
        matrix: [ [0.0, 1878368.0, 0.0, 0.0], 
                  [0.0, 0.0, 0.0, 1878368.0], 
                  [469592.0, 469592.0, 469592.0, 469592.0], 
                  [0.0, 1878368.0, 0.0, 0.0], 
                  [1878368.0, 0.0, 0.0, 0.0], 
                  [0.0, 0.0, 1878368.0, 0.0]],
        name: 'motif_CTNCAG' 
      }
    }
    
    bad_cases = { }
  
    parser_specs(StringFantomParser, good_cases, bad_cases)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bioinform-0.1.6 spec/parsers/string_fantom_parser_spec.rb
bioinform-0.1.5 spec/parsers/string_fantom_parser_spec.rb