Skip to content

Commit

Permalink
Regenerate type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Aug 14, 2024
1 parent 2ff846b commit 7e620c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
2 changes: 2 additions & 0 deletions unipressed/dataset/generated_types/uniparc.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ class UniparcQueryDict(TypedDict):
"Feature ID\ne.g. IPR004251"
proteomecomponent: NotRequired[str]
"Proteome Component\ne.g. chromosome"
organism_id: NotRequired[int]
"Organism ID\ne.g. 10254"


UniparcQuery: TypeAlias = Union[UniparcQueryDict, str]
Expand Down
18 changes: 2 additions & 16 deletions unipressed/dataset/generated_types/uniprotkb.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ class UniprotkbQueryDict(TypedDict):
UniprotkbProteinFamilygroup: TypeAlias = Literal[
"xref_allergome",
"xref_cazy",
"xref_clae",
"xref_esther",
"xref_imgt_gene-db",
"xref_merops",
Expand All @@ -755,19 +754,11 @@ class UniprotkbQueryDict(TypedDict):
"xref_alzforum", "xref_biomuta", "xref_dmdm", "xref_dbsnp"
]
UniprotkbTwodGel: TypeAlias = Literal[
"xref_compluyeast-2dpage",
"xref_dosac-cobs-2dpage",
"xref_ogp",
"xref_reproduction-2dpage",
"xref_swiss-2dpage",
"xref_ucd-2dpage",
"xref_world-2dpage",
"xref_compluyeast-2dpage", "xref_ogp", "xref_reproduction-2dpage"
]
UniprotkbProteomic: TypeAlias = Literal[
"xref_cptac",
"xref_epd",
"xref_massive",
"xref_maxqb",
"xref_pride",
"xref_paxdb",
"xref_peptideatlas",
Expand Down Expand Up @@ -841,7 +832,6 @@ class UniprotkbQueryDict(TypedDict):
"xref_genetree",
"xref_hogenom",
"xref_inparanoid",
"xref_ko",
"xref_oma",
"xref_orthodb",
"xref_phylomedb",
Expand Down Expand Up @@ -875,11 +865,7 @@ class UniprotkbQueryDict(TypedDict):
"xref_emind",
]
UniprotkbGeneExpression: TypeAlias = Literal[
"xref_bgee",
"xref_cleanex",
"xref_collectf",
"xref_expressionatlas",
"xref_genevisible",
"xref_bgee", "xref_cleanex", "xref_collectf", "xref_expressionatlas"
]
UniprotkbFamilyAndDomain: TypeAlias = Literal[
"xref_cdd",
Expand Down
6 changes: 3 additions & 3 deletions unipressed/dataset/generated_types/uniref.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class UnirefQueryDict(TypedDict):
]
]
"Sequence length\ne.g. [100 TO 300]"
created: NotRequired[
date_modified: NotRequired[
tuple[
Union[
date,
Expand All @@ -59,7 +59,7 @@ class UnirefQueryDict(TypedDict):
],
]
]
"Date published\ne.g. [2011-10-10 TO 2019-10-10]"
"Date of last modification\ne.g. [2011-10-10 TO 2019-10-10]"
uniprot_id: NotRequired[str]
"UniProtKB ID/AC\ne.g. sample uniprot id"
upi: NotRequired[str]
Expand All @@ -78,7 +78,7 @@ class UnirefQueryDict(TypedDict):
]
UnirefSequences: TypeAlias = Literal["identity", "length", "sequence"]
UnirefMiscellaneous: TypeAlias = Literal["types", "members", "count"]
UnirefDateOf: TypeAlias = Literal["created",]
UnirefDateOf: TypeAlias = Literal["date_modified",]
UnirefFields: TypeAlias = Literal[
UnirefNamesTaxonomy, UnirefSequences, UnirefMiscellaneous, UnirefDateOf
]

0 comments on commit 7e620c4

Please sign in to comment.