Skip to content

Commit

Permalink
Use regex mode to allow searching for atom names containing '
Browse files Browse the repository at this point in the history
As discussed here OpenBioSim/sire#115
  • Loading branch information
fjclark committed Oct 22, 2023
1 parent d3fcd46 commit 4ff8e23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/BioSimSpace/_SireWrappers/_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,7 @@ def getRestraintAtoms(
"(not water) and (resname "
+ ",".join(prot_res)
+ ",".join(nucl_res)
+ ") and (atomname N,CA,C,O,P,C5',C3',O3',O5')"
+ ") and (atomname N,CA,C,O,P,/C5'/,/C3'/,/O3'/,/O5'/)"
)
try:
search = self.search(string, property_map)
Expand Down Expand Up @@ -2028,7 +2028,7 @@ def getRestraintAtoms(
"(not water) and (resname "
+ ",".join(prot_res)
+ ",".join(nucl_res)
+ ") and (atomname N,CA,C,O,P,C5',C3',O3',O5')"
+ ") and (atomname N,CA,C,O,P,/C5'/,/C3'/,/O3'/,/O5'/)"
)
try:
search = mol.search(string, _property_map)
Expand Down Expand Up @@ -2085,7 +2085,7 @@ def getRestraintAtoms(
"(resname "
+ ",".join(prot_res)
+ ",".join(nucl_res)
+ ") and (atomname N,CA,C,O,P,C5',C3',O3',O5')"
+ ") and (atomname N,CA,C,O,P,/C5'/,/C3'/,/O3'/,/O5'/)"
)
try:
search = mol.search(string, _property_map)
Expand Down

0 comments on commit 4ff8e23

Please sign in to comment.