Scott Cain
2014-11-26 16:23:28 UTC
Hi Swetha,
The only way I can think of to do that is with separate configuration files
for GBrowse unfortunately. The "data source" drop down was originally
conceived of to allow selecting different "species", but that concept
doesn't map very well to strains of a virus. There are two approaches I
could see using:
1. Revamp the way you're using GBrowse data sources altogether, so that
each data source represents one type of virus, so in the drop down you'd
have two entries, one for H. influenzae and one for the other virus. Each
strain would then be analogous a chromosome. One advantage to this
approach is that when/if you have hundreds of strains of a virus the drop
down will still be useable (that is, a drop down menu with a more than
20-30 entries is very unwieldy). Users would be able to use the search box
to find strains they are interested in. A potential downside is that
searching for a particular gene would yield results for that gene in every
strain.
2. Create separate gbrowse2 config directories for each virus. Then you
need to edit gbrowse2.conf file that lives in the apache configuration;
where that is varies depending on your OS; on Ubuntu 12.04 it's in
/etc/apache2/conf.d/. You'll need separate cgi-bin directories too, for
example you could have /usr/lib/cgi-bin/Higb2/ for influenzae and
/usr/lib/cgi-bin/Segb2 for the Something else virus :-) In the apache
gbrowse.conf file you need separate entries for the different cgi-bin
directores that have different "SetEnv GBROWSE_CONF" entries to point at
the separate gbrowse config directories.
Obviously, it's up to you to decide which is better; there will be work
either way. I suggest that if you choose the second path that you make
very incremental changes and test that GBrowse still works all along the
way, because there are several moving parts that could break GBrowse and
with the changes required, it might be difficult to sort out what happened
if something goes wrong.
Scott
The only way I can think of to do that is with separate configuration files
for GBrowse unfortunately. The "data source" drop down was originally
conceived of to allow selecting different "species", but that concept
doesn't map very well to strains of a virus. There are two approaches I
could see using:
1. Revamp the way you're using GBrowse data sources altogether, so that
each data source represents one type of virus, so in the drop down you'd
have two entries, one for H. influenzae and one for the other virus. Each
strain would then be analogous a chromosome. One advantage to this
approach is that when/if you have hundreds of strains of a virus the drop
down will still be useable (that is, a drop down menu with a more than
20-30 entries is very unwieldy). Users would be able to use the search box
to find strains they are interested in. A potential downside is that
searching for a particular gene would yield results for that gene in every
strain.
2. Create separate gbrowse2 config directories for each virus. Then you
need to edit gbrowse2.conf file that lives in the apache configuration;
where that is varies depending on your OS; on Ubuntu 12.04 it's in
/etc/apache2/conf.d/. You'll need separate cgi-bin directories too, for
example you could have /usr/lib/cgi-bin/Higb2/ for influenzae and
/usr/lib/cgi-bin/Segb2 for the Something else virus :-) In the apache
gbrowse.conf file you need separate entries for the different cgi-bin
directores that have different "SetEnv GBROWSE_CONF" entries to point at
the separate gbrowse config directories.
Obviously, it's up to you to decide which is better; there will be work
either way. I suggest that if you choose the second path that you make
very incremental changes and test that GBrowse still works all along the
way, because there are several moving parts that could break GBrowse and
with the changes required, it might be difficult to sort out what happened
if something goes wrong.
Scott
Respected Sir,
We have developed a database for Haemophilus influenzae and we used
Gbrowse to visualize their annotation. Now, we are developing the database
for other organism and we need to use the Gbrowse. We are going to host the
second database in the same server where GBrowse is already installed. But,
I have a doubt. The dropdown menu for the second database should be changed
in GBrowse. How is it possible?
In Haemophilus influenzae database, we have included 10 different strains
of H. influenzae. I have attached the screenshot for your reference.
In second database, I need to include 25 strains of other organism.
Query: these 25 strains should be in dropdown menu instead of those 10
strains. And, When the user access H. influenzae database, 10 strains
should be there and when the user access second database, 25 strains should
be there. How is it possible?
Waiting for your reply.
Yours sincerely,
Swetha R G.
We have developed a database for Haemophilus influenzae and we used
Gbrowse to visualize their annotation. Now, we are developing the database
for other organism and we need to use the Gbrowse. We are going to host the
second database in the same server where GBrowse is already installed. But,
I have a doubt. The dropdown menu for the second database should be changed
in GBrowse. How is it possible?
In Haemophilus influenzae database, we have included 10 different strains
of H. influenzae. I have attached the screenshot for your reference.
In second database, I need to include 25 strains of other organism.
Query: these 25 strains should be in dropdown menu instead of those 10
strains. And, When the user access H. influenzae database, 10 strains
should be there and when the user access second database, 25 strains should
be there. How is it possible?
Waiting for your reply.
Yours sincerely,
Swetha R G.
--
------------------------------------------------------------------------
Scott Cain, Ph. D. scott at scottcain dot
net
GMOD Coordinator (http://gmod.org/) 216-392-3087
Ontario Institute for Cancer Research
------------------------------------------------------------------------
Scott Cain, Ph. D. scott at scottcain dot
net
GMOD Coordinator (http://gmod.org/) 216-392-3087
Ontario Institute for Cancer Research