f6bb3e9608d45ceee5279864f785bd58f3c579e1,lib/prody/tests/test_sequence/test_msa.py,TestRefinement,testRowCol,#TestRefinement#,63
Before Change
refined = refineMSA(FASTA, col_occ=0.9, row_occ=0.9)._getArray()
rows = FASTA_ALPHA.sum(1) / 112. >= 0.9
expected = FASTA._getArray()[rows,:][:,
1.0 * FASTA_ALPHA[rows,:].sum(0) / rows.sum() >= 0.9]
assert_array_equal(refined, expected)
After Change
cols = char.isalpha(expected).sum(0,
dtype=float) / expected.shape[0] >= col_occ
expected = expected.take(cols.nonzero()[0], 1)
assert_array_equal(refined, expected)
def testAll(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: prody/ProDy
Commit Name: f6bb3e9608d45ceee5279864f785bd58f3c579e1
Time: 2012-11-26
Author: lordnapi@gmail.com
File Name: lib/prody/tests/test_sequence/test_msa.py
Class Name: TestRefinement
Method Name: testRowCol
Project Name: prody/ProDy
Commit Name: f6bb3e9608d45ceee5279864f785bd58f3c579e1
Time: 2012-11-26
Author: lordnapi@gmail.com
File Name: lib/prody/tests/test_sequence/test_msa.py
Class Name: TestRefinement
Method Name: testLabel
Project Name: prody/ProDy
Commit Name: f6bb3e9608d45ceee5279864f785bd58f3c579e1
Time: 2012-11-26
Author: lordnapi@gmail.com
File Name: lib/prody/sequence/msa.py
Class Name:
Method Name: refineMSA