Skip to content

Commit 84d29db

Browse files
committed
more name fixes, example notebook corrected for names
1 parent 29bb26e commit 84d29db

4 files changed

Lines changed: 1367 additions & 1450 deletions

File tree

bioplexpy/analysis_funcs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ def get_PPI_network_for_complex(bp_PPI_G, Corum_DF, Complex_ID):
150150
12
151151
'''
152152
# store gene UNIPROT IDs that belong to this complex in a list
153-
genes_in_complex_i = (Corum_DF[Corum_DF.ComplexID == Complex_ID].loc[:,
154-
'subunits(UniProt IDs)'].values[0].split(';'))
153+
genes_in_complex_i = (Corum_DF[Corum_DF.complex_id == Complex_ID].loc[:,
154+
'subunits_uniprot_id'].values[0].split(';'))
155155

156156
# get subgraph induced by the subset of nodes in this CORUM complex
157157
bp_complex_i_G = bp_PPI_G.subgraph(genes_in_complex_i)
@@ -273,8 +273,8 @@ def get_prop_edges_in_complex_identified(bp_PPI_G, Corum_DF, Complex_ID):
273273
>>> get_prop_edges_in_complex_identified(bp_293t_G, Corum_DF, 2851)
274274
'''
275275
# store gene UNIPROT IDs that belong to this complex in a list
276-
genes_in_complex_i = (Corum_DF[Corum_DF.ComplexID == Complex_ID].loc[:,
277-
'subunits(UniProt IDs)'].values[0].split(';'))
276+
genes_in_complex_i = (Corum_DF[Corum_DF.complex_id == Complex_ID].loc[:,
277+
'subunits_uniprot_id'].values[0].split(';'))
278278

279279
# get subgraph induced by the subset of nodes in this CORUM complex
280280
bp_complex_i_G = bp_PPI_G.subgraph(genes_in_complex_i)

bioplexpy/data_import_funcs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def getCorum(complex_set = 'all', organism = 'Human'):
192192

193193
def get_UniProts_from_CORUM(Corum_DF, Complex_ID):
194194
'''
195-
Retreive set of UniProt IDs corresponding to a CORUM complex ID.
195+
Retrieve set of UniProt IDs corresponding to a CORUM complex ID.
196196
197197
This function takes a CORUM complex ID and CORUM complex DataFrame
198198
and returns the corresponding UniProt IDs.
@@ -293,7 +293,7 @@ def get_PDB_from_UniProts(uniprot_IDs_list):
293293
PDB_IDs_for_uniprot_dict[uniprot_ID_i] = mapped_PDB_ID_i
294294

295295
else:
296-
print(f'WARNING: {uniprot_ID_i_complex_i} does not have any '
296+
print(f'WARNING: {uniprot_ID_i} does not have any '
297297
'corresponding PDB IDs mapped.')
298298

299299
# create dictionary of PDB IDs and store list of

bioplexpy/visualization_funcs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ def display_PPI_network_for_complex(ax, bp_PPI_df, Corum_DF, Complex_ID,
5252
{'A0A024R3R1': array([ 1.00000000e+00, -2.29248628e-09]), 'O75446': array([0.88545603, 0.46472316]), 'P29374': array([0.56806476, 0.82298384]), 'Q09028': array([0.12053671, 0.99270884]), 'Q13547': array([-0.35460481, 0.93501625]), 'Q16576': array([-0.74851068, 0.66312264]), 'Q5PSV4': array([-0.9709418 , 0.23931567]), 'Q92769': array([-0.9709418 , -0.23931561]), 'Q96ST3': array([-0.7485108 , -0.66312258]), 'Q9H0E3': array([-0.35460499, -0.9350162 ]), 'Q9H160': array([ 0.12053676, -0.99270884]), 'Q9H7L9': array([ 0.56806458, -0.82298396]), 'Q9HCU9': array([ 0.88545603, -0.46472319])}
5353
'''
5454
# store uniprot IDs & gene symbols that belong to this complex in a list
55-
genes_in_complex_i = (Corum_DF[Corum_DF.ComplexID == Complex_ID]
56-
.loc[:,'subunits(UniProt IDs)'].values[0]
55+
genes_in_complex_i = (Corum_DF[Corum_DF.complex_id == Complex_ID]
56+
.loc[:,'subunits_uniprot_id'].values[0]
5757
.split(';')) # Uniprot
5858

59-
gene_symbols_in_complex_i = (Corum_DF[Corum_DF.ComplexID == Complex_ID]
60-
.loc[:,'subunits(Gene name)'].values[0]
59+
gene_symbols_in_complex_i = (Corum_DF[Corum_DF.complex_id == Complex_ID]
60+
.loc[:,'subunits_gene_name'].values[0]
6161
.split(';')) # Symbol
6262

6363
# filter BioPlex PPI dataframe to include only interactions

0 commit comments

Comments
 (0)