Skip to content

Commit

Permalink
update eigenvector computation method a-r-j#156 (a-r-j#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-j authored Apr 15, 2022
1 parent ac66a1d commit 3ceb9c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
### 1.4.0 - UNRELEASED

* [Patch] - #158 changes the eigenvector computation method from `nx.eigenvector_centrality` to `nx.eigenvector_centrality_numpy`.

### 1.3.1 - UNRELEASED

* [Feature] - #154 adds a way of checking that DSSP is executable before trying to use it. #154

### 1.3.0 - 5/4/22
Expand All @@ -10,7 +15,7 @@
* [Feature] - #144 adds support for automagically downloading new PDB files for obsolete structures.
* [Feature] - #150 adds support for hydrogen bond donor and acceptor counts node features. #145
* [Misc] - #144 makes visualisation functions accessible in the `graphein.protein` namespace. #138
* [Bugfix] - #147 fixes error in `add_distance_threshold` introduced in v1.2.1 that would prevent the edges being added to the graph. [#146](https://github.com/a-r-j/graphein/issues/146)
* [Bugfix] - #147 fixes error in `add_distance_threshold` introduced in v1.2.1 that would prevent the edges being added to the graph. [#146](https://github.com/a-r-j/graphein/issues/146)
* [Bugfix] - #149 fixes a bug in `add_beta_carbon_vector` that would cause coordinates to be extracted for multiple positions if the residue has an altloc. Resolves [#148](https://github.com/a-r-j/graphein/issues/148)

### 1.2.1 - 16/3/22
Expand Down
2 changes: 1 addition & 1 deletion graphein/protein/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def graph_summary(
col_list.append(closeness)
col_names.append("closeness_centrality")
if "eigenvector_centrality" in summary_statistics:
eigenvector = pd.Series(nx.eigenvector_centrality(G))
eigenvector = pd.Series(nx.eigenvector_centrality_numpy(G))
col_list.append(eigenvector)
col_names.append("eigenvector_centrality")
if "communicability_betweenness_centrality" in summary_statistics:
Expand Down

0 comments on commit 3ceb9c8

Please sign in to comment.