How to get jbrowse to read tracks from files outside of the root of the homepage?
1
2
Entering edit mode
6.9 years ago

Hello everyone!

I use apache (v2.4.18) on a GNU/linux (ubuntu) machine. /var/www/ is configure as the root for the homepage, jbrowse is installed in /var/www/html/summitdb/jbrowse, however the data is too big to store there.

My question is: how can I reach data with jbrowse outside /var/www/?

I have already tried using an alias without success:

I added the following to /etc/apache2/sites-available/000-default.conf

Alias "/data3" "/data/projects/summitdb/jbrowse/data3/"
       <Directory "/data/projects/summitdb/jbrowse/data3/">
                Require all granted
        </Directory>

Copied the trackList.json inside /var/www/html/summitdb/jbrowse/data and modified it like so:

"urlTemplate" : "/data3/tracks/100206/{refseq}/trackData.json",

The error massage is this: SyntaxError: missing : after property id when parsing fsl/trackList.json.

Actually this using an alias is recomanded at http://gmod.org/wiki/JBrowse_Configuration_Guide#Configuring_track_locations_with_Apache. What am I missing?

I also tried simply creating a symbolic link to my data and reach that by giving th link as atribute to the url www.myhompa.ge/summitdb/jbrowse/index.html?data=symlink but that does not seem to work either. Even though apache2 is set to allow symlinks.

In this case the error message is this: RequestError: Unable to load http://myhompa.ge/summitdb/jbrowse/symlink/trackList.json status: 403.

This is my first time with both with jbrowse and apache2 and I am very confused. Any help would be appreciated!

Thanks, Levi

jbrowse genomebrowse • 2.6k views
ADD COMMENT
0
Entering edit mode

SyntaxError: missing : after property id when parsing fsl/trackList.json.

You're typing something wrong in the json file. Can you paste here the lines of such file?

ADD REPLY
0
Entering edit mode

Here is the first 50 lines of the 1455260 lines, it's pretty much repetative after the first 25:

{ "tracks" : [ { "trackType" : null, "storeClass" : "JBrowse/Store/SeqFeature/NCList", "style" : { "className" : "feature" }, "compress" : 0, "label" : "100206", "metadata" : { "motif" : "Hnf4a", "cellLine" : "NB4", "antibody" : "CMYC", "totalTags" : "43803191", "totalPeaks" : "80236", "elementNumber" : "769", "stdDev" : "28.9426", "average" : "1.21196" }, "key" : "100206", "urlTemplate" : "/data3/tracks/100206/{refseq}/trackData.json", "type" : "FeatureTrack" }, { "metadata" : { "motif" : "Hnf4a", "cellLine" : "NB4", "antibody" : "MAX", "totalTags" : "46185428", "totalPeaks" : "111976", "elementNumber" : "857", "stdDev" : "29.0991", "average" : "1.30922" }, "key" : "100208", "type" : "FeatureTrack", "urlTemplate" : "/data3/tracks/100208/{refseq}/trackData.json", "label" : "100208", "compress" : 0, "trackType" : null, "style" : { "className" : "feature" }, "storeClass" : "JBrowse/Store/SeqFeature/NCList" }, { "trackType" : null, "style" : { "className" : "feature"

ADD REPLY
0
Entering edit mode

oh, wow... sorry the lines are messed up... let me try that again

{
   "tracks" : [
      {
         "trackType" : null,
         "storeClass" : "JBrowse/Store/SeqFeature/NCList",
         "style" : {
            "className" : "feature"
         },
         "compress" : 0,
         "label" : "100206",
         "metadata" : {
            "motif" : "Hnf4a",
            "cellLine" : "NB4",
            "antibody" : "CMYC",
            "totalTags" : "43803191",
            "totalPeaks" : "80236",
            "elementNumber" : "769",
            "stdDev" : "28.9426",
            "average" : "1.21196"
         },
         "key" : "100206",
         "urlTemplate" : "/data3/tracks/100206/{refseq}/trackData.json",
         "type" : "FeatureTrack"
      },
      {
         "metadata" : {
            "motif" : "Hnf4a",
            "cellLine" : "NB4",
            "antibody" : "MAX",
            "totalTags" : "46185428",
            "totalPeaks" : "111976",
            "elementNumber" : "857",
            "stdDev" : "29.0991",
            "average" : "1.30922"
         },
         "key" : "100208",
         "type" : "FeatureTrack",
         "urlTemplate" : "/data3/tracks/100208/{refseq}/trackData.json",
         "label" : "100208",
         "compress" : 0,
         "trackType" : null,
         "style" : {
            "className" : "feature"
         },
         "storeClass" : "JBrowse/Store/SeqFeature/NCList"
      },
      {
         "trackType" : null,
         "style" : {
            "className" : "feature"
ADD REPLY
0
Entering edit mode

My guess would be that you should put "null" and "0" between quotes.

ADD REPLY
0
Entering edit mode

Hi Macspider,

Thanks for the tip. Unfortunately, that didn't work out, same error message.

ADD REPLY
4
Entering edit mode
6.9 years ago

OK, it's working now. There were actually two tings. There was a line uncommented in the json file that caused syntax error (possibly my metadata adding script is not working perfectly). The other one was solved by moving the jbrowse out of /var/www/ to the folder where the data is, and making a symlink there. To me, it seams like apache2 actually follows the symlink but jbrowse not.

Thanks to anyone who gave it a thought!

Chears, Levi

ADD COMMENT

Login before adding your answer.

Traffic: 1663 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6