from countess.plugins.scoring import BaseScorerPlugin from countess.plugins.options import Options # Options that will be rendered to the GUI for easy access options = Options() options.add_option( name="Normalization Method", varname="logr_method", dtype=str, default="Wild Type", choices={"Wild Type": "wt", "Full": "full", "Complete": "complete"}, hidden=False, ) options.add_option( name="Weighted", varname="weighted", dtype=bool, default=True, choices={}, hidden=False, ) options.add_option( name="Example String Input", varname="ex_string", dtype=str, default="Default String...", choices={}, hidden=False, ) options.add_option(
import logging import numpy as np import pandas as pd from countess.plugins.scoring import BaseScorerPlugin from countess.plugins.options import Options from countess.base.constants import WILD_TYPE_VARIANT from countess.base.utils import log_message from countess.base.constants import IDENTIFIERS, VARIANTS options = Options() options.add_option( name="Normalization Method", varname="logr_method", dtype=str, default="Wild Type", choices={ "Wild Type": "wt", "Full": "full", "Complete": "complete" }, hidden=False, ) class RatiosScorer(BaseScorerPlugin): name = "Ratios" version = "1.0" author = "Alan Rubin, Daniel Esposito"
import logging import numpy as np import pandas as pd import statsmodels.api as sm import scipy.stats as stats from countess.plugins.scoring import BaseScorerPlugin from countess.plugins.options import Options from countess.base.constants import WILD_TYPE_VARIANT from countess.base.constants import VARIANTS, IDENTIFIERS from countess.base.utils import log_message options = Options() options.add_option( name="Normalization Method", varname="logr_method", dtype=str, default="Wild Type", choices={"Wild Type": "wt", "Complete Cases": "complete", "All Reads": "full"}, hidden=False, ) options.add_option( name="Weighted", varname="weighted", dtype=bool, default=True, choices={}, hidden=False, )
from countess.plugins.scoring import BaseScorerPlugin from countess.plugins.options import Options options_1 = Options() options_2 = Options() class CountsScorer(BaseScorerPlugin): name = "Counts Only" version = "1.0" author = "Alan Rubin, Daniel Esposito" def __init__(self, store_manager, options): super().__init__(store_manager, options) def compute_scores(self): return def row_apply_function(self, *args, **kwargs): return
from countess.plugins.scoring import BaseScorerPlugin from countess.plugins.options import Options options_1 = Options() class CountsScorer(BaseScorerPlugin): name = "Counts Only" version = "1.0" author = "Alan Rubin, Daniel Esposito" def __init__(self, store_manager, options): super().__init__(store_manager, options) def compute_scores(self): return def row_apply_function(self, *args, **kwargs): return