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

refactor NPLinker class #256

Merged
merged 12 commits into from
Jun 14, 2024
Merged

refactor NPLinker class #256

merged 12 commits into from
Jun 14, 2024

Conversation

CunliangGeng
Copy link
Member

@CunliangGeng CunliangGeng commented Jun 10, 2024

Finally, it's ready to refactor the main class NPLinker.

It's better to review in the order of commits.

It's necessary to add some new methods to this class, e.g. pickling data, but they will be added in next PRs. When pickling data is done, then it's ready to start the dev of webapp.

@CunliangGeng CunliangGeng requested a review from gcroci2 June 10, 2024 15:56
@CunliangGeng CunliangGeng self-assigned this Jun 10, 2024
@CunliangGeng CunliangGeng marked this pull request as ready for review June 10, 2024 15:57
@CunliangGeng CunliangGeng force-pushed the rename_molfam_to_mf branch from 450f78d to 916e1c3 Compare June 13, 2024 11:23
@CunliangGeng CunliangGeng force-pushed the refactor_NPLinker_methods branch from e9776df to ea42a68 Compare June 13, 2024 11:23
src/nplinker/nplinker.py Outdated Show resolved Hide resolved
src/nplinker/__init__.py Show resolved Hide resolved
- MolecularFamily
self, objects: Sequence[BGC], scoring_method: str, **scoring_params
) -> LinkGraph: ...
@overload
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't know this decorator. Very handy!

@CunliangGeng CunliangGeng force-pushed the rename_molfam_to_mf branch from 916e1c3 to 984d72b Compare June 14, 2024 08:42
@CunliangGeng CunliangGeng force-pushed the refactor_NPLinker_methods branch from ea42a68 to e7f0420 Compare June 14, 2024 08:42
@CunliangGeng CunliangGeng mentioned this pull request Jun 14, 2024
Copy link
Member Author

CunliangGeng commented Jun 14, 2024

Merge activity

  • Jun 14, 7:27 AM EDT: @CunliangGeng started a stack merge that includes this pull request via Graphite.
  • Jun 14, 7:33 AM EDT: Graphite rebased this pull request as part of a merge.
  • Jun 14, 7:34 AM EDT: @CunliangGeng merged this pull request with Graphite.

@CunliangGeng CunliangGeng force-pushed the rename_molfam_to_mf branch from 984d72b to 3f997ff Compare June 14, 2024 11:29
Base automatically changed from rename_molfam_to_mf to dev June 14, 2024 11:31
@CunliangGeng CunliangGeng force-pushed the refactor_NPLinker_methods branch from e7f0420 to 155f7f8 Compare June 14, 2024 11:32
@CunliangGeng CunliangGeng merged commit fc9ddec into dev Jun 14, 2024
2 of 3 checks passed
@CunliangGeng CunliangGeng deleted the refactor_NPLinker_methods branch June 14, 2024 11:34
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
49.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

This was referenced Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants