File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- pandas>=2.0.0
1
+ pandas
2
2
biopandas>=0.5.1
3
3
biopython
4
4
bioservices>=1.10.0
@@ -8,7 +8,7 @@ looseversion
8
8
matplotlib>=3.4.3
9
9
multipledispatch
10
10
networkx
11
- numpy<1.24 .0
11
+ numpy>2.0 .0
12
12
pandas
13
13
plotly
14
14
pydantic
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ def add_sidechain_vector(
47
47
if "rgroup_df" not in g .graph .keys ():
48
48
g .graph ["rgroup_df" ] = compute_rgroup_dataframe (g .graph ["raw_pdb_df" ])
49
49
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
+ )
51
53
52
54
# Iterate over nodes and compute vector
53
55
for n , d in g .nodes (data = True ):
Original file line number Diff line number Diff line change @@ -267,7 +267,9 @@ def protein_to_pyg(
267
267
268
268
if store_bfactor :
269
269
# 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
+ )
271
273
out .bfactor = torch .from_numpy (residue_bfactors .values )
272
274
273
275
return out
You can’t perform that action at this time.
0 commit comments