Skip to content

Commit

Permalink
lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
clami66 committed May 15, 2024
1 parent 75e4a19 commit a465233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/DockQ/DockQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@

import numpy as np
from Bio import Align
from Bio.SeqUtils import seq1
from Bio.SVDSuperimposer import SVDSuperimposer
from parallelbar import progress_map
import networkx as nx

# fallback in case the cython version doesn't work, though it will be slower
try:
Expand Down Expand Up @@ -172,7 +170,7 @@ def calc_sym_corrected_lrmsd(
alignments,
low_memory=False,
):

import networkx as nx
is_het_sample_0 = bool(sample_chains[0].is_het)
is_het_sample_1 = bool(sample_chains[1].is_het)

Expand Down Expand Up @@ -596,6 +594,7 @@ def run_on_chains(


def create_graph(atom_list, threshold=2.0):
import networkx as nx
G = nx.Graph()
for i, atom_i in enumerate(atom_list):
for j, atom_j in enumerate(atom_list):
Expand Down
1 change: 0 additions & 1 deletion src/DockQ/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import numpy as np
import Bio
from Bio.PDB.MMCIF2Dict import MMCIF2Dict
from Bio.PDB.StructureBuilder import StructureBuilder
from Bio.PDB.PDBExceptions import PDBConstructionWarning
from Bio.PDB.PDBExceptions import PDBConstructionException
from Bio.PDB.PDBParser import as_handle
Expand Down

0 comments on commit a465233

Please sign in to comment.