BaderLab / EnrichmentMapApp

The EnrichmentMap Cytoscape App allows you to visualize the results of gene-set enrichment as a network.
http://apps.cytoscape.org/apps/enrichmentmap
GNU Lesser General Public License v2.1
31 stars 12 forks source link

Issue using enrichment map columns in Cytoscape formula builder #492

Closed risserlin closed 2 years ago

risserlin commented 2 years ago

Issue received through email from Laura Lewandowski -

I am running into an issue in trying to use a formula in an added column in enrichment Map. I am trying to take the -log of the pvalue, but when I enter log (enrichment map::pvalue) I get the following error: The training videos or github documentation do not address this.

image001

Verified issue was EM columns. Created a fake column with fake p-values called my_pval and was able to create a formula using that column and -log function.

Maybe is there a way to escape the EM column name to get it to work?

risserlin commented 2 years ago

Work around - you can rename the EM column name and even though it gives you an error it renames the column and will work with functions after that.

Error when you rename the column -

Screen Shot 2022-08-18 at 10 15 07 AM

Lauralew11 commented 2 years ago

Hello! I am the person who submitted this bug report. This work around works beautifully- thank you so much for the help!

mikekucera commented 2 years ago

The problem is the parenthesis in the column name. You will have to escape them in the formula editor using backslashes, like this... ${EnrichmentMap::pvalue \(8_1_22_KH_metascape\)}

I will open a bug on Cytoscape for this, either the parenthesis should be accepted as they are, or the formula builder should automatically insert the backslashes when inserting the column name.