Skip to content

Commit

Permalink
#2336 - Ribose sugar doesn't allow to load IDT custom mixed bases (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AliaksandrDziarkach committed Sep 10, 2024
1 parent f35fe56 commit 78dfe63
Show file tree
Hide file tree
Showing 7 changed files with 1,123 additions and 3 deletions.
2 changes: 2 additions & 0 deletions api/tests/integration/ref/formats/idt_to_ket.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ idt_mixed_std.ket:SUCCEED
idt_mod_phosphates.ket:SUCCEED
idt_modifications.ket:SUCCEED
idt_prefix_suffix.ket:SUCCEED
idt_rna_dna_mixed_custom.ket:SUCCEED
idt_single_nucleoside.ket:SUCCEED
idt_std_phosphates.ket:SUCCEED
idt_t_i2moera.ket:SUCCEED
Expand All @@ -46,5 +47,6 @@ Test 'Ar/3Phos/': got expected error 'Sugar prefix could not be used with modifi
Test 'T/52MOErA/': got expected error 'IDT alias '52MOErA' cannot be used at three prime end.'
Test 'T/5Phos/': got expected error 'IDT alias '5Phos' cannot be used at three prime end.'
Test 'm/5Phos/A': got expected error 'Sugar prefix could not be used with modified monomer.'
Test 'r(B1:50003000)(B1)': got expected error 'Unknown mixed base 'B1''
Test 'r+A': got expected error 'Sugar prefix 'r' whithout base.'
Test 'r/5Phos/A': got expected error 'Sugar prefix could not be used with modified monomer.'
1 change: 1 addition & 0 deletions api/tests/integration/ref/formats/ket_to_idt.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ idt_mod_phosphates.ket:SUCCEED
idt_modifications.ket:SUCCEED
idt_more_than_80_chars.ket:SUCCEED
idt_prefix_suffix.ket:SUCCEED
idt_rna_dna_mixed_custom.ket:SUCCEED
idt_single_nucleoside.ket:SUCCEED
idt_std_phosphates.ket:SUCCEED
idt_t_i2moera.ket:SUCCEED
Expand Down
2 changes: 2 additions & 0 deletions api/tests/integration/tests/formats/idt_to_ket.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def find_diff(a, b):
"idt_unsplit": "/5UNSPLIT//iUNSPLIT//3UNSPLIT/",
"idt_mixed_std": "ARAS",
"idt_mixed_custom": "(N1:10203050)(N1)N",
"idt_rna_dna_mixed_custom": "r(R1:50003000)(R1)",
}

lib = indigo.loadMonomerLibraryFromFile(
Expand Down Expand Up @@ -99,6 +100,7 @@ def find_diff(a, b):
"/52MOErA/*/3Phos/": "Symbol '*' could be placed only between two nucleotides/nucleosides.",
"/52MOErA//32MOErA/*": "Monomer /32MOErA/ doesn't have phosphate, so '*' couldn't be applied.",
"/3Phos/*": "Symbol '*' could be placed only between two nucleotides/nucleosides.",
"r(B1:50003000)(B1)": "Unknown mixed base 'B1'",
}
for idt_seq in sorted(idt_errors.keys()):
error = idt_errors[idt_seq]
Expand Down
1 change: 1 addition & 0 deletions api/tests/integration/tests/formats/ket_to_idt.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def find_diff(a, b):
"idt_more_than_80_chars": "/52MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//i2MOErA//3Phos/",
"idt_mixed_std": "ARAS",
"idt_mixed_custom": "(N1:10203050)(N1)N",
"idt_rna_dna_mixed_custom": "r(R1:50003000)(R1)",
}

for filename in sorted(idt_data.keys()):
Expand Down
Loading

0 comments on commit 78dfe63

Please sign in to comment.