File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
3+ import pytest
4+
5+ from instanexus .preprocessing import remove_modifications
6+
7+ def test_remove_modifications ():
8+ assert remove_modifications ("A(ox)BC(mod)D" ) == "ABCD"
9+ assert remove_modifications ("A[UNIMOD:21]BC[UNIMOD:35]D" ) == "ABCD"
10+ assert (
11+ remove_modifications ("A(ox)[UNIMOD:21]BC(mod)[UNIMOD:35]D" ) == "ABCD"
12+ )
13+ assert remove_modifications (None ) is None
14+ assert remove_modifications ("ACD" ) == "ACD"
15+ assert remove_modifications ("A(I)BCD" ) == "ABCD"
16+ assert remove_modifications ("A(ox)B(I)C(mod)D" ) == "ABCD"
17+ assert (
18+ remove_modifications ("A(ox)[UNIMOD:21]B(I)C(mod)[UNIMOD:35]D" ) == "ABCD"
19+ )
20+ assert remove_modifications ("AI BCD" ) == "AL BCD"
21+ assert remove_modifications ("A(ox)I B(mod)CD" ) == "AL BCD"
You can’t perform that action at this time.
0 commit comments