Skip to content

Commit fd17f48

Browse files
committed
v0.1.6 - Bug fix for Pubmed Enrichment
- Fix print statement for query gene comentions
1 parent 41e5fe6 commit fd17f48

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pyCfS
2-
Version 0.1.5<br>
2+
Version 0.1.6<br>
33
The aggregation of Lichtarge Lab genotype-phenotype validation experiments<br>
44

55
## Installation

pyCfS/GoldStandards.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,10 +2284,13 @@ def _get_unique_gene_network_bw_method_connections(network:pd.DataFrame, unique_
22842284
bw_method_edges = []
22852285

22862286
for g in net_genes:
2287+
# Get all connections where node1 = g
22872288
df1 = network[network['node1'] == g]
2289+
# Get all genes connected to g in node2
22882290
df1_genes = df1['node2'].tolist()
2289-
2291+
# Loop through all genes connected to g in node2
22902292
for p in df1_genes:
2293+
# If the genes is not from the same set, add to bw_method_edges
22912294
if unique_dict[p][0] != unique_dict[g][0]:
22922295
bw_method_edges.append([g, p])
22932296

@@ -3430,7 +3433,6 @@ def pubmed_comentions(query:list, keyword: str = False, custom_terms: str = Fals
34303433
output_name = keyword if keyword else custom_terms
34313434
# Pull the query co_mentions with keyword
34323435
query_comention_df = _fetch_query_pubmed(query, keyword, custom_terms, email, api_key, field, workers)
3433-
print(query_comention_df.head())
34343436
# Pull co_mentions for a random set of genes
34353437
if run_enrichment:
34363438
background_dict, background_name = _define_background_list(custom_background)

pyCfS/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
from .utils import _hypergeo_overlap, _load_grch38_background, _load_string, _load_reactome, _get_open_targets_gene_mapping, _define_background_list, _clean_genelists, _format_scientific, _fix_savepath, _select_evidences, _get_evidence_types, _get_combined_score, _get_edge_weight, _load_clean_string_network, _validate_ea_thresh, _validate_af_thresh
1212

13-
__version__ = '0.1.5'
13+
__version__ = '0.1.6'
1414
__author__ = 'Kevin Wilhelm, Jenn Asmussen'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
import setuptools
55

6-
VERSION = '0.1.5'
6+
VERSION = '0.1.6'
77

88
setuptools.setup(
99
name = 'pyCfS',

0 commit comments

Comments
 (0)