library(SRAdb)
exampleBams = file.path(system.file('extdata',package='SRAdb'),
dir(system.file('extdata',package='SRAdb'),pattern='bam$'))
exampleSessionFile <- IGVsession(exampleBams, 'exampleBams.xml');
## Not run:
# ## Start IGV within R. You only need one IGV instance with listen port 60151 open.
# startIGV()
#
# ## Create a socket connection to IGV
# sock <- IGVsocket()
# ## Wait until IGV fully launched and make sure the listen port for IGV is open (If not configured in IGV, follow these steops: IGV --> Perferences --> Advanced --> Check the checkbox 'Enable port' 60151.)
# IGVload(sock, exampleSessionFile)
# ## End(Not run)
Run the code above in your browser using DataLab