GBrowse config file include

View: New views
4 Messages — Rating Filter:   Alert me  

GBrowse config file include

by Geoff Winsor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I use GBrowse for about a dozen strains of bacteria - each in a separate
database with a separate configuration file. Since most of the tracks
are the same between databases, I would like to keep the configuration
of the common tracks in a single file that I could call from each
individual .conf file. I was wondering if there is a specific key/value
pair that I could use to specify this type of an include.
Thanks,
Geoff

--
Geoff Winsor
Lead Database Developer, Bioinformatics
Brinkman Lab
IRMACS Centre, Room 10920
Simon Fraser University, Burnaby, BC, Canada, V5A 1S6



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

Re: GBrowse config file include

by Scott Cain-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Geoff,

While it doesn't appear to be documented particularly well, the  
GBrowse config parser supports include files.  The syntax is fairly  
simple:

   #include <filepath>

where the file path can definitely be a relative path, and I think  
absolute paths should work as well.

Scott


On Nov 3, 2009, at 8:14 PM, Geoff Winsor wrote:

> Hi,
> I use GBrowse for about a dozen strains of bacteria - each in a  
> separate
> database with a separate configuration file. Since most of the tracks
> are the same between databases, I would like to keep the configuration
> of the common tracks in a single file that I could call from each
> individual .conf file. I was wondering if there is a specific key/
> value
> pair that I could use to specify this type of an include.
> Thanks,
> Geoff
>
> --
> Geoff Winsor
> Lead Database Developer, Bioinformatics
> Brinkman Lab
> IRMACS Centre, Room 10920
> Simon Fraser University, Burnaby, BC, Canada, V5A 1S6
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gmod-gbrowse mailing list
> Gmod-gbrowse@...
> https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

-----------------------------------------------------------------------
Scott Cain, Ph. D. scott at scottcain dot net
GMOD Coordinator (http://gmod.org/) 216-392-3087
Ontario Institute for Cancer Research





------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

Parent Message unknown Re: GBrowse config file include

by Lacey Sanderson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was actually looking to do a similar thing... However I can't find  
this in the configuration documentation and when I tried to implement  
it myself I couldn't get it to work.

I want to have separate file containing different parts of my track  
definitions and then include them in the main conf file.

What I did was move the track definitions into a file named TC.tracks  
and then in the same spot as the track definitions were added the
        include TC.tracks
line. The TC.tracks file is in the same directory as the main .conf.

Where should the include be located? ie: track definitions, general,  
somewhere else...
Does the extension on the filename matter? ie: .tracks instead of .conf

If someone could help me with this it or even point me to the  
documentation it would be much appreciated...

System: Intrepid Ubuntu
Gbrowse v 1.70

Lacey

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

Re: GBrowse config file include

by Scott Cain-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Lacey,

As far as I can recall, the name of the file doesn't matter, although
you definitely should not use .conf, as GBrowse would then think it is
a full conf file and try to treat it as such.  As for placement, it
should go wherever the contents of the file should go: if the file has
track definitions, it should go in the tracks section.  The syntax is
to place a # mark in the first column, like this:

#include TC.tracks

Scott

On Tue, Nov 10, 2009 at 12:16 PM, Lacey Sanderson <las166@...> wrote:

> I was actually looking to do a similar thing... However I can't find
> this in the configuration documentation and when I tried to implement
> it myself I couldn't get it to work.
>
> I want to have separate file containing different parts of my track
> definitions and then include them in the main conf file.
>
> What I did was move the track definitions into a file named TC.tracks
> and then in the same spot as the track definitions were added the
>        include TC.tracks
> line. The TC.tracks file is in the same directory as the main .conf.
>
> Where should the include be located? ie: track definitions, general,
> somewhere else...
> Does the extension on the filename matter? ie: .tracks instead of .conf
>
> If someone could help me with this it or even point me to the
> documentation it would be much appreciated...
>
> System: Intrepid Ubuntu
> Gbrowse v 1.70
>
> Lacey
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gmod-gbrowse mailing list
> Gmod-gbrowse@...
> https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse
>



--
------------------------------------------------------------------------
Scott Cain, Ph. D.                                   scott at scottcain dot net
GMOD Coordinator (http://gmod.org/)                     216-392-3087
Ontario Institute for Cancer Research

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse