Skip to content

lab07(Andrei Daha, Radu Bals): lab07-network-viz#34

Open
AndreiCod wants to merge 3 commits intobozdogalex:mainfrom
AndreiCod:feat/lab07-network-viz
Open

lab07(Andrei Daha, Radu Bals): lab07-network-viz#34
AndreiCod wants to merge 3 commits intobozdogalex:mainfrom
AndreiCod:feat/lab07-network-viz

Conversation

@AndreiCod
Copy link
Copy Markdown

Summary

  • implemented exercises

Lab(s) affected

  • lab07-network-viz

Checklist

  • Runs locally (README/Setup followed)
  • Notebook outputs cleared (or pre-commit used)
  • No large data added to repo
  • If MLflow used, runs are reproducible

- Implement all helper functions in ex01_network_viz.py:
  - ensure_exists(): validate input files exist
  - read_expression_matrix(): load CSV with gene index
  - read_modules_csv(): parse module mapping to dict
  - correlation_to_adjacency(): compute Spearman correlations with threshold
  - graph_from_adjacency(): convert to NetworkX graph, remove isolates
  - color_map_from_modules(): assign tab10 colors by module
  - compute_hubs(): find top-k genes by degree centrality

- Generate outputs:
  - network_AndreiCod.png: spring layout visualization with module colors
  - hubs_AndreiCod.csv: top 10 hub genes with degree

- Add reflection notes on visualization advantages vs numeric analysis

Parameters used (same as Lab 6):
- Spearman correlation
- Absolute correlations
- Threshold: 0.85

Results: 80 nodes, 593 edges, top hub: Gene_55 (degree 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant