[BioRuby-cvs] bioruby/test/unit/bio/db test_aaindex.rb,1.1,1.2
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Wed Feb 22 05:07:38 UTC 2006
Update of /home/repository/bioruby/bioruby/test/unit/bio/db
In directory pub.open-bio.org:/tmp/cvs-serv32206/test/unit/bio/db
Modified Files:
test_aaindex.rb
Log Message:
* test_aaindex.rb: changed test data (HENS920102 -> DAYM780301) for Bio::AAindex2.
* DAYM780301: newly added.
* HENS920102: removed.
Index: test_aaindex.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/test_aaindex.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_aaindex.rb 18 Feb 2006 14:44:40 -0000 1.1
--- test_aaindex.rb 22 Feb 2006 05:07:36 -0000 1.2
***************
*** 27,31 ****
def self.aax2
! File.read(File.join(TestDataAAindex, "HENS920102"))
end
end
--- 27,31 ----
def self.aax2
! File.read(File.join(TestDataAAindex, "DAYM780301"))
end
end
***************
*** 117,145 ****
def test_entry_id
! assert_equal('HENS920102', @obj.entry_id)
end
def test_definition
! assert_equal('BLOSUM62 substitution matrix (Henikoff-Henikoff, 1992)', @obj.definition)
end
def test_dblinks
! assert_equal(['LIT:1902106', 'PMID:1438297'], @obj.dblinks)
end
def test_author
! assert_equal("Henikoff, S. and Henikoff, J.G.", @obj.author)
end
def test_title
! assert_equal("Amino acid substitution matrices from protein blocks", @obj.title)
end
def test_journal
! assert_equal("Proc. Natl. Acad. Sci. USA 89, 10915-10919 (1992)", @obj.journal)
end
def test_comment
! assert_equal("matrix in 1/3 Bit Units", @obj.comment)
end
--- 117,145 ----
def test_entry_id
! assert_equal('DAYM780301', @obj.entry_id)
end
def test_definition
! assert_equal('Log odds matrix for 250 PAMs (Dayhoff et al., 1978)', @obj.definition)
end
def test_dblinks
! assert_equal([], @obj.dblinks)
end
def test_author
! assert_equal("Dayhoff, M.O., Schwartz, R.M. and Orcutt, B.C.", @obj.author)
end
def test_title
! assert_equal("A model of evolutionary change in proteins", @obj.title)
end
def test_journal
! assert_equal('In "Atlas of Protein Sequence and Structure", Vol.5, Suppl.3 (Dayhoff, M.O., ed.), National Biomedical Research Foundation, Washington, D.C., p.352 (1978)', @obj.journal)
end
def test_comment
! assert_equal("", @obj.comment)
end
***************
*** 160,164 ****
def test_matrix_2_2
! assert_equal(8.0, @obj.matrix[2,2])
end
--- 160,164 ----
def test_matrix_2_2
! assert_equal(2.0, @obj.matrix[2,2])
end
***************
*** 172,176 ****
def test_matrix_transpose
! ary = Matrix[[6.0, -2.0, -2.0, -3.0, -1.0, -1.0, -1.0, 0.0, -2.0, -2.0, -2.0, -1.0, -1.0, -3.0, -1.0, 2.0, 0.0, -4.0, -3.0, 0.0]]
assert_equal(ary, @obj.matrix.transpose)
end
--- 172,176 ----
def test_matrix_transpose
! ary = Matrix[[2.0, -2.0, 0.0, 0.0, -2.0, 0.0, 0.0, 1.0, -1.0, -1.0, -2.0, -1.0, -1.0, -4.0, 1.0, 1.0, 1.0, -6.0, -3.0, 0.0]]
assert_equal(ary, @obj.matrix.transpose)
end
More information about the bioruby-cvs
mailing list