Skip to content
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

Non-human genomic data #102

Closed
sapoudel opened this issue Aug 5, 2022 · 3 comments
Closed

Non-human genomic data #102

sapoudel opened this issue Aug 5, 2022 · 3 comments

Comments

@sapoudel
Copy link

sapoudel commented Aug 5, 2022

Hey,
Just learned about gosling and am trying to play around with it using data from bacteria. How can I pass coordinates from my own bacterial assembly? I tried passing assembly='unknown' to track, but nothing renders when I do that.

I am currently using gos on jupyter notebook.

@manzt
Copy link
Member

manzt commented Aug 8, 2022

Hi! Thanks for checking out the project and for your patience in my response. We just added support for custom assemblies to Gosling.js recently (and it is now supported in Gos as of v0.0.11).

To do this, pass the assembly as a list of (name, size) tuples to assembly. e.g.,

gos.Track(data).mark_rect().encode(...).view(
  assembly=[
    ("chr1", 100_000),
    # ^ name    ^ size
  ]
)

I've added an example to the documentation as well.

Note I just released v0.0.11 this morning so make sure to pip install 'gosling[all]==0.0.11'

@sapoudel
Copy link
Author

sapoudel commented Aug 8, 2022

That is amazing! Thank you for the updated docs too. Really looking forward to using this tool!

@sapoudel sapoudel closed this as completed Aug 8, 2022
@prheger
Copy link

prheger commented Aug 23, 2022

Thanks for adding support for custom assemblies to gosling. I think a lot of people will appreciate this after gosling has been mentioned in Nature recently :-) I'm looking forward to give it a try :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants