Sujai | 30 May 2012 21:07
Picon

How are subtracks configured?

Dear Gbrowse team


I'm trying to get two quantitative tracks to display as subtracks so that their min and max scales will be the same.

I've been through http://gmod.org/wiki/Creating_and_Managing_Subtracks_with_GBrowse2 but I'm definitely missing something basic in my understanding, so am hoping someone can help me figure it out:

I already have two bigwig tracks that display perfectly. In the Database section:

[female.coverage.bw:database]
db_adaptor    = Bio::DB::BigWig
db_args       = -bigwig /var/www/html/gbrowse2/databases/female.coverage.bw

[intestine.coverage.bw:database]
db_adaptor    = Bio::DB::BigWig
db_args       = -bigwig /var/www/html/gbrowse2/databases/intestine.coverage.bw

And in the Tracks section:

feature  = summary
database = female.coverage.bw
glyph    = wiggle_whiskers
height   = 50
key      = female.coverage.bw
category = Normalised RNA coverage

feature  = summary
height   = 50
glyph    = wiggle_whiskers
key      = intestine.coverage.bw
category = Normalised RNA coverage



I tried writing a new Track section called supertrack:

[supertrack]
feature  = summary
glyph    = wiggle_whiskers
height   = 50
metadata = /var/www/gbrowse2/databases/metadata.txt

And, in metadata.txt, I put:

:selected = 1
factor = intestine

:selected = 1
factor = female

And nothing shows up. Do I need to define the BigWig database adaptor in the metadata.txt file? What am I doing wrong? Any help much appreciated!

Actually - am I even thinking about this correctly? Is a subtrack the best way to get the two tracks to have the same scale? Or is there a better way?

I could manually set the min and the max of each track, but even though this is normalised RNA data, the range is too much to be displayed when set to the min/max of the whole data set?

Best wishes,

- Sujai

Blaxter Lab, University of Edinburgh
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse
Timothy Parnell | 31 May 2012 07:06
Picon
Favicon

Re: How are subtracks configured?

Hi Sujai,

You can try explicitly setting the min_score and max_score, although as you point out, that may not be the
best solution, particularly for RNASeq datasets with disparate read coverages. Converting the read
coverage to Reads Per Million mapped (RPM), log2, or even both has helped to tame my datasets.

Yes, for the subtrack track stanza you will need to specify the database. I don't believe it's done in the
metadata file, but in the track conf stanza.

Since you have multiple bigWig files, you may want to look into the BigWigSet database adaptor, which
combines a directory of bigWig files into a single database. Another metadata text file included in the
directory is used to assign metadata to each bigWig file. You can read more about the BigWigSet adaptor in
the Bio::DB::BigWigSet POD, also found here
http://search.cpan.org/~lds/Bio-BigFile-1.07/lib/Bio/DB/BigWigSet.pm

The subtracks won't be on the same graph and scale, unless you use the new transparency option introduced
recently in GBrowse.

Hope that helps,
Tim

On May 30, 2012, at 1:07 PM, Sujai wrote:

Dear Gbrowse team

I'm trying to get two quantitative tracks to display as subtracks so that their min and max scales will be the same.

I've been through http://gmod.org/wiki/Creating_and_Managing_Subtracks_with_GBrowse2 but I'm
definitely missing something basic in my understanding, so am hoping someone can help me figure it out:

I already have two bigwig tracks that display perfectly. In the Database section:

[female.coverage.bw:database]
db_adaptor    = Bio::DB::BigWig
db_args       = -bigwig /var/www/html/gbrowse2/databases/female.coverage.bw<http://female.coverage.bw/>

[intestine.coverage.bw:database]
db_adaptor    = Bio::DB::BigWig
db_args       = -bigwig /var/www/html/gbrowse2/databases/intestine.coverage.bw<http://intestine.coverage.bw/>

And in the Tracks section:

