Giter Club home page Giter Club logo

Comments (8)

risserlin avatar risserlin commented on September 13, 2024

You can merge networks in Cytoscape using the merge tools but for use case much better to create a mastermap with all the EM features. An Enrichment map from multiple datasets. In order to automate it you have set up a directory structure where each dataset is in its own directory. EM will take the names of the directory as the name of the dataset.
For example
mastermap_dir
Dataset1
generic_EM_results_Dataset1.txt
Dataset2
generic_EM_results_Dataset2.txt
Dataset3
generic_EM_results_Dataset1.txt

Then when you are creating the enrichment map mastermap instead of specifying the individual files you specify the root directory and EM will be able to find all the datasets.

em_command = paste('enrichmentmap mastermap ',
'pvalue=',"0.5", 'qvalue=',"0.5",
'similaritycutoff=',"0.25",
'coeffecients=',"JACCARD",
'rootFolder=',egobp.results.dirname ,
sep=" ")

https://enrichmentmap.readthedocs.io/en/latest/Automating.html#enrichmentmap-mastermap

from enrichmentmapapp.

alievakrash avatar alievakrash commented on September 13, 2024

Thanks for the quick reply. I am getting this error when I am running it:
Error: Error: no such command: 'mastermap '

Do I need to call the directory in a specific way?
I am running Cytoscape on Version: 3.9.1 and RCy3_2.10.2 .

from enrichmentmapapp.

risserlin avatar risserlin commented on September 13, 2024

What version of enrichment map do you have? (I think it would have be a really old version of enrichment map to not have mastermap.)

In cytoscape, in the command line window when you run "help enrichmentmap" is there a "enrichmentmap mastermap" listed?

Screen Shot 2022-05-09 at 10 51 23 AM

from enrichmentmapapp.

alievakrash avatar alievakrash commented on September 13, 2024

I fixed it with removing space after mastermap, also had to remove the coefficient term, as it was giving error. But this worked:

em_command = paste('enrichmentmap mastermap',
'pvalue=',"0.5", 'qvalue=',"0.5",
'similaritycutoff=',"0.25",
'rootFolder=',egobp.results.dirname ,
sep=" ")

from enrichmentmapapp.

risserlin avatar risserlin commented on September 13, 2024

mastermap's parameters only allow the correctly spelled coefficients but the build command because of a spelling mistake a long time ago accepts coeffecients and coefficients. If you change the parameter in your mastermap command to coefficients it should work.
I am not sure why the space gave you issues though.

from enrichmentmapapp.

alievakrash avatar alievakrash commented on September 13, 2024

Yes, that works. Thanks.
Btw, is there a way to show only the p value pie charts but not the names of the pathways? I have so many and I see them on top. I was trying to change the font, but didn't see how to do that.

from enrichmentmapapp.

risserlin avatar risserlin commented on September 13, 2024

Sorry. I forgot to respond to this when I first saw it.
Yes. You can suppress the labels. In EM there is a toggle button in the EM interface that hides the labels when you click "Publication ready" but unfortunately that is not available through the em commands. It might be an easy feature to add to the commands.
I think that all the feature is doing is setting the node labels to zero so you can also do that using RCy3 using the following command (but I am not sure that is still the way it is done) @mikekucera how does the publication ready work?:
https://rdrr.io/bioc/RCy3/man/setNodeFontSizeDefault.html

from enrichmentmapapp.

mikekucera avatar mikekucera commented on September 13, 2024

from enrichmentmapapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.