Skip to content

Commit 0340fe0

Browse files
committed
Merge branch 'v.1.7.7' of https://github.com/a-r-j/graphein into v.1.7.7
2 parents 6daa733 + d41028d commit 0340fe0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.requirements/base.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pandas>=2.0.0
1+
pandas
22
biopandas>=0.5.1
33
biopython
44
bioservices>=1.10.0
@@ -8,7 +8,7 @@ looseversion
88
matplotlib>=3.4.3
99
multipledispatch
1010
networkx
11-
numpy<1.24.0
11+
numpy>2.0.0
1212
pandas
1313
plotly
1414
pydantic

graphein/protein/features/nodes/geometry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def add_sidechain_vector(
4747
if "rgroup_df" not in g.graph.keys():
4848
g.graph["rgroup_df"] = compute_rgroup_dataframe(g.graph["raw_pdb_df"])
4949

50-
sc_centroid = g.graph["rgroup_df"].groupby("node_id").mean(numeric_only=True)
50+
sc_centroid = (
51+
g.graph["rgroup_df"].groupby("node_id").mean(numeric_only=True)
52+
)
5153

5254
# Iterate over nodes and compute vector
5355
for n, d in g.nodes(data=True):

graphein/protein/tensor/io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ def protein_to_pyg(
267267

268268
if store_bfactor:
269269
# group by residue_id and average b_factor per residue
270-
residue_bfactors = df.groupby("residue_id")["b_factor"].mean(numeric_only=True)
270+
residue_bfactors = df.groupby("residue_id")["b_factor"].mean(
271+
numeric_only=True
272+
)
271273
out.bfactor = torch.from_numpy(residue_bfactors.values)
272274

273275
return out

0 commit comments

Comments
 (0)