Skip to content

Commit

Permalink
Initial api clients (#6)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jessicaw9910 and pre-commit-ci[bot] authored Feb 21, 2024
1 parent aa9c8cb commit 0369768
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/missense_kinase_toolkit/pfam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 0369768

Please sign in to comment.