-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set-default-session --tracks
generates incomplete session
#2708
Comments
Hi there Probably for the time being, --tracks will not work You could instead a) Use File->Export session and load that file with |
For us to fix the --tracks parameter we will either
|
Thank you for the suggestion for workaround. Now I have another problem that
Could you tell me what is wrong? or should I file a new issue for this? |
this is not a well documented behavior but you can use
in your jbrowse root directory, or make --out point at a root directory, not at the specific config, and then you can navigate to http://localhost:9090?adminKey=keyhere&config=mytarget/config.json and it will write to root directory+'mytarget/config.json' this behavior was added here just for reference #2139 can try to improve docs for this a bit |
Thank you, But |
thanks for the continued patience with this. Indeed, --out was not working. I have proposed a fix that allows it to work in #2715 also changes the name of the flag to be --root instead of --out/--target because it is indeed inconsistent, and since --out was not working anyways, hopefully the change is not disruptive. |
Hi!
Any thoughts on that? Not sure if it matches with the kind of "session spec" you are referring to above |
@abretaud The "session spec" solution would allow us to specify a reduced representation of the session that JBrowse interprets and loads. As an example, the same kind of JSON that you can use in a URL like is described here could be placed in a config file. @cmdcolin and I discussed some solutions for this today. If we want to be able to put a "session spec" in the config file, it would probably need its own key (like "defaultSessionSpec"). That does leave open the question of whether "defaultSession" or "defaultSessionSpec" would have priority if both were specified. We also tried adding a snapshot preprocessor to the BaseTrackModel with the idea that we might be able to add displays on load, which would allow the current |
Ok, session spec looks like a good idea! There's a (I'd say |
Another related thing: is there (or could there be?) a way to specify some display settings for tracks that are not shown? For example, I'd like to add a bam track, hidden by default, but I would like it to use LinearSNPCoverageDisplay by default when the user shows it |
@abretaud one way to force a SNPCoverage display by default is via the config file our volvox sample config has an entry that does this that looks like this, the crucial part being the "displays" array
|
With a little delay: thanks, it works! |
@abretaud can you create a new issue or discussion for this? it's hard to track too many branches on a thread :) just to try to address, I think displayCrossHatches is part of the "renderer" config. It is also part of the state model of the display to allow the user to select it via the UI. we could probably add it as a config of the display to make that easier |
set-default-session --tracks
generates tracks with minimal properties: "type" and "configuration":This
config.json
results in a fatal errorTypeError: Cannot read properties of undefined (reading 'height')
.To Reproduce
jbrowse create
jbrowse add-assembly
jbrowse add-track
jbrowse set-default-session --tracks
Expected behavior
height
and show tracks with some default values.set-default-session
should set all the required properties.Screenshots
Version:
@jbrowse/cli/1.6.4 darwin-x64 node-v16.13.21
Additional context
I am trying to automate jbrowse configuration to handle many different conditions and data. I hope everything can be done via CLI.
The text was updated successfully, but these errors were encountered: