Commit 003a72c5 authored by Ayse Berceste Dincer's avatar Ayse Berceste Dincer
Browse files

curated hierarchies

parent 35be696e
No preview for this file type
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
%% Cell type:code id: tags:
``` python
import numpy as np
import pandas as pd
```
%% Cell type:code id: tags:
``` python
HIERARCHY = pd.read_table('GO_CC_Hierarchy_FINAL.tsv', index_col = 0)
print("All pathways ", HIERARCHY.shape)
for i in range(HIERARCHY.shape[1]):
print("Layer ", i + 1)
print(len(np.unique(HIERARCHY.iloc[:, i].values.astype(str))))
```
%% Cell type:code id: tags:
``` python
HIERARCHY = pd.read_table('GO_MF_Hierarchy_FINAL.tsv', index_col = 0)
print("All pathways ", HIERARCHY.shape)
for i in range(HIERARCHY.shape[1]):
print("Layer ", i + 1)
print(len(np.unique(HIERARCHY.iloc[:, i].values.astype(str))))
```
%% Cell type:code id: tags:
``` python
HIERARCHY = pd.read_table('GO_BP_Hierarchy_FINAL.tsv', index_col = 0)
print("All pathways ", HIERARCHY.shape)
for i in range(HIERARCHY.shape[1]):
print("Layer ", i + 1)
print(len(np.unique(HIERARCHY.iloc[:, i].values.astype(str))))
```
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
```
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment