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

Fix local test error #105

Merged
merged 32 commits into from
Feb 23, 2023
Merged

Fix local test error #105

merged 32 commits into from
Feb 23, 2023

Conversation

CunliangGeng
Copy link
Member

@CunliangGeng CunliangGeng commented Feb 15, 2023

Please review PR #101 and #102 first, then this PR (only need to review the last two commits).

The test errors of test_nplinker.py is caused by bgc.strain and gcf.id.
This PR fixes the errors with a temporary solution (i.e. using the logics of the original codebase) to keep focusing on the refactoring of the data preparation part.
Added two issue #103 and #104 to update/change the logics later.

- set antismash file to BGC object during loading
- add SMILES parser
- refactor product parser
- remove parameter `id`
- rename parameter `name` to `bgc_id`
- update all references to old `id` and `name`
- remove parameter `id`
- update all references to old `id`
- merge methods to reimplement data parsing
- add type hints
- update doctrings
the method must call hash function to return an integer
-  remove unused attribute `strains_lookup`
- apply property to attribute `bgcs`
- update method `add_bgc` logic
- add docstrings
- add type hints
This is a temporary solution. Loading of strains will be refactored later. See issue 104.
This is a temporary solution, will remove it later. See issue 103 #103.
@CunliangGeng
Copy link
Member Author

@hechth Conflicts solved and ready for review

@hechth
Copy link
Collaborator

hechth commented Feb 23, 2023

@CunliangGeng let's merge this and move on with the refactoring :)

@CunliangGeng CunliangGeng merged commit cf8a5f4 into dev Feb 23, 2023
@CunliangGeng CunliangGeng deleted the fix_local_test_error branch February 23, 2023 13:21
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