GMOD / jbrowse

JBrowse 1, a full-featured genome browser built with JavaScript and HTML5. For JBrowse 2, see https://github.com/GMOD/jbrowse-components.
http://jbrowse.org
Other
460 stars 199 forks source link

Feature request: Absolute paths in configs #1594

Closed Gogis0 closed 3 years ago

Gogis0 commented 3 years ago

In config files, the attribute 'urlTemplate' assumes that the path to the data is relative to the config location. Wouldn't it be useful to support absolute paths, so that the data can be stored anywhere in the filesystem, regardless of the location of the config file?

cmdcolin commented 3 years ago

Is this referring to jbrowse desktop or just a normal jbrowse on the web?

At least on the web, absolute paths in urlTemplate should work, an absolute path would for example start with a slash and then it would be resolved relative to the base of the server e.g. urlTemplate=/path/to/my/file.bw would be http://yourserver.com/path/to/my/file.bw. Alternatively, urlTemplate can be an absolute URL starting with http(s)://

cmdcolin commented 3 years ago

are there any other concerns about this?

cmdcolin commented 3 years ago

let me know if there is anything else we can do...

Gogis0 commented 3 years ago

@cmdcolin Sorry for the long delay. Thank you for answering my question, I think you made it clear for me. This issue may therefore remain closed.