Skip to content

PromoterSetSigAPI

Bases: AbstractRecordsAndFilesAPI

Class to interact with the PromoterSetSigAPI endpoint.

Source code in yeastdnnexplorer/interface/PromoterSetSigAPI.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
class PromoterSetSigAPI(AbstractRecordsAndFilesAPI):
    """Class to interact with the PromoterSetSigAPI endpoint."""

    def __init__(self, **kwargs) -> None:
        """
        Initialize the PromoterSetSigAPI object.

        :param kwargs: parameters to pass through AbstractRecordsAndFilesAPI to
            AbstractAPI.

        """
        valid_param_keys = kwargs.pop(
            "valid_param_keys",
            [
                "id",
                "binding",
                "promoter",
                "promoter_name",
                "background",
                "background_name",
                "regulator_locus_tag",
                "regulator_symbol",
                "batch",
                "replicate",
                "source",
                "source_name",
                "lab",
                "assay",
                "workflow",
                "data_usable",
                "aggregated",
                "condition",
            ],
        )

        url = kwargs.pop("url", os.getenv("PROMOTERSETSIG_URL", None))

        super().__init__(url=url, valid_keys=valid_param_keys, **kwargs)

    def create(self, data: dict[str, Any], **kwargs) -> Any:
        raise NotImplementedError("The PromoterSetSigAPI does not support create.")

    def update(self, df: pd.DataFrame, **kwargs) -> Any:
        raise NotImplementedError("The PromoterSetSigAPI does not support update.")

    def delete(self, id: str, **kwargs) -> Any:
        raise NotImplementedError("The PromoterSetSigAPI does not support delete.")

    def submit(self, post_dict: dict[str, Any], **kwargs) -> Any:
        raise NotImplementedError("The PromoterSetSigAPI does not support submit.")

    def retrieve(
        self, group_task_id: str, timeout: int, polling_interval: int, **kwargs
    ) -> Any:
        raise NotImplementedError("The PromoterSetSigAPI does not support retrieve.")

__init__(**kwargs)

Initialize the PromoterSetSigAPI object.

Parameters:

Name Type Description Default
kwargs

parameters to pass through AbstractRecordsAndFilesAPI to AbstractAPI.

{}
Source code in yeastdnnexplorer/interface/PromoterSetSigAPI.py
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
def __init__(self, **kwargs) -> None:
    """
    Initialize the PromoterSetSigAPI object.

    :param kwargs: parameters to pass through AbstractRecordsAndFilesAPI to
        AbstractAPI.

    """
    valid_param_keys = kwargs.pop(
        "valid_param_keys",
        [
            "id",
            "binding",
            "promoter",
            "promoter_name",
            "background",
            "background_name",
            "regulator_locus_tag",
            "regulator_symbol",
            "batch",
            "replicate",
            "source",
            "source_name",
            "lab",
            "assay",
            "workflow",
            "data_usable",
            "aggregated",
            "condition",
        ],
    )

    url = kwargs.pop("url", os.getenv("PROMOTERSETSIG_URL", None))

    super().__init__(url=url, valid_keys=valid_param_keys, **kwargs)