MCPcopy Create free account
hub / github.com/BioinfoMachineLearning/FlowDock / resolve_method_input_csv_path

Function resolve_method_input_csv_path

flowdock/__init__.py:47–62  ·  view source on GitHub ↗

Resolve the input CSV path for a given method. :param method: The method name. :param dataset: The dataset name. :return: The input CSV path for the given method.

(method: str, dataset: str)

Source from the content-addressed store, hash-verified

45
46
47def resolve_method_input_csv_path(method: str, dataset: str) -> str:
48 """Resolve the input CSV path for a given method.
49
50 :param method: The method name.
51 :param dataset: The dataset name.
52 :return: The input CSV path for the given method.
53 """
54 if method in STANDARDIZED_DIR_METHODS or method in ["flowdock", "neuralplexer"]:
55 return os.path.join(
56 "forks",
57 METHOD_TITLE_MAPPING.get(method, method),
58 "inference",
59 f"{method}_{dataset}_inputs.csv",
60 )
61 else:
62 raise ValueError(f"Invalid method: {method}")
63
64
65def resolve_method_title(method: str) -> str:

Callers 1

Calls 2

joinMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected