-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run causalpath.jar From Within Cytoscape App #10
Comments
Hi, @cannin Thank you for your query. |
Also, I have found the link to some commands in this link http://manual.cytoscape.org/en/3.5.0/Command_Line_Arguments.html |
Let's define our nomenclature.
How will you run causalpath.jar from the Cytoscape App? |
@cannin Thank you for rephrasing the query. To run the casupath.jar file we can run the following command This command can be found at CasualPath Repository in the following link I run the following command to run the app on my machine. java -jar "C:\Users\PRITAM PC\Desktop\casualpathnrnb\causalpath\target\causalpath.jar" "C:\Users\PRITAM PC\Desktop\casualpathnrnb\data\TCGA-RPPA\ACC" And I think it is not a Cytoscape app so we can't run it from the Cytoscape App. |
@thepritam please communicate with alex pico by email (CC me) and see if he can give clarity to this. the goal of this project is to simplify the use of causalpath.jar. this strategy is cumbersome for many users we seek to target. |
@cannin I have mailed Alex Pico about the issue. |
Example Cytoscape Apps with Code on GithubUse this example (some useful files below)
Cytocopter on Cytoscape Apps Sitehttps://apps.cytoscape.org/apps/cytocopter Tutorial (with Sample Data)https://saezlab.github.io/CellNOptR/7_CytoCopter/ Project for Putting Code into Maven pom.xmlCode for integrating the casual path with cytoscape GoalThe Cytoscape App needs as input the folder to the input data (not just the output files)
|
@ozgunbabur @cannin I have tried to run the Causalpath. main() function from the repository from the application. But after getting the repository the app is not getting started. There is some issue with the dependency. I have sent a mail describing the issue regarding this. |
@cannin The Repository to the Casual Path Algorithm: https://github.com/PathwayAndDataAnalysis/causalpath The function I am calling from My code is the main function and it is given in this link: So,
|
This isn't the right way to go about this at all. The CausalPath jar file provides functionality that you need to call (not run) from your Cytoscape app. Essentially, all of the information you are getting from the command line, you need to get as Tunables and then call a new method that's going to run the algorithm and return a Cytoscape network (without writing anything out). |
@scootermorris Thank you for the response.
And I have tried to do the same and also tried another thing which is given in the below link: |
I'll take these in turn:
So, the real question here is what is the purpose of writing a Cytoscape app? Clearly, it isn't for folks who are adept at using editors and command line tools, so who is it for? At the end of the day, I think that the goal is to make the CausalPath algorithm more accessible to researchers who aren't computational. To that end, I would suggest thinking hard about your design. If, on the other hand, you think that the users are perfectly fine using emacs, vim, or a reasonable text editor, then I would suggest just writing a very small app that will read in the output files from causal path and not bother with running the algorithm itself -- completely decouple the algorithm from the output and just focus on getting the output into Cytoscape. |
@scootermorris I appreciate the feedback. We'll think about the UI that users interact with over the course of the summer (the first point); the goal is to target users who are not computational and not comfortable with the command line. In the short term, rather than questions of design, I'm more concerned about the feasibility of running our existing Java code (as is) from Cytoscape. It appears that we running into issues with OSGI (or something else) and we're not sure how to proceed. Apps like Cytocopter seem to use genetic algorithms/CSV reading/plotting from existing projects within Cytoscape: https://github.com/saezlab/cytocopter/blob/master/pom.xml so I assume it is possible, but I'm not sure how to guide @thepritam in debugging errors he is facing (the bundle start error; see above). The easiest way to prototype the work is the 1 parameter function that @thepritam is using and I would prefer to continue to use this until we know there are no major incompatibilities between CausalPath and Cytoscape. If you have time and it would facilitate this discussion, we could have a video chat. |
@scootermorris Can we please discuss over video chat to discuss the issues as @cannin mentioned? It is one of the core-task for the project. And We are very much stuck with it. Please let me know if we can arrange a video chat for it. |
How can the casualpath jar be run from Cytoscape? Via a commandline call like "java -jar ..." or by calling a function in the jar? The best would be if it can be run calling Java functions, but I do not know what options are available.
The text was updated successfully, but these errors were encountered: