Skip to content

Commit

Permalink
ml post processing pre-commit and config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalluri committed Sep 6, 2023
1 parent 0e15534 commit 75be8b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
include: false
# Machine learning analysis (e.g. clustering) of the pathway output files for each dataset
ml:
include: false
include: true
# specify how many principal components to calculate
components: 2
# boolean to show the labels on the pca graph
Expand Down
6 changes: 3 additions & 3 deletions src/analysis/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ def summarize_networks(file_paths: Iterable[Union[str, PathLike]]) -> pd.DataFra
edges.append(UNDIR_CONST.join([node1, node2]))
elif direction == "D":
edges.append(DIR_CONST.join([node1, node2]))
else:
else:
ValueError(f"direction is {direction}, rather than U or D")

# getting the algorithm name
p = PurePath(file)
edge_tuples.append((p.parts[-2], edges))

except FileNotFoundError:
print(file, ' not found during ML analysis') # should not hit this
continue
Expand Down

0 comments on commit 75be8b8

Please sign in to comment.