[female.coverage.bw<http://female.coverage.bw/>]
feature  = summary
database = female.coverage.bw<http://female.coverage.bw/>
glyph    = wiggle_whiskers
height   = 50
key      = female.coverage.bw<http://female.coverage.bw/>
category = Normalised RNA coverage

[intestine.coverage.bw<http://intestine.coverage.bw/>]
feature  = summary
database = intestine.coverage.bw<http://intestine.coverage.bw/>
height   = 50
glyph    = wiggle_whiskers
key      = intestine.coverage.bw<http://intestine.coverage.bw/>
category = Normalised RNA coverage

I tried writing a new Track section called supertrack:

[supertrack]
feature  = summary
glyph    = wiggle_whiskers
height   = 50
metadata = /var/www/gbrowse2/databases/metadata.txt

And, in metadata.txt, I put:

[intestine.coverage.bw<http://intestine.coverage.bw/>]
:selected = 1
factor = intestine

[female.coverage.bw<http://female.coverage.bw/>]
:selected = 1
factor = female

And nothing shows up. Do I need to define the BigWig database adaptor in the metadata.txt file? What am I
doing wrong? Any help much appreciated!

Actually - am I even thinking about this correctly? Is a subtrack the best way to get the two tracks to have the
same scale? Or is there a better way?

I could manually set the min and the max of each track, but even though this is normalised RNA data, the range
is too much to be displayed when set to the min/max of the whole data set?

Best wishes,

- Sujai

Blaxter Lab, University of Edinburgh
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...<mailto:Gmod-gbrowse@...>
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Sujai | 31 May 2012 08:30
Picon

Re: How are subtracks configured?

Hi Tim


Thanks for the idea of trying RPKM/log2 transforms to aid visualisation (and for suggesting BigWigSet - which I will use if I end up with too many!)

I probably don't want to bother with subtracks if that won't use the same scale for all subtracks within a supertrack.

The transparency option sounds intriguing. I looked it up at http://gmod.org/wiki/Glyphs_and_Glyph_Options#Alpha_.28Transparency.29_Values and I think what you mean is that I should overplot the tracks on the same track. Did I understand that right?

I don't need the RNAseq wiggle tracks to be on the same graph, but I would like the same scale.

Best wishes,

- Sujai

On 31 May 2012 06:06, Timothy Parnell <Timothy.Parnell-xpE/FmUf0Yk@public.gmane.org.edu> wrote:
Hi Sujai,

You can try explicitly setting the min_score and max_score, although as you point out, that may not be the best solution, particularly for RNASeq datasets with disparate read coverages. Converting the read coverage to Reads Per Million mapped (RPM), log2, or even both has helped to tame my datasets.

Yes, for the subtrack track stanza you will need to specify the database. I don't believe it's done in the metadata file, but in the track conf stanza.

Since you have multiple bigWig files, you may want to look into the BigWigSet database adaptor, which combines a directory of bigWig files into a single database. Another metadata text file included in the directory is used to assign metadata to each bigWig file. You can read more about the BigWigSet adaptor in the Bio::DB::BigWigSet POD, also found here
http://search.cpan.org/~lds/Bio-BigFile-1.07/lib/Bio/DB/BigWigSet.pm

The subtracks won't be on the same graph and scale, unless you use the new transparency option introduced recently in GBrowse.

Hope that helps,
Tim


On May 30, 2012, at 1:07 PM, Sujai wrote:

Dear Gbrowse team

I'm trying to get two quantitative tracks to display as subtracks so that their min and max scales will be the same.

I've been through http://gmod.org/wiki/Creating_and_Managing_Subtracks_with_GBrowse2 but I'm definitely missing something basic in my understanding, so am hoping someone can help me figure it out:

I already have two bigwig tracks that display perfectly. In the Database section:

[female.coverage.bw:database]
db_adaptor    = Bio::DB::BigWig
db_args       = -bigwig /var/www/html/gbrowse2/databases/female.coverage.bw<http://female.coverage.bw/>

[intestine.coverage.bw:database]
db_adaptor    = Bio::DB::BigWig
db_args       = -bigwig /var/www/html/gbrowse2/databases/intestine.coverage.bw<http://intestine.coverage.bw/>

And in the Tracks section:

[female.coverage.bw<http://female.coverage.bw/>]
feature  = summary
database = female.coverage.bw<http://female.coverage.bw/>
glyph    = wiggle_whiskers
height   = 50
key      = female.coverage.bw<http://female.coverage.bw/>
category = Normalised RNA coverage

[intestine.coverage.bw<http://intestine.coverage.bw/>]
feature  = summary
database = intestine.coverage.bw<http://intestine.coverage.bw/>
height   = 50
glyph    = wiggle_whiskers
key      = intestine.coverage.bw<http://intestine.coverage.bw/>
category = Normalised RNA coverage



I tried writing a new Track section called supertrack:

[supertrack]
feature  = summary
glyph    = wiggle_whiskers
height   = 50
metadata = /var/www/gbrowse2/databases/metadata.txt

And, in metadata.txt, I put:

[intestine.coverage.bw<http://intestine.coverage.bw/>]
:selected = 1
factor = intestine

[female.coverage.bw<http://female.coverage.bw/>]
:selected = 1
factor = female

And nothing shows up. Do I need to define the BigWig database adaptor in the metadata.txt file? What am I doing wrong? Any help much appreciated!

Actually - am I even thinking about this correctly? Is a subtrack the best way to get the two tracks to have the same scale? Or is there a better way?

I could manually set the min and the max of each track, but even though this is normalised RNA data, the range is too much to be displayed when set to the min/max of the whole data set?

Best wishes,

- Sujai

Blaxter Lab, University of Edinburgh
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
Gmod-gbrowse
mailing list
Gmod-gbrowse-5NWGOfrQmnc@public.gmane.orgurceforge.net<mailto:Gmod-gbrowse-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

Gmane