Sha256: 689a74deacdc5b54c1f05b3ae7ab961b695e35ea01d698898fb85977486cca24

Contents?: true

Size: 661 Bytes

Versions: 6

Compression:

Stored size: 661 Bytes

Contents

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

class TestPolyphen2 < Test::Unit::TestCase
  def _test_predict_disease
    accession = "A6NFZ4"
    mutation =  "Y34D"

    assert_equal "probably damaging", Polyphen2.predict(accession, mutation).first
  end

  def test_batch
    query =<<-EOF
A6NFZ4 34 Y D
    EOF

    ddd Polyphen2::Batch.predict(query)["A6NFZ4:Y34D"]
    assert_equal "probably damaging", Polyphen2::Batch.predict(query)["A6NFZ4:Y34D"]["prediction"]
    assert_equal "probably damaging", Polyphen2::Batch.chunked_predict(query)["A6NFZ4:Y34D"]["prediction"]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbbt-phgx-3.0.0 test/rbbt/mutation/test_polyphen.rb
rbbt-phgx-2.1.2 test/rbbt/mutation/test_polyphen.rb
rbbt-phgx-2.1.1 test/rbbt/mutation/test_polyphen.rb
rbbt-phgx-2.1.0 test/rbbt/mutation/test_polyphen.rb
rbbt-phgx-2.0.1 test/rbbt/mutation/test_polyphen.rb
rbbt-phgx-2.0.0 test/rbbt/mutation/test_polyphen.rb