Skip to content

Commit

Permalink
chore: fix formatting with black
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiquesydow committed Feb 25, 2024
1 parent 00a497a commit cb3a39f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions opencadd/structure/superposition/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Command Line Interface for opencadd
"""

import argparse
import logging

Expand Down
1 change: 1 addition & 0 deletions opencadd/structure/superposition/engines/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Base class for all the superposition engines.
"""

import logging

_logger = logging.getLogger(__name__)
Expand Down
1 change: 0 additions & 1 deletion opencadd/structure/superposition/engines/mda.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class MDAnalysisAligner(BaseAligner):

"""
Factory to configure an aligner based on
MDAnalysis' superposition algorithms.
Expand Down
2 changes: 1 addition & 1 deletion opencadd/structure/superposition/engines/theseus.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Accurate structural correlations from maximum likelihood superpositions.
Theobald, Douglas L. & Wuttke, Deborah S. (2008) PLOS Computational Biology 4(2):e43
"""

import os
import subprocess
import logging
Expand All @@ -33,7 +34,6 @@


class TheseusAligner(BaseAligner):

"""
Superpose structures with different sequences but similar structures
Expand Down
15 changes: 8 additions & 7 deletions opencadd/structure/superposition/sequences.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utilities for sequence alignment
"""

import logging

import numpy as np
Expand Down Expand Up @@ -89,13 +90,13 @@ def find_gap_character(seq):
gap character if found: str
None else
"""
if '-' in seq:
return '-'
elif '=' in seq:
return '='
if "-" in seq:
return "-"
elif "=" in seq:
return "="
else:
return ''
#raise ValueError("No standard gap character found!")
return ""
# raise ValueError("No standard gap character found!")


def fasta2select(
Expand Down Expand Up @@ -225,4 +226,4 @@ def resid(nseq, ipos, t=t, s=s):

ref_selection = " or ".join(sel[0])
target_selection = " or ".join(sel[1])
return {"reference": ref_selection, "mobile": target_selection}
return {"reference": ref_selection, "mobile": target_selection}

0 comments on commit cb3a39f

Please sign in to comment.