IGV v2.3
OS: Linux Mint 15
I am trying to write a .txt batch file to automate taking snapshots of certain areas of interest. Before jumping into the automation, I wanted to make sure I could run a simple batch file to start a new session, open a file, specify a region, and save a snapshot. Below is the code I wrote:
new
load smb://
172.17.50.54/synology_storage/Original_Data/NJLAGS_SEQ/wo231_disk1/LP6005170-DNA_A01/Assembly/genome/bam/LP6005170-DNA_A01.bamgoto chr1:113,144,120-113,164,120
snapshotDirectory /home/brzlab/Documents/IGV
snapshot test.png
When I ran this file, it executed all commands BUT did not open the .bam file. No error was displayed. I can open the file in the standard way- File>Load from File. Alternatively, I replaced the previous load statement with:
load /run/user/brzlab/gvfs/smb-share:server=172.17.50.54,share=synology_storage/Original_Data/NJLAGS_SEQ/wo231_disk1/LP6005170-DNA_A01/Assembly/genome/bam/LP6005170-DNA_A01.bam
This is the path that appears beside "resource" in the session.xml file when I load the file normally and save the session. It does not work either.
I think the problem lies in that the file is stored on a password-protected shared drive. The drive is mounted using samba.
Is there any way to load files from shared drives via a batch file? Is there something obviously wrong with what I wrote? Is there any resource you might suggest to help me figure this out?
Thanks a lot,
Brittany