← Về thư mục
skills/matchms/scripts/library_search.py
- build_parser · function · L96-L213 — def build_parser() -> argparse.ArgumentParser
- validate_args · function · L216-L259 — def validate_args(args: argparse.Namespace) -> None
- installed_matchms_version · function · L262-L266 — def installed_matchms_version() -> str
- create_processor · function · L269-L313 — def create_processor(args: argparse.Namespace) -> SpectrumProcessor
- load_and_process · function · L316-L328 — def load_and_process( path: Path, processor: SpectrumProcessor, *, show_progress: bool, ) -> tuple[list[Any], int]
- create_metric · function · L331-L371 — def create_metric(args: argparse.Namespace) -> Any
- choose_score_fields · function · L374-L383 — def choose_score_fields(score_names: tuple[str, ...]) -> tuple[str, str | None]
- numeric_field · function · L386-L391 — def numeric_field(value: Any, name: str) -> float
- matched_peaks · function · L394-L401 — def matched_peaks(value: Any, name: str | None) -> int | None
- spectrum_id · function · L404-L425 — def spectrum_id( spectrum: Any, *, preferred: str | None, index: int, prefix: str, ) -> str
- metadata_value · function · L428-L430 — def metadata_value(spectrum: Any, key: str) -> str
- write_hits · function · L433-L517 — def write_hits( output: Path, *, scores: Any, queries: list[Any], references: list[Any], args: argparse.Namespace, ) -> int
- run · function · L520-L579 — def run(args: argparse.Namespace) -> int
- main · function · L582-L589 — def main() -> int