I know I can start IGV (Integrative Genomics Viewer, Broad Institute) providing some starting parameters (via specifying either a session file or a comma-delimited list of files to load), but is it possible somehow to control IGV from command line?
While IGV is running, I'd like to type in the terminal for example "goto chr1:65,839,697" and without closing current session and opening a new session it would go to this location.
Yes, I've seen this, but as I understand it works only when I start a new session. I'd like to have a solution to interact with an active session, not via "Tools>Run Batch Script", but through command line.
(I thought that firstly I'd need to create some "command file", then run it via terminal to obtain the effect. The solution was much simpler for my needs)
$ sh script.sh | telnet 127.0.0.1 60151
Trying 127.0.0.1...
Connected to srv-clc-02.irt.univ-nantes.prive (127.0.0.1).
Escape character is '^]'.
INFO [2011-07-27 17:58:16,680] [CommandExecutor.java:124] [Thread-6] OK
OK
INFO [2011-07-27 17:58:18,685] [CommandExecutor.java:124] [Thread-6] OK
OK
INFO [2011-07-27 17:58:18,687] [MacroSnapshotAction.java:85] [Thread-6] Snapshot: chr3_80_119.png
INFO [2011-07-27 17:58:20,787] [CommandExecutor.java:124] [Thread-6] OK
OK
INFO [2011-07-27 17:58:22,792] [CommandExecutor.java:124] [Thread-6] OK
OK
INFO [2011-07-27 17:58:22,794] [MacroSnapshotAction.java:85] [Thread-6] Snapshot: chr3_200_300.png
Connection closed by foreign host.
While I've not seen any specific CLI for IGV control, one of the more useful tools I found (that you may be trying to achieve overall...), is IGV Screenshot.
I've been wondering about this question in the past and I ended up writing my own tool to browse the genome from the command line, ASCIIGenome. Feel free to give it a try and post issues here or on the github repository.
Have you seen these?
http://software.broadinstitute.org/software/igv/PortCommands
http://software.broadinstitute.org/software/igv/batch
Yes, I've seen this, but as I understand it works only when I start a new session. I'd like to have a solution to interact with an active session, not via "Tools>Run Batch Script", but through command line.
You might want to try using the
load 'file'
command listed there to try and load a previously saved session .xml file or similar.