-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LinkGraph to replace ObjectLink and LinkCollection (#252)
* Update pyproject.toml * Delete link_collection.py * Delete object_link.py * Create scoring_method.py * Create score.py * Create link_graph.py * Update __init__.py * Create test_score.py * Create test_scoring_method.py * Create test_link_graph.py * update abc.py to use LinkGraph * Update MetcalfScoring to use LinkGraph - Use LinkGraph to replace ObjectLink and LinkCollection - remove attribute `cutoff` and `standardised`. Now users have to pass them as parameters * update NPLinker and other scoring methods to use LinkGraph These updates are just to make sure code can import. Further refactoring is needed to ensure the correct output. * Update test_nplinker_scoring.py
- Loading branch information
1 parent
3bed728
commit c7d2be8
Showing
17 changed files
with
545 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ dependencies = [ | |
"httpx", | ||
"jsonschema", | ||
"numpy", | ||
"networkx", | ||
"pandas", | ||
"pyteomics", | ||
"rich", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
from .abc import ScoringBase | ||
from .link_collection import LinkCollection | ||
from .link_graph import LinkGraph | ||
from .metcalf_scoring import MetcalfScoring | ||
from .object_link import ObjectLink | ||
from .score import Score | ||
from .scoring_method import ScoringMethod | ||
|
||
|
||
__all__ = ["LinkCollection", "MetcalfScoring", "ScoringBase", "ObjectLink"] | ||
__all__ = [ | ||
"LinkGraph", | ||
"MetcalfScoring", | ||
"Score", | ||
"ScoringBase", | ||
"ScoringMethod", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.