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

Allow initialization of writeable SeqRepo instance #282

Open
jsstevenson opened this issue Apr 8, 2024 · 2 comments
Open

Allow initialization of writeable SeqRepo instance #282

jsstevenson opened this issue Apr 8, 2024 · 2 comments
Labels
enhancement New feature or request priority:low Low priority

Comments

@jsstevenson
Copy link
Member

Just need to add an extra param

@jsstevenson jsstevenson added the priority:low Low priority label Apr 8, 2024
@jsstevenson
Copy link
Member Author

It's not that complicated to just do this manually

from biocommons.seqrepo import SeqRepo
from cool_seq_tool.app import CoolSeqTool

sr = SeqRepo("/usr/local/share/seqrepo/latest", writeable = True)
CoolSeqTool(sr=sr)

Not sure if it's worth adding writeable as a param to SeqRepoAccess or if we think it's fine the way it is. Maybe we could also add a method that makes this a little simpler:

    alias_dict_list = [{'namespace': 'ga4gh', 'alias': sequence_id}]
    get_seqrepo().sr.store(sequence, nsaliases = alias_dict_list)

@jsstevenson jsstevenson added the enhancement New feature or request label Apr 8, 2024
Copy link

github-actions bot commented Jul 2, 2024

This issue is stale because it has been open 45 days with no activity. Please make a comment for triaging or closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:low Low priority
Projects
None yet
Development

No branches or pull requests

2 participants