Skip to content

Commit

Permalink
Merging updates for CLI interface and tutorials.
Browse files Browse the repository at this point in the history
The updated CLI code helps display progress bars in CLI executions of network analysis.
New toolkit functions help users determine nodegroups for non-canonical
amino acid residues or other residues such as sugars, lipids, and small molecules.
  • Loading branch information
melomcr committed Aug 25, 2022
2 parents d3c053b + 2dce6b0 commit d301b1f
Show file tree
Hide file tree
Showing 5 changed files with 189 additions and 217 deletions.
11 changes: 7 additions & 4 deletions dynetan/datastorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def saveToFile(self, fileNameRoot):

f_numNodes = f.create_dataset("numNodes", dtype='i', data= self.numNodes)

f_nodeDists = f.create_dataset("nodeDists",
if self.nodeDists is not None:
f_nodeDists = f.create_dataset("nodeDists",
shape= self.nodeDists.shape,
dtype= self.nodeDists.dtype,
data= self.nodeDists)
Expand All @@ -110,12 +111,14 @@ def saveToFile(self, fileNameRoot):

f_maxDirectDist = f.create_dataset("maxDirectDist", dtype='f8', data= self.maxDirectDist )

f_interNodePairs = f.create_dataset("interNodePairs",

if self.interNodePairs is not None:
f_interNodePairs = f.create_dataset("interNodePairs",
shape= self.interNodePairs.shape,
dtype= self.interNodePairs.dtype,
data= self.interNodePairs)

f_contactNodesInter = f.create_dataset("contactNodesInter",
if self.contactNodesInter is not None:
f_contactNodesInter = f.create_dataset("contactNodesInter",
shape= self.contactNodesInter.shape,
dtype= self.contactNodesInter.dtype,
data= self.contactNodesInter)
Expand Down
Loading

0 comments on commit d301b1f

Please sign in to comment.