Sha256: b4077c0e8ec10e33d7c622b6539dbc43f77da59429d3aa850d23b710dc89371f

Contents?: true

Size: 747 Bytes

Versions: 10

Compression:

Stored size: 747 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb')
require 'rbbt/mutation/snps_and_go'

class TestSNPSandGO < Test::Unit::TestCase
  def test_parse_mutation
    assert_equal ['Y','233','W'], SNPSandGO.parse_mutation('Y233W')
  end

  def test_predict_disease
    accession = "Q9UGJ1"
    mutation =  "G1556E"

    assert_raise Exception do SNPSandGO.predict(accession, mutation) end
  end

  def test_predict_disease
    accession = "A6NFZ4"
    mutation =  "Y34D"

    assert_equal ["Disease", "2"], SNPSandGO.predict(accession, mutation)
  end

  def test_predict_neutral
    accession = "A6NGY1"
    mutation =  "G155R"

    assert_equal ["Neutral", "9"], SNPSandGO.predict(accession, mutation)
  end


end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbbt-phgx-3.0.0 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-2.1.2 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-2.1.1 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-2.1.0 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-2.0.1 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-2.0.0 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-1.0.0 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-0.3.1 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-0.3.0 test/rbbt/mutation/test_snps_and_go.rb
rbbt-phgx-0.2.0 test/rbbt/mutation/test_snps_and_go.rb