Adding reference genome to session xml file

12 views
Skip to first unread message

mtr...@mindspring.com

unread,
Feb 21, 2019, 10:03:20 AM2/21/19
to igv-help
Hello

I have a script that generates simple igv session xml files and then creates links to these and writed them in an excel spreadsheet.

Here is an example of one such link


and here is the contents of the xml session file it links to

<?xml version="1.0" encoding="UTF-8"?>
<Global> genome="24505WT.fa" locus="24505WT.fa" version="3"
<Resources>
<Resource name="TMKD184100B002A align" path="http://demeter//scratch-large/3-monthly/GEDI2/CD118026583-01/1550623516/TMKD184100B002A/delivered/TMKD184100B002A-vs-24505WT.fa.sort.bam"/>
</Resources>
</Global>


The alignments pointed to in these files are often to references not previously loaded into my local igv, and so  they must be loaded to be able to see the sequence.  Currently I will enter the link (e.g. http://demeter/scratch-large/3-monthly/GEDI2/CD118026583-01/1550623516/TMKD184100B002A/delivered/24505WT.fa) to the reference in the "Load genome from URL" function in igv separately and manually.

Is there a way to include the loading of the genome in the session file and, if so, what is the syntax?

Thanks

Mark

James Robinson

unread,
Feb 21, 2019, 11:07:47 AM2/21/19
to igv-help
Just set the value of the genome attribute to your url.  Be sure it is indexed, and has an ".fai" file in the same directory.

--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/1e2d74a0-cf25-4834-8da1-bce0549571d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages