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

Improvements to update with library #88

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

dkhofer
Copy link
Collaborator

@dkhofer dkhofer commented Nov 11, 2024

This PR brings "update with library" in line with "update with fasta" for working with samples. With these changes, "update with library" takes a required --new-sample flag, creates the new sample, and adds the combinatorial library parts to the specified region (block group) of the new sample.

This also fixes a small problem with error reporting. If no block group is found with the specified region name, gen now errors with eg "No region found with name: PXB_PRIM2"

There's some other minor refactoring in this change, nothing too significant.

@dkhofer dkhofer requested a review from bobvh November 11, 2024 17:38
@dkhofer dkhofer force-pushed the update-with-library-improvements branch from 5221fa0 to 32e2513 Compare November 14, 2024 19:48
@bobvh
Copy link
Collaborator

bobvh commented Nov 15, 2024

Looks good. A note for a future PR involving update-with-library (for example implementing chromosome_index to signify wether or not the original reference is included): could we also look at what the same functionality would look like if it didn't rely on a blockgroup at all, but as an "import" command?

@bobvh bobvh merged commit 89b78ac into main Nov 15, 2024
1 check passed
@bobvh bobvh deleted the update-with-library-improvements branch November 15, 2024 15:35
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

Successfully merging this pull request may close these issues.

2 participants