From 919714ecf6107b74ffbde0f555fecf665d11fae5 Mon Sep 17 00:00:00 2001 From: Donavan See Date: Tue, 8 Dec 2020 15:00:46 -0800 Subject: [PATCH] Formatting and Readme Fixed formatting according to black and fixed url to crema logo in readme file --- README.md | 2 +- crema/params.py | 4 +++- tests/test_crema_methods.py | 28 +++++++++++++++++++++++++--- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 39bcf4a..5c3bc56 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + Confidence Estimation for Mass Spectrometry Proteomics diff --git a/crema/params.py b/crema/params.py index d1e9954..f5e991f 100644 --- a/crema/params.py +++ b/crema/params.py @@ -32,7 +32,9 @@ def _configure_parser(): "More documentation and examples: " ) - parser = argparse.ArgumentParser(description=desc,) + parser = argparse.ArgumentParser( + description=desc, + ) parser.add_argument( "input_files", diff --git a/tests/test_crema_methods.py b/tests/test_crema_methods.py index 2a1e40a..e9d1663 100644 --- a/tests/test_crema_methods.py +++ b/tests/test_crema_methods.py @@ -142,7 +142,18 @@ True, False, ], - "extras": ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j",], + "extras": [ + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + ], } ) @@ -217,7 +228,18 @@ testframe_single_noncrux_data = pd.DataFrame( { "scan": [1, 2, 3, 4, 5, 1, 2, 3, 4, 5], - "p-value": [0.7, 0.4, 0.1, 0.55, 0.25, 0.6, 0.2, 0.7, 0.56, 0.3,], + "p-value": [ + 0.7, + 0.4, + 0.1, + 0.55, + 0.25, + 0.6, + 0.2, + 0.7, + 0.56, + 0.3, + ], "target": [ True, False, @@ -341,7 +363,7 @@ def test_single_int_targets_dataset_class(): A :py:class:`~crema.dataset.PsmDataset` object containing the PSM data from the given tab-delimited file. """ - psm = read_file(["data/single_int_targets.csv"],) + psm = read_file(["data/single_int_targets.csv"]) return psm