|
580 | 580 | "outputs": [], |
581 | 581 | "source": [ |
582 | 582 | "dataset['dataset_metadata'] = meta_df\n", |
583 | | - "\n", |
| 583 | + "ref_counter = ['Clark, N.R. and Ma’ayan, A. (2011) Introduction to statistical methods to analyze large data sets: principal components analysis. Sci. Signal., 4, tr3-tr3.']\n", |
584 | 584 | "table_counter, notebook_metadata = display_object(table_counter, \"Raw RNA-seq expression data. The table displays the first 5 rows of the quantified RNA-seq expression dataset. Rows represent genes, columns represent samples, and values show the number of mapped reads.\", notebook_metadata, \"raw_exp.csv\", dataset[current_dataset].head(), istable=True)\n", |
585 | 585 | "table_counter, notebook_metadata = display_object(table_counter, \"Metadata. The table displays the metadata associated with the samples in the RNA-seq dataset. Rows represent RNA-seq samples, columns represent metadata categories.\", notebook_metadata, \"metadata.csv\", dataset['dataset_metadata'].head(), istable=True)\n", |
586 | 586 | "table_counter, notebook_metadata = display_object(table_counter, \"Sample size for each class. The table displays the number of samples in each class.\", notebook_metadata, \"num_of_samples_in_class.csv\", dataset['dataset_metadata'].reset_index().groupby(meta_class_column_name).count(), istable=True)" |
|
682 | 682 | "source": [ |
683 | 683 | "# Run analysis\n", |
684 | 684 | "results['clustergrammer'] = run_clustergrammer(dataset=dataset, meta_class_column_name=meta_class_column_name, nr_genes=clustering_topk, normalization=normalization, z_score=True, gene_list=gene_list_for_clustergrammer)\n", |
685 | | - "\n", |
| 685 | + "ref_counter.append('Fernandez, Nicolas F., et al. \"Clustergrammer, a web-based heatmap visualization and analysis tool for high-dimensional biological data.\" Scientific data 4 (2017): 170151.')\n", |
686 | 686 | "# Display results\n", |
687 | 687 | "plot_clustergrammar(results['clustergrammer'])\n", |
688 | 688 | "caption = \"Clustered heatmap plot. The figure contains an interactive heatmap displaying gene expression for each sample in the RNA-seq dataset. Every row of the heatmap represents a gene, every column represents a sample, and every cell displays normalized gene expression values. The heatmap additionally features color bars beside each column which represent prior knowledge of each sample, such as the tissue of origin or experimental treatment.\"\n", |
|
745 | 745 | "outputs": [], |
746 | 746 | "source": [ |
747 | 747 | "signatures = get_signatures(classes, dataset, normalization, diff_gex_method, meta_class_column_name, filter_genes)\n", |
748 | | - "\n", |
| 748 | + "ref_counter.extend(['Ritchie, Matthew E., et al. limma powers differential expression analyses for RNA-sequencing and microarray studies. Nucleic acids research 43.7 (2015): e47-e47.', 'Clark, Neil R., et al. The characteristic direction: a geometrical approach to identify differentially expressed genes. BMC bioinformatics 15.1 (2014): 79.'])\n", |
749 | 749 | "for label, signature in signatures.items():\n", |
750 | 750 | " case_label = label.split(\" vs. \")[1]\n", |
751 | 751 | " table_counter, notebook_metadata = display_object(table_counter, \"Differentially expressed genes between {} using {}. The figure displays a browsable table containing the gene expression signature generated from a differential gene expression analysis. Every row of the table represents a gene; the columns display the estimated measures of differential expression.\".format(label, diff_gex_method), notebook_metadata, \"DEG_results_{}.csv\".format(label), signature, istable=True)\n", |
|
806 | 806 | "outputs": [], |
807 | 807 | "source": [ |
808 | 808 | "# Loop through signatures\n", |
| 809 | + "ref_counter.append('Kuleshov, M.V., Jones, M.R., Rouillard, A.D., Fernandez, N.F., Duan, Q., Wang, Z., Koplev, S., Jenkins, S.L., Jagodnik, K.M. and Lachmann, A. (2016) Enrichr: a comprehensive gene set enrichment analysis web server 2016 update. Nucleic acids research, 44, W90-W97.')\n", |
809 | 810 | "results = {}\n", |
810 | 811 | "results['enrichr']= {}\n", |
811 | 812 | "if diff_gex_method == \"characteristic_direction\":\n", |
|
850 | 851 | "%%appyter markdown\n", |
851 | 852 | "{% if \"Gene Ontology\" in enrichr_libraries.value %}\n", |
852 | 853 | "# GO Enrichment Analysis\n", |
853 | | - "Gene Ontology (GO) (Ashburner et al. 2000) is a major bioinformatics initiative aimed at unifying the representation of gene attributes across all species. It contains a large collection of experimentally validated and predicted associations between genes and biological terms. This information can be leveraged by Enrichr to identify the biological processes, molecular functions and cellular components which are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
| 854 | + "Gene Ontology (GO) [{{ref_counter|length}}] is a major bioinformatics initiative aimed at unifying the representation of gene attributes across all species. It contains a large collection of experimentally validated and predicted associations between genes and biological terms. This information can be leveraged by Enrichr to identify the biological processes, molecular functions and cellular components which are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
854 | 855 | "{% endif %}" |
855 | 856 | ] |
856 | 857 | }, |
|
862 | 863 | "source": [ |
863 | 864 | "%%appyter code_exec\n", |
864 | 865 | "{% if \"Gene Ontology\" in enrichr_libraries.value %}\n", |
865 | | - "\n", |
| 866 | + "ref_counter.append('Ashburner, M., Ball, C.A., Blake, J.A., Botstein, D., Butler, H., Cherry, J.M., Davis, A.P., Dolinski, K., Dwight, S.S. and Eppig, J.T. (2000) Gene Ontology: tool for the unification of biology. Nature genetics, 25, 25.')\n", |
866 | 867 | "results['go_enrichment'] = {}\n", |
867 | 868 | "for label, signature in signatures.items():\n", |
868 | 869 | " # Run analysis\n", |
|
891 | 892 | "%%appyter markdown\n", |
892 | 893 | "{% if \"Pathway\" in enrichr_libraries.value %}\n", |
893 | 894 | "# Pathway Enrichment Analysis\n", |
894 | | - "Biological pathways are sequences of interactions between biochemical compounds which play a key role in determining cellular behavior. Databases such as KEGG (Kanehisa et al. 2000), Reactome (Croft et al. 2014) and WikiPathways (Kelder et al. 2012) contain a large number of associations between such pathways and genes. This information can be leveraged by Enrichr to identify the biological pathways which are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
| 895 | + "Biological pathways are sequences of interactions between biochemical compounds which play a key role in determining cellular behavior. Databases such as KEGG [{{ref_counter|length}}], Reactome [{{ref_counter|length + 1}}] and WikiPathways [{{ref_counter|length + 2}}] contain a large number of associations between such pathways and genes. This information can be leveraged by Enrichr to identify the biological pathways which are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
895 | 896 | "{% endif %}" |
896 | 897 | ] |
897 | 898 | }, |
|
904 | 905 | "%%appyter code_exec\n", |
905 | 906 | "{% if \"Pathway\" in enrichr_libraries.value %}\n", |
906 | 907 | "# Initialize results\n", |
| 908 | + "ref_counter.extend(['Kanehisa, M. and Goto, S. (2000) KEGG: kyoto encyclopedia of genes and genomes. Nucleic acids research, 28, 27-30.', 'Croft, David, et al. The Reactome pathway knowledgebase. Nucleic acids research 42.D1 (2014): D472-D477.', 'Kelder, Thomas, et al. WikiPathways: building research communities on biological pathways. Nucleic acids research 40.D1 (2012): D1301-D1307.'])\n", |
907 | 909 | "results['pathway_enrichment'] = {}\n", |
908 | 910 | "\n", |
909 | 911 | "# Loop through results\n", |
|
935 | 937 | "%%appyter markdown\n", |
936 | 938 | "{% if \"Transcription Factor\" in enrichr_libraries.value %}\n", |
937 | 939 | "# Transcription Factor Enrichment Analysis\n", |
938 | | - "Transcription Factors (TFs) are proteins involved in the transcriptional regulation of gene expression. Databases such as ChEA (Lachmann et al. 2010) and ENCODE (Consortium, 2014) contain a large number of associations between TFs and their transcriptional targets. This information can be leveraged by Enrichr to identify the transcription factors whose targets are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
| 940 | + "Transcription Factors (TFs) are proteins involved in the transcriptional regulation of gene expression. Databases such as ChEA [{{ref_counter|length}}] and ENCODE [{{ref_counter|length + 1}}] contain a large number of associations between TFs and their transcriptional targets. This information can be leveraged by Enrichr to identify the transcription factors whose targets are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
939 | 941 | "{% endif %}" |
940 | 942 | ] |
941 | 943 | }, |
|
948 | 950 | "%%appyter code_exec\n", |
949 | 951 | "{% if \"Transcription Factor\" in enrichr_libraries.value %}\n", |
950 | 952 | "# Initialize results\n", |
| 953 | + "ref_counter.extend(['Lachmann, A., Xu, H., Krishnan, J., Berger, S.I., Mazloom, A.R. and Ma\\'ayan, A. (2010) ChEA: transcription factor regulation inferred from integrating genome-wide ChIP-X experiments. Bioinformatics, 26, 2438-2444.', 'ENCODE Consortium (2004) The ENCODE (ENCyclopedia of DNA elements) project. Science, 306, 636-640.'])\n", |
951 | 954 | "results['tf_enrichment'] = {}\n", |
952 | 955 | "\n", |
953 | 956 | "# Loop through results\n", |
|
968 | 971 | "%%appyter markdown\n", |
969 | 972 | "{% if \"Kinase\" in enrichr_libraries.value %}\n", |
970 | 973 | "# Kinase Enrichment Analysis\n", |
971 | | - "Protein kinases are enzymes that modify other proteins by chemically adding phosphate groups. Databases such as KEA (Lachmann et al. 2009) contain a large number of associations between kinases and their substrates. This information can be leveraged by Enrichr to identify the protein kinases whose substrates are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
| 974 | + "Protein kinases are enzymes that modify other proteins by chemically adding phosphate groups. Databases such as KEA [{{ref_counter|length}}] contain a large number of associations between kinases and their substrates. This information can be leveraged by Enrichr to identify the protein kinases whose substrates are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
972 | 975 | "{% endif %}" |
973 | 976 | ] |
974 | 977 | }, |
|
981 | 984 | "%%appyter code_exec\n", |
982 | 985 | "{% if \"Kinase\" in enrichr_libraries.value %}\n", |
983 | 986 | "# Initialize results\n", |
| 987 | + "ref_counter.append('Lachmann, Alexander, and Avi Ma\\'ayan. \"KEA: kinase enrichment analysis.\" Bioinformatics 25.5 (2009): 684-686. ')\n", |
984 | 988 | "results['kinase_enrichment'] = {}\n", |
985 | 989 | "\n", |
986 | 990 | "# Loop through results\n", |
|
1002 | 1006 | "%%appyter markdown\n", |
1003 | 1007 | "{% if \"miRNA\" in enrichr_libraries.value %}\n", |
1004 | 1008 | "# miRNA Enrichment Analysis\n", |
1005 | | - "microRNAs (miRNAs) are small non-coding RNA molecules which play a key role in the post-transcriptional regulation of gene expression. Databases such as TargetScan (Agarwal et al. 2015) and MiRTarBase (Chou et al. 2016) contain a large number of associations between miRNAs and their targets. This information can be leveraged by Enrichr to identify the miRNAs whose targets are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
| 1009 | + "microRNAs (miRNAs) are small non-coding RNA molecules which play a key role in the post-transcriptional regulation of gene expression. Databases such as TargetScan [{{ref_counter|length}}] and MiRTarBase [{{ref_counter|length + 1}}] contain a large number of associations between miRNAs and their targets. This information can be leveraged by Enrichr to identify the miRNAs whose targets are over-represented in the up-regulated and down-regulated genes identified by comparing two groups of samples.\n", |
1006 | 1010 | "{% endif %}" |
1007 | 1011 | ] |
1008 | 1012 | }, |
|
1014 | 1018 | "source": [ |
1015 | 1019 | "%%appyter code_exec\n", |
1016 | 1020 | "{% if \"miRNA\" in enrichr_libraries.value %}\n", |
| 1021 | + "ref_counter.extend(['Agarwal, Vikram, et al. Predicting effective microRNA target sites in mammalian mRNAs. elife 4 (2015): e05005.', 'Chou, Chih-Hung, et al. miRTarBase 2016: updates to the experimentally validated miRNA-target interactions database. Nucleic acids research 44.D1 (2016): D239-D247.'])\n", |
1017 | 1022 | "\n", |
1018 | 1023 | "results['mirna_enrichment'] = {}\n", |
1019 | 1024 | "\n", |
|
1036 | 1041 | "%%appyter markdown\n", |
1037 | 1042 | "{% if small_molecule_method.value == \"L1000CDS2\" %}\n", |
1038 | 1043 | "# L1000CDS2 Query\n", |
1039 | | - "L1000CDS2 (Duan et al. 2016) is a web-based tool for querying gene expression signatures against signatures created from human cell lines treated with over 20,000 small molecules and drugs for the LINCS project. It is commonly used to identify small molecules which mimic or reverse the effects of a gene expression signature generated from a differential gene expression analysis.\n", |
| 1044 | + "L1000CDS2 [{{ref_counter|length}}] is a web-based tool for querying gene expression signatures against signatures created from human cell lines treated with over 20,000 small molecules and drugs for the LINCS project. It is commonly used to identify small molecules which mimic or reverse the effects of a gene expression signature generated from a differential gene expression analysis.\n", |
1040 | 1045 | "{% endif %}" |
1041 | 1046 | ] |
1042 | 1047 | }, |
|
1049 | 1054 | "%%appyter code_exec\n", |
1050 | 1055 | "{% if small_molecule_method.value == \"L1000CDS2\" %}\n", |
1051 | 1056 | "# Initialize results\n", |
| 1057 | + "ref_counter.append('Duan, Q., et al. L1000CDS2: Lincs l1000 characteristic direction signatures search engine. NPJ Syst Biol Appl. 2016; 2: 16015. (2016).')\n", |
1052 | 1058 | "results['l1000cds2'] = {}\n", |
1053 | 1059 | "\n", |
1054 | 1060 | "# Loop through signatures\n", |
|
1071 | 1077 | "%%appyter markdown\n", |
1072 | 1078 | "{% if small_molecule_method.value == \"L1000FWD\" %}\n", |
1073 | 1079 | "# L1000FWD Query\n", |
1074 | | - "L1000FWD (Wang et al. 2018) is a web-based tool for querying gene expression signatures against signatures created from human cell lines treated with over 20,000 small molecules and drugs for the LINCS project.\n", |
| 1080 | + "L1000FWD [{{ref_counter|length}}] is a web-based tool for querying gene expression signatures against signatures created from human cell lines treated with over 20,000 small molecules and drugs for the LINCS project.\n", |
1075 | 1081 | "{% endif %}" |
1076 | 1082 | ] |
1077 | 1083 | }, |
|
1084 | 1090 | "%%appyter code_exec\n", |
1085 | 1091 | "{% if small_molecule_method.value == \"L1000FWD\" %}\n", |
1086 | 1092 | "# Initialize results\n", |
| 1093 | + "ref_counter.append('Wang, Zichen, et al. L1000FWD: fireworks visualization of drug-induced transcriptomic signatures. Bioinformatics 34.12 (2018): 2150-2152.')\n", |
1087 | 1094 | "results['l1000fwd'] = {}\n", |
1088 | 1095 | "\n", |
1089 | 1096 | "# Loop through signatures\n", |
|
1120 | 1127 | "cell_type": "markdown", |
1121 | 1128 | "metadata": {}, |
1122 | 1129 | "source": [ |
1123 | | - "1. Clark, N.R. and Ma’ayan, A. (2011) Introduction to statistical methods to analyze large data sets: principal components analysis. Sci. Signal., 4, tr3-tr3.\n", |
1124 | | - "<br>\n", |
1125 | | - "2. Fernandez, Nicolas F., et al. \"Clustergrammer, a web-based heatmap visualization and analysis tool for high-dimensional biological data.\" Scientific data 4 (2017): 170151.\n", |
1126 | | - "<br>\n", |
1127 | | - "3. Ritchie, Matthew E., et al. \"limma powers differential expression analyses for RNA-sequencing and microarray studies.\" Nucleic acids research 43.7 (2015): e47-e47.\n", |
1128 | | - "<br>\n", |
1129 | | - "4. Clark, Neil R., et al. \"The characteristic direction: a geometrical approach to identify differentially expressed genes.\" BMC bioinformatics 15.1 (2014): 79.\n", |
1130 | | - "<br>\n", |
1131 | | - "5. Kuleshov, M.V., Jones, M.R., Rouillard, A.D., Fernandez, N.F., Duan, Q., Wang, Z., Koplev, S., Jenkins, S.L., Jagodnik, K.M. and Lachmann, A. (2016) Enrichr: a comprehensive gene set enrichment analysis web server 2016 update. Nucleic acids research, 44, W90-W97.\n", |
1132 | | - "<br>\n", |
| 1130 | + "%%appyter markdown\n", |
1133 | 1131 | "\n", |
1134 | | - "Agarwal, Vikram, et al. \"Predicting effective microRNA target sites in mammalian mRNAs.\" elife 4 (2015): e05005.\n", |
1135 | | - "<br>\n", |
1136 | | - "Ashburner, M., Ball, C.A., Blake, J.A., Botstein, D., Butler, H., Cherry, J.M., Davis, A.P., Dolinski, K., Dwight, S.S. and Eppig, J.T. (2000) Gene Ontology: tool for the unification of biology. Nature genetics, 25, 25.\n", |
1137 | | - "<br>\n", |
1138 | | - "Chou, Chih-Hung, et al. \"miRTarBase 2016: updates to the experimentally validated miRNA-target interactions database.\" Nucleic acids research 44.D1 (2016): D239-D247.\n", |
1139 | | - "<br>\n", |
1140 | | - "Consortium, E.P. (2004) The ENCODE (ENCyclopedia of DNA elements) project. Science, 306, 636-640.\n", |
1141 | | - "<br>\n", |
1142 | | - "Croft, David, et al. \"The Reactome pathway knowledgebase.\" Nucleic acids research 42.D1 (2014): D472-D477.\n", |
1143 | | - "<br>\n", |
1144 | | - "Duan, Q., et al. \"L1000cds2: Lincs l1000 characteristic direction signatures search engine. NPJ Syst Biol Appl. 2016; 2: 16015.\" (2016).\n", |
1145 | | - "<br>\n", |
1146 | | - "Kanehisa, M. and Goto, S. (2000) KEGG: kyoto encyclopedia of genes and genomes. Nucleic acids research, 28, 27-30.\n", |
1147 | | - "<br>\n", |
1148 | | - "Kelder, Thomas, et al. \"WikiPathways: building research communities on biological pathways.\" Nucleic acids research 40.D1 (2012): D1301-D1307.\n", |
1149 | | - "<br>\n", |
1150 | | - "Lachmann, A., Xu, H., Krishnan, J., Berger, S.I., Mazloom, A.R. and Ma'ayan, A. (2010) ChEA: transcription factor regulation inferred from integrating genome-wide ChIP-X experiments. Bioinformatics, 26, 2438-2444.\n", |
1151 | | - "<br>\n", |
1152 | | - "Lachmann, Alexander, and Avi Ma'ayan. \"KEA: kinase enrichment analysis.\" Bioinformatics 25.5 (2009): 684-686.\n", |
| 1132 | + "{% for result in results %}\n", |
| 1133 | + "{{ loop.index }}. {{ result }}\n", |
1153 | 1134 | "<br>\n", |
1154 | | - "Wang, Zichen, et al. \"L1000FWD: fireworks visualization of drug-induced transcriptomic signatures.\" Bioinformatics 34.12 (2018): 2150-2152." |
| 1135 | + "{% endfor %}" |
1155 | 1136 | ] |
1156 | 1137 | } |
1157 | 1138 | ], |
|
0 commit comments