Skip to content

Commit

Permalink
add test clustalw
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Dec 3, 2024
1 parent cb1778a commit a7e57c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
source activate test
conda install --yes numpy scipy nose requests
if [[ ${{ matrix.python-version }} == "2.7" ]]; then conda install --yes unittest2; else conda install --yes pdbfixer mdtraj; fi
conda install -c bioconda clustalw
pip install mmtf-python scikit-learn
pip install .
python setup.py build_ext --inplace --force
Expand Down
12 changes: 10 additions & 2 deletions prody/tests/sequence/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,11 +1202,19 @@ def testMATLAB10(self):
class TestBuildMSA(TestCase):

def testBuildMSAlocal(self):
sequences = [ags[0].protein["A"].getSequence(),
sequences = [ags[0].protein["A"].getSequence(),
ags[1].protein["A"].getSequence()]

expect1 = parseMSA(pathDatafile('msa_3hsyA_3o21A.fasta'))
expect2 = parseMSA(pathDatafile('msa_3hsyA_3o21A_new.fasta'))
result = buildMSA(sequences, method="local", labels=["A2", "A3"])
assert result in (expect1, expect2), "The list of expected buildMSA results did not contain " + result


def testBuildMSAclustalw(self):
sequences = [ags[0].protein["A"].getSequence(),
ags[1].protein["A"].getSequence()]

expect1 = parseMSA(pathDatafile('msa_3hsyA_3o21A.fasta'))
expect2 = parseMSA(pathDatafile('msa_3hsyA_3o21A_new.fasta'))
result = buildMSA(sequences, method="clustalw", labels=["A2", "A3"])
assert result in (expect1, expect2), "The list of expected buildMSA results did not contain " + result

0 comments on commit a7e57c4

Please sign in to comment.