From feed27c8d1c768a18b16f293164fe9862201a792 Mon Sep 17 00:00:00 2001 From: Luis Sanchez Date: Thu, 6 Jul 2023 13:52:33 -0500 Subject: [PATCH 1/3] make SOM schema --- xedocs/schemas/corrections/som_network.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 xedocs/schemas/corrections/som_network.py diff --git a/xedocs/schemas/corrections/som_network.py b/xedocs/schemas/corrections/som_network.py new file mode 100644 index 0000000..e78a75f --- /dev/null +++ b/xedocs/schemas/corrections/som_network.py @@ -0,0 +1,15 @@ +""" +Algorithm which uses a pretrained weightcube from the output of a +Self-Organizing Map to classify peaklets as one of several SOM_types, +as well as classifying those types into either an S1 or an S2 +""" + +from .base_references import BaseResourceReference + + +class SOMClassifier(BaseResourceReference): + _Alias = 'som_classification' + fmt = 'binary' + + value: str + \ No newline at end of file From d3ad58559075bc25ec755753c2f60fa4578ee0fe Mon Sep 17 00:00:00 2001 From: Luis Sanchez <45677170+LuisSanchez25@users.noreply.github.com> Date: Thu, 6 Jul 2023 13:55:12 -0500 Subject: [PATCH 2/3] Update som_network.py update name for coinsistency --- xedocs/schemas/corrections/som_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xedocs/schemas/corrections/som_network.py b/xedocs/schemas/corrections/som_network.py index e78a75f..f5ad7d8 100644 --- a/xedocs/schemas/corrections/som_network.py +++ b/xedocs/schemas/corrections/som_network.py @@ -8,8 +8,8 @@ class SOMClassifier(BaseResourceReference): - _Alias = 'som_classification' + _Alias = 'som_classifiers' fmt = 'binary' value: str - \ No newline at end of file + From 08b65b608119529eb1154fbb0979fc2c16f3ed67 Mon Sep 17 00:00:00 2001 From: Luis Sanchez <45677170+LuisSanchez25@users.noreply.github.com> Date: Thu, 6 Jul 2023 15:57:39 -0500 Subject: [PATCH 3/3] Update xedocs/schemas/corrections/som_network.py Co-authored-by: Yossi Mosbacher --- xedocs/schemas/corrections/som_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xedocs/schemas/corrections/som_network.py b/xedocs/schemas/corrections/som_network.py index f5ad7d8..5cc3bf0 100644 --- a/xedocs/schemas/corrections/som_network.py +++ b/xedocs/schemas/corrections/som_network.py @@ -8,7 +8,7 @@ class SOMClassifier(BaseResourceReference): - _Alias = 'som_classifiers' + _ALIAS = 'som_classifiers' fmt = 'binary' value: str