-
Notifications
You must be signed in to change notification settings - Fork 497
JBrowse Update #141
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
JBrowse Update #141
Conversation
Galaxy has an integrated converter for it: https://github.com/galaxyproject/galaxy/blob/dev/config/datatypes_conf.xml.sample#L204 I also hope to make use of this for visualizations. Not sure about this though.
Yes, @guerler is working on this. Imho it is not yet in dev.
I would got with bigWig support only. Galaxy has converters if someone really cares.
I guess this is a important options, but than again it depends on your use cases. |
tools/jbrowse/jbrowse.py
Outdated
| if len(json_data.keys()) == 0: | ||
| return | ||
|
|
||
| print json_data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, will remove before it's out of WIP
okay, then we just need to make sure the indices are attached like for bam files. Added to TODO
Great, sounds good. I want it to be easy, and as long as Galaxy will list wig files that can be auto-converted for use...
Just want a general utility JBrowse tool which exposes a lot of the tougher to deal with JBrowse configuration in a user-friendly way. Trying to find a happy place where it isn't an overwhelming amount of configuration. I'll probably add in the min/max then.... I really want people to use this and tell me what needs to be fixed for their datasets... |
|
BlastXML to gapped GFF3 will be part of this PR soon. @peterjc you have any thoughts/comments/opinions on the following graphics? |
|
Pretty graphics :) See also peterjc/galaxy_blast#61 plus there have been some recent discussion about returning BLAST XML etc from the Tool Shed to the Galaxy core. If that happens then BLAST XML to gapped GFF3 could also go in the core... |
|
Thanks @peterjc, thought I'd ping you since you're the blast person... Definitely, I'd love to see all the blast stuff in core, I'll be happy to PR that PR with a datatype converter. |
|
I don't expect anyone to review this before next week, but if anyone feels like it, this is out of WIP and ready to be merged. :) (Additionally I recognise that pet-projects have a different relationship with the IUC repo than normal packaging efforts.) |
| gff3_unrebased.close() | ||
|
|
||
| gff3_rebased = tempfile.NamedTemporaryFile(delete=False) | ||
| cmd = ['python', os.path.join(INSTALLED_TO, 'gff3_rebase.py')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both files are located in the same directory, why not importing the main function and using it without tempfile and subprocess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the thinking with tempfile was that it will be better behaved than reading/storing the entire data structure in memory. However, the parser isn't written in a very "streaming" fashion right now, so huge amounts of data will still be stored in memory.
You're absolutely right though, I'll switch over to importing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to switch over?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shoot, hadn't tested. Will test now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened to this one? I'm fine with it being called as subprocess, just wanted to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave it as is for this round, since I know it is already working, and the testing for jbrowse isn't easy yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be PRing another jbrowse update soon to do the following:
- switch over to importing (maybe?)
- add test cases
- remove the
sample_datafolder from use in the package - add more configurability for track plotting
- figure out whatever bug makes viewing bam/bigwig data nearly impossible inside of galaxy. outside of galaxy everything works fine.
See my other small comments inline. |
|
|
@erasche I don't see the IUC repo only for tool suites. Feel free to add those converters as standalone tools. |
|
@bgruening okay! Will do! |
|
@bgruening do you have an examples of having a tool repo be a dependency? e.g. <?xml version="1.0"?>
<tool_dependency>
<package name="jbrowse" version="1.11.6">
<repository name="package_jbrowse_1_11_6" owner="iuc"/>
</package>
<tool name="blastxml_to_gff3" version="1.0">
<repository name="blastxml_to_gff3" owner="iuc"/>
</tool>? How does one write the XML for that, I'm not seeing any examples. Or do I need to:
That seems awfully complex. Or should I just copy+paste the scripts into this directory and keep them in a separate repo as well? |
| # may be longer than the parent feature, so we use the supplied | ||
| # subject/hit length to calculate the real ending of the target | ||
| # protein. | ||
| #print hsp.align_length, hit.length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, that was from testing/debugging the math. Removed.
|
@erasche please also see my old comments. |
|
@bgruening thanks for the amazing feedback, I really appreciate it. I'll get fixes implemented shortly. |
|
@bgruening okay, should be closer to ready. Used symlinks everywhere possible. |
|
@erasche you can also symlink on git level to avoid code duplication. Thanks for the fixes. |
|
Okay, travis is failing now due to the bundle. I'll have to correct that first thing tomorrow along with git symlinks. |
|
@bgruening should be good to go, if travis tests pass. |



New Features
Preview:
Visualize ALL the data
Questions: