-
Notifications
You must be signed in to change notification settings - Fork 11
Adapting to data model changes #383
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
Changes from all commits
4a59c1f
4b50bbd
3c98642
6711478
b961dd3
e1de76e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,16 +40,17 @@ def process_folder(working_dir: str): | |
| # We do this to have action to .end and .start | ||
| pcr_sources = [PCRSource.model_validate(s.model_dump()) for s in pcr_sources] | ||
| locus_source = next(s for s in strategy.sources if s.type == 'GenomeCoordinatesSource') | ||
| locus_location = Location.fromstring(locus_source.coordinates) | ||
| hrec_source = next(s for s in strategy.sources if s.type == 'HomologousRecombinationSource') | ||
| # We do this to have action to .end and .start | ||
| hrec_source: HomologousRecombinationSource = HomologousRecombinationSource.model_validate(hrec_source.model_dump()) | ||
|
|
||
| chromosome = chromosomes[locus_source.sequence_accession] | ||
| chromosome = chromosomes[locus_source.repository_id] | ||
|
cursor[bot] marked this conversation as resolved.
|
||
| insertion_start = ( | ||
| locus_source.start + location_boundaries(Location.fromstring(hrec_source.input[0].right_location))[1] | ||
| locus_location.start + location_boundaries(Location.fromstring(hrec_source.input[0].right_location))[1] | ||
| ) | ||
| insertion_end = ( | ||
| locus_source.start + location_boundaries(Location.fromstring(hrec_source.input[-1].left_location))[0] | ||
| locus_location.start + location_boundaries(Location.fromstring(hrec_source.input[-1].left_location))[0] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Off-by-one error in insertion coordinate calculationsThe |
||
| ) | ||
|
|
||
| # Write out the sequences in genbank format and extract some relevant info | ||
|
|
||
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
opencloning-linkmldependency is missing from the[tool.poetry.dependencies]section but is present inpoetry.lockat version 0.4.9. This dependency should be explicitly declared inpyproject.toml(e.g.,opencloning-linkml = "0.4.9") to ensure reproducible builds and clear dependency management.