databio / bedbase

Aggregate, analyze, and serve genomic regions.
http://bedbase.org/
4 stars 0 forks source link

Flexibility of back-end data #25

Closed nsheff closed 1 year ago

nsheff commented 1 year ago

How flexible is BEDbase with respect to URLs for the bed files themselves?

We should follow the example in refgenie, where you can give different "remotes", and then specify these when you request data, so the API can broker links to different back-end data sources, for the file data (this is probably not necessary for the database, just for the actual files).

nsheff commented 1 year ago

I guess this is already possible:

https://github.com/databio/bedhost/blob/f6848ca0ea531d351cae7e0e5c7cce45c9051f45/bedbase_configuration_compose.yaml#L17-L23

xuebingjie1990 commented 1 year ago

yes, the current bedhost can get the url of the file for both http and s3:

for bed files: https://github.com/databio/bedhost/blob/master/bedhost/routers/api.py#L213-L238 for bed sets: https://github.com/databio/bedhost/blob/master/bedhost/routers/api.py#L581-L605