Skip to content

Switching Scoring Methods #330

@shendricks464

Description

@shendricks464

Good day

Metcalf did not work for me and I am trying to use the other scoring methods. However I am having difficulties enabling NPClass and Rosetta. I am able to see it and select it but when I run it it always the output "invalid scoring method". I am using NPLinker 2.0.0b1 and python 3.11.


ValueError Traceback (most recent call last)
Cell In[8], line 16
13 print(npl.strains)
15 # compute the links for the first 3 GCFs using rosetta scoring method
---> 16 link_graph = npl.get_links(npl.gcfs[:50], "rosetta")
18 # get links as a list of tuples
19 link_graph.links

File ~/miniconda3/envs/npl-3.11/lib/python3.11/site-packages/nplinker/nplinker.py:257, in NPLinker.get_links(self, objects, scoring_method, **scoring_params)
255 # Validate scoring method
256 if scoring_method not in self._valid_scoring_methods:
--> 257 raise ValueError(f"Invalid scoring method {scoring_method}.")
259 # Check if the scoring method has been set up
260 if not self._scoring_methods_setup_done[scoring_method]:

ValueError: Invalid scoring method rosetta.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions