Description Usage Arguments Value Note Note Note Author(s) Examples
Instruct an external Genome Browser to take a snapshot of its current display and save it to a specified file.
1 |
session |
Object representing the genome browser to communicate with |
filename |
Desired name of the image file to be created. |
... |
Additional options to be passed to individual methods. |
This function does not return a meaningful value.
This function will create a snapshot image *on the machine IGB is running on*. If the user is communicating with a remote instance of IGB, the image will be created on the remote server, not the client machine.
The snapshot method supports all file exensions that are supported by IGB. To see which file types are supported, navigate in the IGB menu to File -> Export -> Main View and inspect the file type options offered there. This notably includes the PDF and SVG formats among others.
Certain versions of IGB do not support use of ~ in paths to indicate the user's home directory. For maximum reliability absolute paths should be used.
Gabriel Becker
1 2 3 4 5 6 | ## Not run:
myigb = igbSession()
snapshot(myigb, "/home/user/myIGBsnapshots/mysnapshot.svg")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.