From 0369768b058256cc254e2fcb2e2625d803af0230 Mon Sep 17 00:00:00 2001 From: Jess White <50890758+jessicaw9910@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:54:02 -0500 Subject: [PATCH] Initial api clients (#6) * added cbioportal, pfam, and utils_requests; ran black and flake8 on everything in src for the first time * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added docstring for pfam extract_numeric * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/missense_kinase_toolkit/pfam.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/missense_kinase_toolkit/pfam.py b/src/missense_kinase_toolkit/pfam.py index fd2213f..e38bc64 100644 --- a/src/missense_kinase_toolkit/pfam.py +++ b/src/missense_kinase_toolkit/pfam.py @@ -120,7 +120,21 @@ def concat_pfam( return df, dict_error, dict_missing -def extract_numeric(input_string): +def extract_numeric( + input_string: str, +) -> str: + """Extract numeric characters from a string + + Parameters + ---------- + input_string : str + Input string + + Returns + ------- + str + Numeric characters extracted from the input string + """ num = "" for i in input_string: if i.isdigit():