Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellszi committed Mar 11, 2024
1 parent f623b93 commit 91fba69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/generate_modifications_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from Bio.Data import SCOPData

VALID_RNA_CODES = set('ACGUT')
VALID_RNA_CODES = set("ACGUT")

# a few values are adjusted manually to make sure we are as correct as possible
# and to avoid inconsistency with AlphaFold
Expand Down Expand Up @@ -106,7 +106,7 @@ def main(args):

for k, v in modifications.items():
if comp_types[k] == "protein":
data["protein"][k] = v
data["protein"][k] = v
if comp_types[k] == "rna":
if v in VALID_RNA_CODES:
data["rna"][k] = v
Expand Down
5 changes: 3 additions & 2 deletions tests/test_modifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@


class TestModifications(unittest.TestCase):
modification_handler = ModificationHandler("tests/test_data/modifications_cache.json")
modification_handler = ModificationHandler(
"tests/test_data/modifications_cache.json"
)

# accept both A and U for selenocysteines
# note that selenocysteines that are incorrectly encoded in SCOPData
Expand Down Expand Up @@ -64,4 +66,3 @@ def test_biopython_coverage(self):

if __name__ == "__main__":
unittest.main()

0 comments on commit 91fba69

Please sign in to comment.