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

Add --prefixSize flag to @jbrowse/cli text-index #2909

Merged
merged 1 commit into from Apr 14, 2022

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Apr 14, 2022

Fixes #2862

This allows the user to manually specify the prefixSize for the ixixx index

Auto-calculating a prefix size could be an add-on to this, but by allowing at least a manual override we can help some users out first :)

@cmdcolin
Copy link
Collaborator Author

from pairing with @teresam856

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Apr 14, 2022
@cmdcolin cmdcolin added enhancement New feature or request and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Apr 14, 2022
@cmdcolin cmdcolin merged commit 450fbf8 into main Apr 14, 2022
@cmdcolin cmdcolin deleted the customizable_prefix_size branch April 14, 2022 19:52
@@ -471,6 +471,9 @@ OPTIONS

--perTrack If set, creates an index per track

--prefixSize=prefixSize [default: 6] Specify the prefix size for the ixx index, increase size if many of your
gene IDs have same prefix e.g. Z000000001, Z000000002
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cmdcolin I just noticed this defaults to 6 but ixIxx defaults to 5. We should probably default to the same one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is true. it will not cause any issue the way it is now since ixixx doesn't use it's default value, it gets overridden by 6 here, but I can change ixixx to be 6 by default

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

Successfully merging this pull request may close these issues.

Allow user specified and/or auto-adjustable prefix size in text-index
2 participants