Commit 24c9cf56 authored by Nicolas  MAILLET's avatar Nicolas MAILLET
Browse files

change miss-cleavage to miscleavage

parent 4bfe2279
......@@ -20,7 +20,7 @@ def test_resultonedigestion():
# Test function '__repr__()'
res_dig0 = digest.ResultOneDigestion(enz_name, peptides, nb_cleav, pos_mc)
assert res_dig0.__repr__() == "Number of cleavage: 1\nNumber of miss-clea"\
assert res_dig0.__repr__() == "Number of cleavage: 1\nNumber of misclea"\
"vage: 2\nPositions of miscleavage: [2, 3"\
"]\nRatio of miscleavage: 66.666666666666"\
"66\nPeptides: [Original header: Test\nNo. "\
......@@ -113,7 +113,7 @@ def test_resultonedigestion():
# Test function 'get_more_info()'
assert res_dig5.get_more_info() == "\nNumber of cleavage: 5\nCleavage pos"\
"ition: 3, 4, 3\nNumber of miss-cleava"\
"ition: 3, 4, 3\nNumber of miscleava"\
"ge: 6\nmiscleavage position: 2, 3, "\
"4, 6, 2, 3\nmiscleavage ratio: "\
"54.55%\nSmallest peptide size: 8\nN t"\
......@@ -344,7 +344,7 @@ def test_digest_from_input(capsys, tmpdir):
# Test input data
seq = "WQSDESDFZQSDESDF"
res = digest.digest_from_input(seq, enzymes, mode)
assert res[0][0].__repr__() == "Number of cleavage: 4\nNumber of miss-cle"\
assert res[0][0].__repr__() == "Number of cleavage: 4\nNumber of miscle"\
"avage: 0\nPositions of miscleavage: []"\
"\nRatio of miscleavage: 0.0\nPeptides: "\
"[Original header: Input\nNo. peptide: 0"\
......@@ -370,7 +370,7 @@ def test_digest_from_input(capsys, tmpdir):
fasta_file = tmpdir.join("test.fasta")
fasta_file.write(">Fake1\nWQSDESDFZQS\nDESDF\n>Fake2\nNPHARDORCOMPLET")
res = digest.digest_from_input(str(fasta_file), enzymes, mode)
assert res[0][0].__repr__() == "Number of cleavage: 4\nNumber of miss-cle"\
assert res[0][0].__repr__() == "Number of cleavage: 4\nNumber of miscle"\
"avage: 0\nPositions of miscleavage: []"\
"\nRatio of miscleavage: 0.0\nPeptides: "\
"[Original header: Fake1\nNo. peptide: 0\n"\
......@@ -391,7 +391,7 @@ def test_digest_from_input(capsys, tmpdir):
"ide: 4\nEnzyme: fake_enzyme1\nCleav. pos:"\
" 16\nPep. size: 1\nPep. mass: 165.19188\n"\
"Pep. pI: 5.54\nSequence: F\n]\n"
assert res[1][0].__repr__() == "Number of cleavage: 0\nNumber of miss-cle"\
assert res[1][0].__repr__() == "Number of cleavage: 0\nNumber of miscle"\
"avage: 0\nPositions of miscleavage: []"\
"\nRatio of miscleavage: 0\nPeptides: [O"\
"riginal header: Fake2\nNo. peptide: 0\nEn"\
......@@ -404,7 +404,7 @@ def test_digest_from_input(capsys, tmpdir):
fastq_file.write("@Fake1\nWQSDESDFZQSDESDF\n+Fake1\nnWQSDESDFZQSDESDF\n@Fa"\
"ke2\nNPHARDORCOMPLET\n+Fake2\nnNPHARDORCOMPLET\n")
res = digest.digest_from_input(str(fastq_file), enzymes, mode)
assert res[0][0].__repr__() == "Number of cleavage: 4\nNumber of miss-cle"\
assert res[0][0].__repr__() == "Number of cleavage: 4\nNumber of miscle"\
"avage: 0\nPositions of miscleavage: []"\
"\nRatio of miscleavage: 0.0\nPeptides: "\
"[Original header: Fake1\nNo. peptide: 0\n"\
......@@ -425,7 +425,7 @@ def test_digest_from_input(capsys, tmpdir):
"ide: 4\nEnzyme: fake_enzyme1\nCleav. pos:"\
" 16\nPep. size: 1\nPep. mass: 165.19188\n"\
"Pep. pI: 5.54\nSequence: F\n]\n"
assert res[1][0].__repr__() == "Number of cleavage: 0\nNumber of miss-cle"\
assert res[1][0].__repr__() == "Number of cleavage: 0\nNumber of miscle"\
"avage: 0\nPositions of miscleavage: []"\
"\nRatio of miscleavage: 0\nPeptides: [O"\
"riginal header: Fake2\nNo. peptide: 0\nEn"\
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment