databio / bedhost

API and UI for BEDbase
http://api.bedbase.org
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

bedbase tutorial feedback #14

Closed stolarczyk closed 4 years ago

stolarczyk commented 4 years ago

nice @joseverdezoto, I like the tutorial. I think it's clear and very helpful. Some minor remarks below:

nsheff commented 4 years ago

@joseverdezoto what is the status on this issue?

joseverdezoto commented 4 years ago

All those suggested changes were made last week. There’s an issue at the very last step, when trying to run bedhost, but other than that it should be good to go. I think @stolarczyk is testing the whole tutorial workflow

stolarczyk commented 4 years ago

@joseverdezoto, the issue with bedhost serve -c bedbase_demo_PEPs/bedbase_configuration.yaml command stems from bbconf not making the config-sourced path in paths:pipelines_output relative to the config file itself. I think you assumed that it does. So the solution is to change the config you use -- prepend $HOME/bedbase_tutorial to the path in the config.

stolarczyk commented 4 years ago

Also, I'd put the BEDBASE config outside of the PEP directory, since it's not part of the PEP.

joseverdezoto commented 4 years ago
joseverdezoto commented 4 years ago

Update: I prepended $BEDBASEtutorial ($HOME/bedbase_tutorial) to the path in the config but I still get the error:

File "/home/jev4xy/.local/lib/python3.6/site-packages/starlette/routing.py", line 282, in __init__
    assert path == "" or path.startswith("/"), "Routed paths must start with '/'"
AssertionError: Routed paths must start with '/'
stolarczyk commented 4 years ago

It worked for me.

Are you sure the file you point to with -c arg in bedhost command is the updated file?

stolarczyk commented 4 years ago

maybe use $BEDBASEtutorial env var instead of the path path to the config in the call

stolarczyk commented 4 years ago

In regards to the other suggestion, I placed the bedbase_config file inside that folder because I thought it wouldn't be very practical to have an extra .tar.gz file (with only 1 .yaml file) to download

what about taring the config file and the PEP directory together (file outside the dir)?

joseverdezoto commented 4 years ago

Oops, I had forgotten to update the paths:pipelines_output path of the tutorial config. It's working now :)

nsheff commented 4 years ago

are these issues complete? please update status.

joseverdezoto commented 4 years ago

@nsheff yes, you should be able to run the tutorial in the example files and then open bedhost to explore the respective bedstat and bedbuncher outputs. Michal and I have succesfully tested the tutorial at this point.