# HG changeset patch # User proteore # Date 1545143015 18000 # Node ID 8a6863adcd09b6514bb78928d5a364569709b00e # Parent 48f302ae55452b6b8516c94d3c5bedac5f22c4f2 planemo upload commit 9af2cf12c26c94e7206751ccf101a3368f92d0ba diff -r 48f302ae5545 -r 8a6863adcd09 kegg_maps_visualization.R --- a/kegg_maps_visualization.R Thu Dec 13 04:16:02 2018 -0500 +++ b/kegg_maps_visualization.R Tue Dec 18 09:23:35 2018 -0500 @@ -169,6 +169,12 @@ return(res) } +get_limit <- function(mat) { + min = min(apply(mat,2,min)) + max = max(apply(mat,2,max)) + return(c(min,max)) +} + get_args <- function(){ ## Collect arguments @@ -291,9 +297,11 @@ geneID=mat$geneID mat = as.data.frame(mat[,-1]) row.names(mat)=geneID + limit = get_limit(mat) } else { mat = unique(as.character(tab$geneID[!is.na(tab$geneID[tab$geneID!=""])])) geneID=mat + limit=1 } #####mapping geneID (with or without expression values) on KEGG pathway @@ -304,7 +312,7 @@ if (!fold_change_data) { plot.col.key= FALSE #if there's no exrepession data, we don't show the color key high_color = "#81BEF7" #blue - } + } #create graph(s) and text output for (id in ids) { @@ -322,7 +330,8 @@ na.col="#D8D8D8", #gray cpd.data=NULL, plot.col.key = plot.col.key, - pdf.size=c(9,9))) + pdf.size=c(9,9), + limit=list(gene=limit, cpd=limit))) if (is.list(pv.out)){ diff -r 48f302ae5545 -r 8a6863adcd09 kegg_maps_visualization.xml --- a/kegg_maps_visualization.xml Thu Dec 13 04:16:02 2018 -0500 +++ b/kegg_maps_visualization.xml Tue Dec 18 09:23:35 2018 -0500 @@ -1,4 +1,4 @@ - + of (differentially expressed) genes/proteins bioconductor-pathview @@ -13,12 +13,12 @@ --id_column="$input.ncol" --header="$input.header" #end if - #if $species.pathways.pathways_id != "pathways_file" - --pathways_id="$species.pathways.pids" + #if $pathways_section.species.pathways.pathways_id != "pathways_file" + --pathways_id="$pathways_section.species.pathways.pids" #else - --pathways_input="$species.pathways.file" - --header2="$species.pathways.header2" - --pathway_col="$species.pathways.ncol2" + --pathways_input="$pathways_section.species.pathways.file" + --header2="$pathways_section.species.pathways.header2" + --pathway_col="$pathways_section.species.pathways.ncol2" #end if --id_type="$id_type" --native_kegg="$native" @@ -31,157 +31,161 @@ --fold_change_data="false" #end if - --species=${species.ref_file} - --pathways_list=$__tool_directory__/${ filter( lambda x: str( x[0] ) == str( $species.ref_file ), $__app__.tool_data_tables['kegg_pathways_list_index'].get_fields() )[0][-1] } + --species=${pathways_section.species.ref_file} + --pathways_list=$__tool_directory__/${ filter( lambda x: str( x[0] ) == str( $pathways_section.species.ref_file ), $__app__.tool_data_tables['kegg_pathways_list_index'].get_fields() )[0][-1] } --output="$text_output" ]]> - - - - - - - - - - - - + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -226,23 +230,24 @@ ', one file (png or pdf) for each given pathway. + - a **summary text file** (.tsv) of the mapping(s) with the following columns - **KEGG pathway ID**: KEGG pathway(s) used to map given genes/proteins ids - **pathway name**: name(s) of KEGG pathway(s) used for mapping @@ -299,22 +306,29 @@ .. class:: infomark -**Database:** +**Data source (release date)** KEGG Pathways names list are from http://rest.kegg.jp/list/pathway/ User manual / Documentation: http://www.bioconductor.org/packages/release/bioc/html/pathview.html - ----- .. class:: infomark **Authors** -David Christiany, Florence Combes, Yves Vandenbrouck CEA, INSERM, CNRS, Grenoble-Alpes University, BIG Institute, FR +Luo, Weijun, Brouwer, Cory (2013). “Pathview: an R/Bioconductor package for pathway-based data integration and visualization.” Bioinformatics, 29(14), 1830-1831. doi: 10.1093/bioinformatics/btt285. + +----- + +.. class:: infomark -Sandra Dérozier, Olivier Rué, Christophe Caron, Valentin Loux INRA, Paris-Saclay University, MAIAGE Unit, Migale Bioinformatics platform +**Galaxy integration** + +David Christiany, Florence Combes, Yves Vandenbrouck - CEA, INSERM, CNRS, Grenoble-Alpes University, BIG Institute, FR + +Sandra Dérozier, Olivier Rué, Christophe Caron, Valentin Loux - INRA, Paris-Saclay University, MAIAGE Unit, Migale Bioinformatics platform, FR This work has been partially funded through the French National Agency for Research (ANR) IFB project.