Skip to content

Illustration of the GeneWalk network #54

Answered by ri23
izu0421 asked this question in Q&A
Discussion options

You must be logged in to vote

Just for completeness below is the script to generate the GWN subgraph around 3 chosen genes of interest (see Figure 3B of our publication) also discussed here:
#28 (comment)

#!/usr/bin/env python
# coding: utf-8

# # GeneWalk network visualization


import os
import re
import copy
import pickle as pkl
import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
plt.rcParams['pdf.fonttype'] = 42


# ### Load GeneWalk multigraph and results

path = '/home/genewalk/qki/'   

filename = 'multi_graph.pkl'
with open(os.path.join(path,filename), 'rb') as f:
    MG = pkl.load(f)

filename = 'genewalk_results.csv'
GW = pd.read_csv(os.path.join(path,filename)) 


# ## QKI subnetwork v…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ri23
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #29 on April 19, 2021 20:54.