Skip to content

Commit 9c2dc5b

Browse files
committed
Enrichr links; References; Clustergrammer
1 parent 5d0b541 commit 9c2dc5b

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

appyters/Bulk_RNA_seq/RNA_seq_Analysis_Pipeline.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@
815815
" enrichr_link_dict[title_down] = dict()\n",
816816
" enrichr_link_dict[title_down][\"link\"] = \"<a href=https://maayanlab.cloud/Enrichr/enrich?dataset={} target=\\\"_blank\\\">link to Enrichr</a>\".format(results['enrichr'][label][\"downregulated\"][\"shortId\"])\n",
817817
"\n",
818+
"notebook_metadata['enrichr_links'] = enrichr_link_dict\n",
818819
"enrichr_link_df = pd.DataFrame.from_dict(enrichr_link_dict).T\n",
819820
"table_counter, notebook_metadata = display_object(table_counter, \"The table displays links to Enrichr containing the results of enrichment analyses generated by analyzing the up-regulated and down-regulated genes from a differential expression analysis. By clicking on these links, users can interactively explore and download the enrichment results from the Enrichr website.\", notebook_metadata=notebook_metadata, saved_filename=\"enrichr_links.csv\", df=enrichr_link_df, ishtml=True)"
820821
]

appyters/Bulk_RNA_seq/appyter.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
"$schema": "https://raw.githubusercontent.com/MaayanLab/appyter-catalog/master/schema/appyter-validator.json",
33
"name": "Bulk_RNA_seq",
44
"title": "Bulk RNA-seq analysis pipeline",
5-
"version": "0.1.4",
5+
"version": "0.1.5",
66
"description": "Bulk RNA-seq analysis pipeline enables you to analyze and visualize datasets with state-of-the-art algorithms and visualization methods.",
77
"image": "screenshot.png",
88
"authors": [
99
{
1010
"name": "Minji Jeon",
1111
"email": "minji.jeon1@gmail.com"
12-
}
12+
},
13+
{
14+
"name": "Maxim Kuleshov",
15+
"email": "maxim.kuleshov@mssm.edu"
16+
}
1317
],
1418
"url": "https://github.com/MaayanLab/appyter-catalog",
1519
"tags": [

appyters/Bulk_RNA_seq/utils.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ def plot_l1000cds2(l1000cds2_results, counter, notebook_metadata, nr_drugs=7, he
923923

924924
else:
925925
# Bar charts
926-
fig = tools.make_subplots(rows=1, cols=2, print_grid=False)
926+
fig = tools.make_subplots(rows=1, cols=2, print_grid=False);
927927
for i, direction in enumerate(['mimic', 'reverse']):
928928
drug_counts = l1000cds2_results[direction]['table'].groupby('pert_desc').size().sort_values(
929929
ascending=False).iloc[:nr_drugs].iloc[::-1]
@@ -975,14 +975,15 @@ def plot_l1000cds2(l1000cds2_results, counter, notebook_metadata, nr_drugs=7, he
975975
notebook_metadata, saved_filename=plot_name, istable=False)
976976
notebook_metadata["figures"][str(counter - 1)]["file_desc"] = [
977977
{"name": "Mimic Signature Query Results", "link": l1000cds2_results['mimic']['url']},
978+
{"name": "Reverse Signature Query Results", "link": l1000cds2_results['reverse']['url']}, ]
978979

979-
# Links
980-
display(Markdown(' *Mimic Signature Query Results*:'))
981-
display_link(l1000cds2_results['mimic']['url'])
982-
display(Markdown(' *Reverse Signature Query Results*:'))
983-
display_link(l1000cds2_results['reverse']['url'])
980+
# Links
981+
display(Markdown(' *Mimic Signature Query Results*:'))
982+
display_link(l1000cds2_results['mimic']['url'])
983+
display(Markdown(' *Reverse Signature Query Results*:'))
984+
display_link(l1000cds2_results['reverse']['url'])
984985

985-
return counter, notebook_metadata
986+
return counter, notebook_metadata
986987

987988

988989
def run_l1000fwd(signature, nr_genes=500, signature_label=''):

0 commit comments

Comments
 (0)