mgnipy.emgapi_v2_client.models package

Contents

mgnipy.emgapi_v2_client.models package#

Contains all the data models used in inputs/outputs

class mgnipy.emgapi_v2_client.models.AdditionalContainedGenomeSchema(genome, updated_at, run_accession=<mgnipy.emgapi_v2_client.types.Unset object>, containment=<mgnipy.emgapi_v2_client.types.Unset object>, cani=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
genome#

Simple schema for a Genome model.

Type:

GenomeSchema

updated_at#
Type:

datetime.datetime | None

run_accession#

ENA accession of the run that produced this assembly

Type:

None | str | Unset

containment#

Containment score for the genome within the assembly

Type:

float | None | Unset

cani#

Containment Average Nucleotide Identity (cANI)

Type:

float | None | Unset

genome: GenomeSchema#
updated_at: datetime.datetime | None #
run_accession: None | str | Unset#
containment: float | None | Unset#
cani: float | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.AnalysedRun(experiment_type, instrument_model, instrument_platform, accession=<mgnipy.emgapi_v2_client.types.Unset object>, sample_accession=<mgnipy.emgapi_v2_client.types.Unset object>, study_accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
  • experiment_type (str )

  • instrument_model (None | str )

  • instrument_platform (None | str )

  • accession (None | str | Unset)

  • sample_accession (None | str | Unset)

  • study_accession (None | str | Unset)

experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

instrument_model#
Type:

None | str

instrument_platform#
Type:

None | str

accession#
Type:

None | str | Unset

sample_accession#

ENA accession of the sample associated with this run

Type:

None | str | Unset

study_accession#

ENA accession of the study associated with this run

Type:

None | str | Unset

experiment_type: str #
instrument_model: None | str #
instrument_platform: None | str #
accession: None | str | Unset#
sample_accession: None | str | Unset#
study_accession: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.AnalysedRunDetail(experiment_type, instrument_model, instrument_platform, sample, study, accession=<mgnipy.emgapi_v2_client.types.Unset object>, sample_accession=<mgnipy.emgapi_v2_client.types.Unset object>, study_accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

instrument_model#
Type:

None | str

instrument_platform#
Type:

None | str

sample#
Type:

MGnifySample | None

study#
Type:

MGnifyStudy | None

accession#
Type:

None | str | Unset

sample_accession#

ENA accession of the sample associated with this run

Type:

None | str | Unset

study_accession#

ENA accession of the study associated with this run

Type:

None | str | Unset

experiment_type: str #
instrument_model: None | str #
instrument_platform: None | str #
sample: MGnifySample | None #
study: MGnifyStudy | None #
accession: None | str | Unset#
sample_accession: None | str | Unset#
study_accession: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.AnalysisGetMgnifyAnalysisWithAnnotationsOfTypeMGnifyFunctionalAnalysisAnnotationType(*values)[source]#

Bases: str , Enum

PFAMS = 'pfams'#
TAXONOMIES_DADA2_PR2 = 'taxonomies__dada2_pr2'#
TAXONOMIES_DADA2_SILVA = 'taxonomies__dada2_silva'#
TAXONOMIES_ITS_ONE_DB = 'taxonomies__its_one_db'#
TAXONOMIES_LSU = 'taxonomies__lsu'#
TAXONOMIES_PR2 = 'taxonomies__pr2'#
TAXONOMIES_SSU = 'taxonomies__ssu'#
TAXONOMIES_UNITE = 'taxonomies__unite'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.Assembly(updated_at, accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
updated_at#
Type:

datetime.datetime

accession#
Type:

None | str | Unset

updated_at: datetime #
accession: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.AssemblyDetail(updated_at, accession=<mgnipy.emgapi_v2_client.types.Unset object>, run_accession=<mgnipy.emgapi_v2_client.types.Unset object>, sample_accession=<mgnipy.emgapi_v2_client.types.Unset object>, reads_study_accession=<mgnipy.emgapi_v2_client.types.Unset object>, assembly_study_accession=<mgnipy.emgapi_v2_client.types.Unset object>, assembler_name=<mgnipy.emgapi_v2_client.types.Unset object>, assembler_version=<mgnipy.emgapi_v2_client.types.Unset object>, metadata=<mgnipy.emgapi_v2_client.types.Unset object>, status=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
updated_at#
Type:

datetime.datetime

accession#
Type:

None | str | Unset

run_accession#
Type:

None | str | Unset

sample_accession#
Type:

None | str | Unset

reads_study_accession#
Type:

None | str | Unset

assembly_study_accession#
Type:

None | str | Unset

assembler_name#
Type:

None | str | Unset

assembler_version#
Type:

None | str | Unset

metadata#

Additional metadata associated with the assembly

Type:

AssemblyDetailMetadataType0 | None | Unset

status#

Status information for the assembly

Type:

AssemblyDetailStatusType0 | None | Unset

updated_at: datetime.datetime #
accession: None | str | Unset#
run_accession: None | str | Unset#
sample_accession: None | str | Unset#
reads_study_accession: None | str | Unset#
assembly_study_accession: None | str | Unset#
assembler_name: None | str | Unset#
assembler_version: None | str | Unset#
metadata: AssemblyDetailMetadataType0 | None | Unset#
status: AssemblyDetailStatusType0 | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.AssemblyDetailMetadataType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.AssemblyDetailStatusType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.Biome(biome_name, lineage=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_name#
Type:

str

lineage#
Type:

str | Unset

biome_name: str #
lineage: str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.BiomeListFilters(biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, max_depth=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_lineage#

The lineage to match, including all descendant biomes

Type:

None | str | Unset

max_depth#

Maximum depth of the biome lineage to include, e.g. root is 1 and root:Host- Associated:Human is level 3

Type:

int | None | Unset

biome_lineage: None | str | Unset#
max_depth: int | None | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.DownloadFileIndexFile(index_type, path=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

An index file (e.g., a .fai for a FASTA file of .gzi for a bgzip file) of a DownloadFile.

Parameters:
index_type#
Type:

DownloadFileIndexFileIndexType

path#
Type:

str | Unset

index_type: DownloadFileIndexFileIndexType#
path: str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.DownloadFileIndexFileIndexType(*values)[source]#

Bases: str , Enum

CSI = 'csi'#
FAI = 'fai'#
GZI = 'gzi'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.DownloadFileType(*values)[source]#

Bases: str , Enum

BIOM = 'biom'#
CSV = 'csv'#
FASTA = 'fasta'#
GFF = 'gff'#
HTML = 'html'#
JSON = 'json'#
OTHER = 'other'#
SVG = 'svg'#
TREE = 'tree'#
TSV = 'tsv'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.DownloadType(*values)[source]#

Bases: str , Enum

ANALYSIS_RO_CRATE = 'Analysis RO Crate'#
CODING_SEQUENCES = 'Coding Sequences'#
FUNCTIONAL_ANALYSIS = 'Functional analysis'#
GENOME_ANALYSIS = 'Genome analysis'#
NON_CODING_RNAS = 'non-coding RNAs'#
OTHER = 'Other'#
QUALITY_CONTROL = 'Quality control'#
SEQUENCE_DATA = 'Sequence data'#
STATISTICS = 'Statistics'#
TAXONOMIC_ANALYSIS = 'Taxonomic analysis'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.ENASampleFields(*values)[source]#

Bases: str , Enum

AGE = 'age'#
ALTITUDE = 'altitude'#
ASSEMBLY_QUALITY = 'assembly_quality'#
ASSEMBLY_SOFTWARE = 'assembly_software'#
BINNING_SOFTWARE = 'binning_software'#
BIO_MATERIAL = 'bio_material'#
BROAD_SCALE_ENVIRONMENTAL_CONTEXT = 'broad_scale_environmental_context'#
BROKER_NAME = 'broker_name'#
CELL_LINE = 'cell_line'#
CELL_TYPE = 'cell_type'#
CENTER_NAME = 'center_name'#
CHECKLIST = 'checklist'#
COLLECTED_BY = 'collected_by'#
COLLECTION_DATE = 'collection_date'#
COLLECTION_DATE_END = 'collection_date_end'#
COLLECTION_DATE_START = 'collection_date_start'#
COMPLETENESS_SCORE = 'completeness_score'#
CONTAMINATION_SCORE = 'contamination_score'#
COUNTRY = 'country'#
CULTIVAR = 'cultivar'#
CULTURE_COLLECTION = 'culture_collection'#
DATAHUB = 'datahub'#
DEPTH = 'depth'#
DESCRIPTION = 'description'#
DEV_STAGE = 'dev_stage'#
DISEASE = 'disease'#
ECOTYPE = 'ecotype'#
ELEVATION = 'elevation'#
ENVIRONMENTAL_MEDIUM = 'environmental_medium'#
ENVIRONMENTAL_SAMPLE = 'environmental_sample'#
ENVIRONMENT_BIOME = 'environment_biome'#
ENVIRONMENT_FEATURE = 'environment_feature'#
ENVIRONMENT_MATERIAL = 'environment_material'#
EXPERIMENTAL_FACTOR = 'experimental_factor'#
FIRST_PUBLIC = 'first_public'#
GERMLINE = 'germline'#
HOST = 'host'#
HOST_BODY_SITE = 'host_body_site'#
HOST_GENOTYPE = 'host_genotype'#
HOST_GRAVIDITY = 'host_gravidity'#
HOST_GROWTH_CONDITIONS = 'host_growth_conditions'#
HOST_PHENOTYPE = 'host_phenotype'#
HOST_SCIENTIFIC_NAME = 'host_scientific_name'#
HOST_SEX = 'host_sex'#
HOST_STATUS = 'host_status'#
HOST_TAX_ID = 'host_tax_id'#
IDENTIFIED_BY = 'identified_by'#
INVESTIGATION_TYPE = 'investigation_type'#
ISOLATE = 'isolate'#
ISOLATION_SOURCE = 'isolation_source'#
KEYWORDS = 'keywords'#
LAST_UPDATED = 'last_updated'#
LAT = 'lat'#
LOCAL_ENVIRONMENTAL_CONTEXT = 'local_environmental_context'#
LOCATION = 'location'#
LOCATION_END = 'location_end'#
LOCATION_START = 'location_start'#
LON = 'lon'#
MARINE_REGION = 'marine_region'#
MATING_TYPE = 'mating_type'#
NCBI_REPORTING_STANDARD = 'ncbi_reporting_standard'#
PH = 'ph'#
PROJECT_NAME = 'project_name'#
PROTOCOL_LABEL = 'protocol_label'#
RELATED_SAMPLE_ACCESSION = 'related_sample_accession'#
SALINITY = 'salinity'#
SAMPLE_ACCESSION = 'sample_accession'#
SAMPLE_ALIAS = 'sample_alias'#
SAMPLE_CAPTURE_STATUS = 'sample_capture_status'#
SAMPLE_COLLECTION = 'sample_collection'#
SAMPLE_DESCRIPTION = 'sample_description'#
SAMPLE_MATERIAL = 'sample_material'#
SAMPLE_TITLE = 'sample_title'#
SAMPLING_CAMPAIGN = 'sampling_campaign'#
SAMPLING_PLATFORM = 'sampling_platform'#
SAMPLING_SITE = 'sampling_site'#
SCIENTIFIC_NAME = 'scientific_name'#
SECONDARY_SAMPLE_ACCESSION = 'secondary_sample_accession'#
SEQUENCING_METHOD = 'sequencing_method'#
SEROTYPE = 'serotype'#
SEROVAR = 'serovar'#
SEX = 'sex'#
SPECIMEN_VOUCHER = 'specimen_voucher'#
STATUS = 'status'#
STRAIN = 'strain'#
STUDY_ACCESSION = 'study_accession'#
SUBMISSION_ACCESSION = 'submission_accession'#
SUBMISSION_TOOL = 'submission_tool'#
SUBMITTED_HOST_SEX = 'submitted_host_sex'#
SUB_SPECIES = 'sub_species'#
SUB_STRAIN = 'sub_strain'#
TAG = 'tag'#
TARGET_GENE = 'target_gene'#
TAXONOMIC_CLASSIFICATION = 'taxonomic_classification'#
TAXONOMIC_IDENTITY_MARKER = 'taxonomic_identity_marker'#
TAX_ID = 'tax_id'#
TAX_LINEAGE = 'tax_lineage'#
TEMPERATURE = 'temperature'#
TISSUE_LIB = 'tissue_lib'#
TISSUE_TYPE = 'tissue_type'#
VARIETY = 'variety'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.ENAStudyFields(*values)[source]#

Bases: str , Enum

BREED = 'breed'#
BROKER_NAME = 'broker_name'#
CENTER_NAME = 'center_name'#
CULTIVAR = 'cultivar'#
DATAHUB = 'datahub'#
DESCRIPTION = 'description'#
FIRST_PUBLIC = 'first_public'#
GEO_ACCESSION = 'geo_accession'#
ISOLATE = 'isolate'#
KEYWORDS = 'keywords'#
LAST_UPDATED = 'last_updated'#
PARENT_STUDY_ACCESSION = 'parent_study_accession'#
PROJECT_NAME = 'project_name'#
SCIENTIFIC_NAME = 'scientific_name'#
SECONDARY_STUDY_ACCESSION = 'secondary_study_accession'#
SECONDARY_STUDY_ALIAS = 'secondary_study_alias'#
SECONDARY_STUDY_CENTER_NAME = 'secondary_study_center_name'#
STATUS = 'status'#
STRAIN = 'strain'#
STUDY_ACCESSION = 'study_accession'#
STUDY_ALIAS = 'study_alias'#
STUDY_DESCRIPTION = 'study_description'#
STUDY_NAME = 'study_name'#
STUDY_TITLE = 'study_title'#
SUBMISSION_TOOL = 'submission_tool'#
TAG = 'tag'#
TAX_DIVISION = 'tax_division'#
TAX_ID = 'tax_id'#
TAX_LINEAGE = 'tax_lineage'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.EuropePmcAnnotation(annotation_text, mentions)[source]#

Bases: object

Parameters:
annotation_text#

Text of the annotation

Type:

str

mentions#

List of occurrence where the annotation is mentioned in the publication

Type:

list [EuropePmcAnnotationMention]

annotation_text: str #
mentions: list [EuropePmcAnnotationMention]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.EuropePmcAnnotationGroup(annotation_type, title, description, annotations)[source]#

Bases: object

Parameters:
annotation_type#

Type (i.e. the concept) of the annotation

Type:

str

title#

Explanatory version of the annotation type

Type:

str

description#

Detailed description of the annotation type

Type:

str

annotations#

List of annotations of the given type

Type:

list [EuropePmcAnnotation]

annotation_type: str #
title: str #
description: str #
annotations: list [EuropePmcAnnotation]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.EuropePmcAnnotationMention(exact, type_, tags, id=<mgnipy.emgapi_v2_client.types.Unset object>, postfix=<mgnipy.emgapi_v2_client.types.Unset object>, prefix=<mgnipy.emgapi_v2_client.types.Unset object>, provider='Metagenomic', section=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
exact#

The exact text of the annotation in the text

Type:

str

type_#

The type of the annotation

Type:

str

tags#

A list of tags that associate the annotation with an ontology term

Type:

list [EuropePmcAnnotationTag]

id#
Type:

None | str | Unset

postfix#

The text immediately following the annotation

Type:

None | str | Unset

prefix#

The text immediately preceding the annotation

Type:

None | str | Unset

provider#

The provider of the annotation Default: ‘Metagenomic’.

Type:

str | Unset

section#

The section of the text where the annotation occurs

Type:

None | str | Unset

exact: str #
type_: str #
tags: list [EuropePmcAnnotationTag]#
id: None | str | Unset#
postfix: None | str | Unset#
prefix: None | str | Unset#
provider: str | Unset#
section: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.EuropePmcAnnotationTag(name, uri)[source]#

Bases: object

Parameters:
name#
Type:

str

uri#
Type:

str

name: str #
uri: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.ExperimentTypes(*values)[source]#

Bases: str , Enum

AMPLI = 'AMPLI'#
ASSEM = 'ASSEM'#
HYASS = 'HYASS'#
LRASS = 'LRASS'#
METAB = 'METAB'#
METAG = 'METAG'#
METAT = 'METAT'#
UNKNO = 'UNKNO'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.GenomeAssemblyLinkSchema(genome, updated_at, species_rep=<mgnipy.emgapi_v2_client.types.Unset object>, mag_accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
genome#

Simple schema for a Genome model.

Type:

GenomeSchema

updated_at#
Type:

datetime.datetime | None

species_rep#

Deposition database accession for species representative

Type:

None | str | Unset

mag_accession#

Deposition database for MAG

Type:

None | str | Unset

genome: GenomeSchema#
updated_at: datetime.datetime | None #
species_rep: None | str | Unset#
mag_accession: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeCatalogueBase(catalogue_id, version, name, description, protein_catalogue_description, updated_at, result_directory, unclustered_genome_count, ftp_url, pipeline_version_tag, catalogue_biome_label, catalogue_type, other_stats, protein_catalogue_name=<mgnipy.emgapi_v2_client.types.Unset object>, genome_count=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
catalogue_id#
Type:

str

version#
Type:

str

name#
Type:

str

description#
Type:

None | str

protein_catalogue_description#
Type:

None | str

updated_at#
Type:

datetime.datetime

result_directory#
Type:

None | str

unclustered_genome_count#

Total number of genomes in the catalogue, including non-cluster- representatives not available via this API.

Type:

int | None

ftp_url#
Type:

str

pipeline_version_tag#
Type:

str

catalogue_biome_label#
Type:

str

catalogue_type#
Type:

GenomeCatalogueBaseCatalogueType

other_stats#
Type:

GenomeCatalogueBaseOtherStatsType0 | None

protein_catalogue_name#
Type:

None | str | Unset

genome_count#
Type:

int | None | Unset

biome#
Type:

Biome | None | Unset

catalogue_id: str #
version: str #
name: str #
description: None | str #
protein_catalogue_description: None | str #
updated_at: datetime.datetime #
result_directory: None | str #
unclustered_genome_count: int | None #
ftp_url: str #
pipeline_version_tag: str #
catalogue_biome_label: str #
catalogue_type: GenomeCatalogueBaseCatalogueType#
other_stats: GenomeCatalogueBaseOtherStatsType0 | None #
protein_catalogue_name: None | str | Unset#
genome_count: int | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeCatalogueBaseCatalogueType(*values)[source]#

Bases: str , Enum

EUKARYOTES = 'eukaryotes'#
PROKARYOTES = 'prokaryotes'#
VIRUSES = 'viruses'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.GenomeCatalogueBaseOtherStatsType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeCatalogueDetail(catalogue_id, version, name, description, protein_catalogue_description, updated_at, result_directory, unclustered_genome_count, ftp_url, pipeline_version_tag, catalogue_biome_label, catalogue_type, other_stats, protein_catalogue_name=<mgnipy.emgapi_v2_client.types.Unset object>, genome_count=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
catalogue_id#
Type:

str

version#
Type:

str

name#
Type:

str

description#
Type:

None | str

protein_catalogue_description#
Type:

None | str

updated_at#
Type:

datetime.datetime

result_directory#
Type:

None | str

unclustered_genome_count#

Total number of genomes in the catalogue, including non-cluster- representatives not available via this API.

Type:

int | None

ftp_url#
Type:

str

pipeline_version_tag#
Type:

str

catalogue_biome_label#
Type:

str

catalogue_type#
Type:

GenomeCatalogueDetailCatalogueType

other_stats#
Type:

GenomeCatalogueDetailOtherStatsType0 | None

protein_catalogue_name#
Type:

None | str | Unset

genome_count#
Type:

int | None | Unset

biome#
Type:

Biome | None | Unset

catalogue_id: str #
version: str #
name: str #
description: None | str #
protein_catalogue_description: None | str #
updated_at: datetime.datetime #
result_directory: None | str #
unclustered_genome_count: int | None #
ftp_url: str #
pipeline_version_tag: str #
catalogue_biome_label: str #
catalogue_type: GenomeCatalogueDetailCatalogueType#
other_stats: GenomeCatalogueDetailOtherStatsType0 | None #
protein_catalogue_name: None | str | Unset#
genome_count: int | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeCatalogueDetailCatalogueType(*values)[source]#

Bases: str , Enum

EUKARYOTES = 'eukaryotes'#
PROKARYOTES = 'prokaryotes'#
VIRUSES = 'viruses'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.GenomeCatalogueDetailOtherStatsType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeCatalogueList(catalogue_id, version, name, description, protein_catalogue_description, updated_at, result_directory, unclustered_genome_count, ftp_url, pipeline_version_tag, catalogue_biome_label, catalogue_type, other_stats, protein_catalogue_name=<mgnipy.emgapi_v2_client.types.Unset object>, genome_count=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
catalogue_id#
Type:

str

version#
Type:

str

name#
Type:

str

description#
Type:

None | str

protein_catalogue_description#
Type:

None | str

updated_at#
Type:

datetime.datetime

result_directory#
Type:

None | str

unclustered_genome_count#

Total number of genomes in the catalogue, including non-cluster- representatives not available via this API.

Type:

int | None

ftp_url#
Type:

str

pipeline_version_tag#
Type:

str

catalogue_biome_label#
Type:

str

catalogue_type#
Type:

GenomeCatalogueListCatalogueType

other_stats#
Type:

GenomeCatalogueListOtherStatsType0 | None

protein_catalogue_name#
Type:

None | str | Unset

genome_count#
Type:

int | None | Unset

biome#
Type:

Biome | None | Unset

catalogue_id: str #
version: str #
name: str #
description: None | str #
protein_catalogue_description: None | str #
updated_at: datetime.datetime #
result_directory: None | str #
unclustered_genome_count: int | None #
ftp_url: str #
pipeline_version_tag: str #
catalogue_biome_label: str #
catalogue_type: GenomeCatalogueListCatalogueType#
other_stats: GenomeCatalogueListOtherStatsType0 | None #
protein_catalogue_name: None | str | Unset#
genome_count: int | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeCatalogueListCatalogueType(*values)[source]#

Bases: str , Enum

EUKARYOTES = 'eukaryotes'#
PROKARYOTES = 'prokaryotes'#
VIRUSES = 'viruses'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.GenomeCatalogueListOtherStatsType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeDetail(accession, ena_genome_accession, ena_sample_accession, ncbi_genome_accession, img_genome_accession, patric_genome_accession, length, num_contigs, n_50, gc_content, type_, completeness, contamination, catalogue_id, geographic_origin, downloads, geographic_range=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>, catalogue=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_genome_accession#
Type:

None | str

ena_sample_accession#
Type:

None | str

ncbi_genome_accession#
Type:

None | str

img_genome_accession#
Type:

None | str

patric_genome_accession#
Type:

None | str

length#
Type:

int

num_contigs#
Type:

int

n_50#
Type:

int

gc_content#
Type:

float

type_#
Type:

GenomeType

completeness#
Type:

float

contamination#
Type:

float

catalogue_id#
Type:

str

geographic_origin#
Type:

None | str

downloads#
Type:

list [MGnifyGenomeDownloadFile]

geographic_range#
Type:

list [str ] | None | Unset

biome#
Type:

Biome | None | Unset

catalogue#
Type:

GenomeCatalogueBase | None | Unset

accession: str #
ena_genome_accession: None | str #
ena_sample_accession: None | str #
ncbi_genome_accession: None | str #
img_genome_accession: None | str #
patric_genome_accession: None | str #
length: int #
num_contigs: int #
n_50: int #
gc_content: float #
type_: GenomeType#
completeness: float #
contamination: float #
catalogue_id: str #
geographic_origin: None | str #
downloads: list [MGnifyGenomeDownloadFile]#
geographic_range: list [str ] | None | Unset#
biome: Biome | None | Unset#
catalogue: GenomeCatalogueBase | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeList(accession, ena_genome_accession, ena_sample_accession, ncbi_genome_accession, img_genome_accession, patric_genome_accession, length, num_contigs, n_50, gc_content, type_, completeness, contamination, catalogue_id, geographic_origin, geographic_range=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_genome_accession#
Type:

None | str

ena_sample_accession#
Type:

None | str

ncbi_genome_accession#
Type:

None | str

img_genome_accession#
Type:

None | str

patric_genome_accession#
Type:

None | str

length#
Type:

int

num_contigs#
Type:

int

n_50#
Type:

int

gc_content#
Type:

float

type_#
Type:

GenomeType

completeness#
Type:

float

contamination#
Type:

float

catalogue_id#
Type:

str

geographic_origin#
Type:

None | str

geographic_range#
Type:

list [str ] | None | Unset

biome#
Type:

Biome | None | Unset

accession: str #
ena_genome_accession: None | str #
ena_sample_accession: None | str #
ncbi_genome_accession: None | str #
img_genome_accession: None | str #
patric_genome_accession: None | str #
length: int #
num_contigs: int #
n_50: int #
gc_content: float #
type_: GenomeType#
completeness: float #
contamination: float #
catalogue_id: str #
geographic_origin: None | str #
geographic_range: list [str ] | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeSchema(accession, catalogue_id, taxon_lineage, ena_genome_accession, catalogue_version=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Simple schema for a Genome model.

Parameters:
  • accession (str )

  • catalogue_id (None | str )

  • taxon_lineage (None | str )

  • ena_genome_accession (None | str )

  • catalogue_version (None | str | Unset)

accession#
Type:

str

catalogue_id#
Type:

None | str

taxon_lineage#
Type:

None | str

ena_genome_accession#
Type:

None | str

catalogue_version#

Version of the genome catalogue

Type:

None | str | Unset

accession: str #
catalogue_id: None | str #
taxon_lineage: None | str #
ena_genome_accession: None | str #
catalogue_version: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeType(*values)[source]#

Bases: str , Enum

ISOLATE = 'Isolate'#
MAG = 'MAG'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.GenomeWithAnnotations(accession, annotations)[source]#

Bases: object

Parameters:
accession#
Type:

str

annotations#
Type:

GenomeWithAnnotationsAnnotations

accession: str #
annotations: GenomeWithAnnotationsAnnotations#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.GenomeWithAnnotationsAnnotations[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.Input(page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
page#

Default: 1.

Type:

int | Unset

page_size#
Type:

int | None | Unset

page: int | Unset#
page_size: int | None | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.ListMgnifyPublicationsOrderType0(*values)[source]#

Bases: str , Enum

PUBLISHED_YEAR = 'published_year'#
VALUE_1 = '-published_year'#
VALUE_2 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.ListMgnifySamplesOrderType0(*values)[source]#

Bases: str , Enum

SAMPLE_TITLE = 'sample_title'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-sample_title'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.ListMgnifyStudiesOrderType0(*values)[source]#

Bases: str , Enum

ACCESSION = 'accession'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-accession'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.MGnifyAnalysis(experiment_type, study_accession, accession, run, sample, assembly, pipeline_version)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

study_accession#
Type:

str

accession#
Type:

str

run#
Type:

AnalysedRun | None

sample#
Type:

MGnifySample | None

assembly#
Type:

Assembly | None

pipeline_version#
Type:

None | PipelineVersions

experiment_type: str #
study_accession: str #
accession: str #
run: AnalysedRun | None #
sample: MGnifySample | None #
assembly: Assembly | None #
pipeline_version: None | PipelineVersions#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisDetail(experiment_type, study_accession, accession, run, sample, assembly, pipeline_version, read_run, quality_control_summary, downloads=<mgnipy.emgapi_v2_client.types.Unset object>, results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, metadata=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

study_accession#
Type:

str

accession#
Type:

str

run#
Type:

AnalysedRun | None

sample#
Type:

MGnifySample | None

assembly#
Type:

Assembly | None

pipeline_version#
Type:

None | PipelineVersions

read_run#

Metadata associated with the original read run(s) this analysis is based on, whether or not those reads were assembled.

Type:

list [AnalysedRun] | None

quality_control_summary#
Type:

MGnifyAnalysisDetailQualityControlSummaryType0 | None

downloads#
Type:

list [MGnifyAnalysisDownloadFile] | Unset

results_dir#

Directory path where analysis results are stored

Type:

None | str | Unset

metadata#

Additional metadata associated with the analysis

Type:

MGnifyAnalysisDetailMetadataType0 | None | Unset

experiment_type: str #
study_accession: str #
accession: str #
run: AnalysedRun | None #
sample: MGnifySample | None #
assembly: Assembly | None #
pipeline_version: None | PipelineVersions#
read_run: list [AnalysedRun] | None #
quality_control_summary: MGnifyAnalysisDetailQualityControlSummaryType0 | None #
downloads: list [MGnifyAnalysisDownloadFile] | Unset#
results_dir: None | str | Unset#
metadata: MGnifyAnalysisDetailMetadataType0 | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisDetailMetadataType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisDetailQualityControlSummaryType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisDownloadFile(file_type, download_type, short_description, long_description, alias, download_group=<mgnipy.emgapi_v2_client.types.Unset object>, path=<mgnipy.emgapi_v2_client.types.Unset object>, file_size_bytes=<mgnipy.emgapi_v2_client.types.Unset object>, index_file=<mgnipy.emgapi_v2_client.types.Unset object>, parent_identifier=<mgnipy.emgapi_v2_client.types.Unset object>, parent_is_private=<mgnipy.emgapi_v2_client.types.Unset object>, parent_results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, index_files=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
file_type#
Type:

DownloadFileType

download_type#
Type:

DownloadType

short_description#

Brief description of the file

Type:

str

long_description#

Detailed description of the file

Type:

str

alias#
Type:

str

download_group#

Group identifier for the download

Type:

None | str | Unset

path#
Type:

str | Unset

file_size_bytes#
Type:

int | None | Unset

index_file#
Type:

DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset

parent_identifier#
Type:

int | str | Unset

parent_is_private#
Type:

bool | None | Unset

parent_results_dir#
Type:

None | str | Unset

index_files#
Type:

list [MGnifyDownloadFileIndexFile] | None | Unset

url#
Type:

None | str | Unset

file_type: DownloadFileType#
download_type: DownloadType#
short_description: str #
long_description: str #
alias: str #
download_group: None | str | Unset#
path: str | Unset#
file_size_bytes: int | None | Unset#
index_file: DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset#
parent_identifier: int | str | Unset#
parent_is_private: bool | None | Unset#
parent_results_dir: None | str | Unset#
index_files: list [MGnifyDownloadFileIndexFile] | None | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisTypedAnnotation(count=<mgnipy.emgapi_v2_client.types.Unset object>, description=<mgnipy.emgapi_v2_client.types.Unset object>, organism=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
count#
Type:

int | None | Unset

description#
Type:

None | str | Unset

organism#
Type:

None | str | Unset

count: int | None | Unset#
description: None | str | Unset#
organism: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisWithAnnotations(experiment_type, study_accession, accession, run, sample, assembly, pipeline_version, read_run, quality_control_summary, annotations, downloads=<mgnipy.emgapi_v2_client.types.Unset object>, results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, metadata=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

study_accession#
Type:

str

accession#
Type:

str

run#
Type:

AnalysedRun | None

sample#
Type:

MGnifySample | None

assembly#
Type:

Assembly | None

pipeline_version#
Type:

None | PipelineVersions

read_run#

Metadata associated with the original read run(s) this analysis is based on, whether or not those reads were assembled.

Type:

list [AnalysedRun] | None

quality_control_summary#
Type:

MGnifyAnalysisWithAnnotationsQualityControlSummaryType0 | None

annotations#
Type:

MGnifyAnalysisWithAnnotationsAnnotations

downloads#
Type:

list [MGnifyAnalysisDownloadFile] | Unset

results_dir#

Directory path where analysis results are stored

Type:

None | str | Unset

metadata#

Additional metadata associated with the analysis

Type:

MGnifyAnalysisWithAnnotationsMetadataType0 | None | Unset

experiment_type: str #
study_accession: str #
accession: str #
run: AnalysedRun | None #
sample: MGnifySample | None #
assembly: Assembly | None #
pipeline_version: None | PipelineVersions#
read_run: list [AnalysedRun] | None #
quality_control_summary: MGnifyAnalysisWithAnnotationsQualityControlSummaryType0 | None #
annotations: MGnifyAnalysisWithAnnotationsAnnotations#
downloads: list [MGnifyAnalysisDownloadFile] | Unset#
results_dir: None | str | Unset#
metadata: MGnifyAnalysisWithAnnotationsMetadataType0 | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisWithAnnotationsAnnotations[source]#

Bases: object

additional_properties: dict [str , list [MGnifyAnalysisTypedAnnotation] | MGnifyAnalysisWithAnnotationsAnnotationsAdditionalPropertyType1]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisWithAnnotationsAnnotationsAdditionalPropertyType1[source]#

Bases: object

additional_properties: dict [str , list [MGnifyAnalysisTypedAnnotation] | None ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisWithAnnotationsMetadataType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyAnalysisWithAnnotationsQualityControlSummaryType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyDownloadFileIndexFile(index_type, path=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
index_type#
Type:

MGnifyDownloadFileIndexFileIndexType

path#
Type:

str | Unset

url#

Full URL of the index file.

Type:

None | str | Unset

index_type: MGnifyDownloadFileIndexFileIndexType#
path: str | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyDownloadFileIndexFileIndexType(*values)[source]#

Bases: str , Enum

CSI = 'csi'#
FAI = 'fai'#
GZI = 'gzi'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.MGnifyFunctionalAnalysisAnnotationType(*values)[source]#

Bases: str , Enum

PFAMS = 'pfams'#
TAXONOMIES_DADA2_PR2 = 'taxonomies__dada2_pr2'#
TAXONOMIES_DADA2_SILVA = 'taxonomies__dada2_silva'#
TAXONOMIES_ITS_ONE_DB = 'taxonomies__its_one_db'#
TAXONOMIES_LSU = 'taxonomies__lsu'#
TAXONOMIES_PR2 = 'taxonomies__pr2'#
TAXONOMIES_SSU = 'taxonomies__ssu'#
TAXONOMIES_UNITE = 'taxonomies__unite'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.MGnifyGenomeDownloadFile(file_type, download_type, short_description, long_description, alias, download_group=<mgnipy.emgapi_v2_client.types.Unset object>, path=<mgnipy.emgapi_v2_client.types.Unset object>, file_size_bytes=<mgnipy.emgapi_v2_client.types.Unset object>, index_file=<mgnipy.emgapi_v2_client.types.Unset object>, parent_identifier=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
file_type#
Type:

DownloadFileType

download_type#
Type:

DownloadType

short_description#

Brief description of the file

Type:

str

long_description#

Detailed description of the file

Type:

str

alias#
Type:

str

download_group#

Group identifier for the download

Type:

None | str | Unset

path#
Type:

str | Unset

file_size_bytes#
Type:

int | None | Unset

index_file#
Type:

DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset

parent_identifier#
Type:

int | str | Unset

url#
Type:

None | str | Unset

file_type: DownloadFileType#
download_type: DownloadType#
short_description: str #
long_description: str #
alias: str #
download_group: None | str | Unset#
path: str | Unset#
file_size_bytes: int | None | Unset#
index_file: DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset#
parent_identifier: int | str | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyPublication(title, metadata, pubmed_id=<mgnipy.emgapi_v2_client.types.Unset object>, published_year=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
title#
Type:

str

metadata#
Type:

MGnifyPublicationMetadata

pubmed_id#
Type:

int | Unset

published_year#
Type:

int | None | Unset

title: str #
metadata: MGnifyPublicationMetadata#
pubmed_id: int | Unset#
published_year: int | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyPublicationDetail(title, metadata, studies, pubmed_id=<mgnipy.emgapi_v2_client.types.Unset object>, published_year=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
title#
Type:

str

metadata#
Type:

MGnifyPublicationDetailMetadata

studies#
Type:

list [MGnifyStudy]

pubmed_id#
Type:

int | Unset

published_year#
Type:

int | None | Unset

title: str #
metadata: MGnifyPublicationDetailMetadata#
studies: list [MGnifyStudy]#
pubmed_id: int | Unset#
published_year: int | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyPublicationDetailMetadata[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyPublicationMetadata[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifySample(accession, ena_accessions, sample_title, biome, updated_at)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

sample_title#
Type:

None | str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

accession: str #
ena_accessions: list [str ]#
sample_title: None | str #
biome: Biome | None #
updated_at: datetime.datetime #
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifySampleDetail(accession, ena_accessions, sample_title, biome, updated_at, metadata, studies)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

sample_title#
Type:

None | str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

metadata#

Metadata associated with the sample, sourced from the ENA Sample record.

Type:

MGnifySampleDetailMetadata

studies#
Type:

list [MGnifyStudy]

accession: str #
ena_accessions: list [str ]#
sample_title: None | str #
biome: Biome | None #
updated_at: datetime.datetime #
metadata: MGnifySampleDetailMetadata#
studies: list [MGnifyStudy]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifySampleDetailMetadata[source]#

Bases: object

Metadata associated with the sample, sourced from the ENA Sample record.

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifySampleWithMetadata(accession, ena_accessions, sample_title, biome, updated_at, metadata)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

sample_title#
Type:

None | str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

metadata#

Metadata associated with the sample, sourced from the ENA Sample record.

Type:

MGnifySampleWithMetadataMetadata

accession: str #
ena_accessions: list [str ]#
sample_title: None | str #
biome: Biome | None #
updated_at: datetime.datetime #
metadata: MGnifySampleWithMetadataMetadata#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifySampleWithMetadataMetadata[source]#

Bases: object

Metadata associated with the sample, sourced from the ENA Sample record.

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyStudy(accession, ena_accessions, title, biome, updated_at)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

title#
Type:

str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

accession: str #
ena_accessions: list [str ]#
title: str #
biome: Biome | None #
updated_at: datetime.datetime #
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyStudyDetail(accession, ena_accessions, title, biome, updated_at, downloads, metadata, first_accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

title#
Type:

str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

downloads#
Type:

list [MGnifyStudyDownloadFile]

metadata#

Metadata associated with the study, a partial copy of the ENA Study record.

Type:

MGnifyStudyDetailMetadata

first_accession#

Preferred ENA accession for the study (derived from ENA/INSDC accessions)

Type:

None | str | Unset

accession: str #
ena_accessions: list [str ]#
title: str #
biome: Biome | None #
updated_at: datetime.datetime #
downloads: list [MGnifyStudyDownloadFile]#
metadata: MGnifyStudyDetailMetadata#
first_accession: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyStudyDetailMetadata[source]#

Bases: object

Metadata associated with the study, a partial copy of the ENA Study record.

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.MGnifyStudyDownloadFile(file_type, download_type, short_description, long_description, alias, download_group=<mgnipy.emgapi_v2_client.types.Unset object>, path=<mgnipy.emgapi_v2_client.types.Unset object>, file_size_bytes=<mgnipy.emgapi_v2_client.types.Unset object>, index_file=<mgnipy.emgapi_v2_client.types.Unset object>, parent_identifier=<mgnipy.emgapi_v2_client.types.Unset object>, parent_is_private=<mgnipy.emgapi_v2_client.types.Unset object>, parent_results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, index_files=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
file_type#
Type:

DownloadFileType

download_type#
Type:

DownloadType

short_description#

Brief description of the file

Type:

str

long_description#

Detailed description of the file

Type:

str

alias#
Type:

str

download_group#

Group identifier for the download

Type:

None | str | Unset

path#
Type:

str | Unset

file_size_bytes#
Type:

int | None | Unset

index_file#
Type:

DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset

parent_identifier#
Type:

int | str | Unset

parent_is_private#
Type:

bool | None | Unset

parent_results_dir#
Type:

None | str | Unset

index_files#
Type:

list [MGnifyDownloadFileIndexFile] | None | Unset

url#
Type:

None | str | Unset

file_type: DownloadFileType#
download_type: DownloadType#
short_description: str #
long_description: str #
alias: str #
download_group: None | str | Unset#
path: str | Unset#
file_size_bytes: int | None | Unset#
index_file: DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset#
parent_identifier: int | str | Unset#
parent_is_private: bool | None | Unset#
parent_results_dir: None | str | Unset#
index_files: list [MGnifyDownloadFileIndexFile] | None | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaAdditionalContainedGenomeSchema(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [AdditionalContainedGenomeSchema]

count: int #
items: list [AdditionalContainedGenomeSchema]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaAnalysedRun(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [AnalysedRun]

count: int #
items: list [AnalysedRun]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaAssembly(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [Assembly]

count: int #
items: list [Assembly]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaAssemblyDetail(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [AssemblyDetail]

count: int #
items: list [AssemblyDetail]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaBiome(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [Biome]

count: int #
items: list [Biome]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaGenomeAssemblyLinkSchema(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [GenomeAssemblyLinkSchema]

count: int #
items: list [GenomeAssemblyLinkSchema]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaGenomeCatalogueList(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [GenomeCatalogueList]

count: int #
items: list [GenomeCatalogueList]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaGenomeList(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [GenomeList]

count: int #
items: list [GenomeList]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaMGnifyAnalysis(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyAnalysis]

count: int #
items: list [MGnifyAnalysis]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaMGnifyAnalysisDetail(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyAnalysisDetail]

count: int #
items: list [MGnifyAnalysisDetail]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaMGnifyAnalysisTypedAnnotation(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyAnalysisTypedAnnotation]

count: int #
items: list [MGnifyAnalysisTypedAnnotation]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaMGnifyPublication(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyPublication]

count: int #
items: list [MGnifyPublication]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaMGnifySample(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifySample]

count: int #
items: list [MGnifySample]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaMGnifySampleWithMetadata(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifySampleWithMetadata]

count: int #
items: list [MGnifySampleWithMetadata]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaMGnifyStudy(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyStudy]

count: int #
items: list [MGnifyStudy]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.NinjaPaginationResponseSchemaSuperStudy(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [SuperStudy]

count: int #
items: list [SuperStudy]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAt(order=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

order (None | OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0 | Unset)

order#
Type:

None | OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0 | Unset

order: None | OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0 | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0(*values)[source]#

Bases: str , Enum

ACCESSION = 'accession'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-accession'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.OrderByFilterLiteralpublishedYearPublishedYear(order=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

order (None | OrderByFilterLiteralpublishedYearPublishedYearOrderType0 | Unset)

order#
Type:

None | OrderByFilterLiteralpublishedYearPublishedYearOrderType0 | Unset

order: None | OrderByFilterLiteralpublishedYearPublishedYearOrderType0 | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.OrderByFilterLiteralpublishedYearPublishedYearOrderType0(*values)[source]#

Bases: str , Enum

PUBLISHED_YEAR = 'published_year'#
VALUE_1 = '-published_year'#
VALUE_2 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAt(order=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

order (None | OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0 | Unset)

order#
Type:

None | OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0 | Unset

order: None | OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0 | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0(*values)[source]#

Bases: str , Enum

SAMPLE_TITLE = 'sample_title'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-sample_title'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.PipelineVersions(*values)[source]#

Bases: str , Enum

V1 = 'V1'#
V2 = 'V2'#
V3 = 'V3'#
V4 = 'V4'#
V4_1 = 'V4.1'#
V5 = 'V5'#
V6 = 'V6'#
V6_1 = 'V6.1'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

class mgnipy.emgapi_v2_client.models.PublicationAnnotations(sample_processing, other)[source]#

Bases: object

Parameters:
sample_processing#

List of sample processing annotations

Type:

list [EuropePmcAnnotationGroup]

other#

List of other annotations

Type:

list [EuropePmcAnnotationGroup]

sample_processing: list [EuropePmcAnnotationGroup]#
other: list [EuropePmcAnnotationGroup]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.PublicationListFilters(published_after=<mgnipy.emgapi_v2_client.types.Unset object>, published_before=<mgnipy.emgapi_v2_client.types.Unset object>, title=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
published_after#

Filter by minimum publication year

Type:

int | None | Unset

published_before#

Filter by maximum publication year

Type:

int | None | Unset

title#

Search within publication titles

Type:

None | str | Unset

published_after: int | None | Unset#
published_before: int | None | Unset#
title: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.RunListFilters(has_experiment_type=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

has_experiment_type (ExperimentTypes | None | Unset)

has_experiment_type#

If set, will only show runs with the specified experiment type

Type:

ExperimentTypes | None | Unset

has_experiment_type: ExperimentTypes | None | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.SampleListFilters(biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_lineage#

The lineage to match, including all descendant biomes

Type:

None | str | Unset

search#

Search within sample titles and accessions

Type:

None | str | Unset

biome_lineage: None | str | Unset#
search: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.Schema[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.StudyListFilters(biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, has_analyses_from_pipeline=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_lineage#

The lineage to match, including all descendant biomes

Type:

None | str | Unset

has_analyses_from_pipeline#

If set, will only show studies with analyses from the specified MGnify pipeline version

Type:

None | PipelineVersions | Unset

search#

Search within study titles and accessions

Type:

None | str | Unset

biome_lineage: None | str | Unset#
has_analyses_from_pipeline: None | PipelineVersions | Unset#
search: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.SuperStudy(slug, title, description=<mgnipy.emgapi_v2_client.types.Unset object>, logo_url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
slug#
Type:

str

title#
Type:

str

description#
Type:

None | str | Unset

logo_url#
Type:

None | str | Unset

slug: str #
title: str #
description: None | str | Unset#
logo_url: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.SuperStudyDetail(slug, title, flagship_studies, related_studies, genome_catalogues, description=<mgnipy.emgapi_v2_client.types.Unset object>, logo_url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
slug#
Type:

str

title#
Type:

str

flagship_studies#
Type:

list [MGnifyStudy]

related_studies#
Type:

list [MGnifyStudy]

genome_catalogues#
Type:

list [GenomeCatalogueList]

description#
Type:

None | str | Unset

logo_url#
Type:

None | str | Unset

slug: str #
title: str #
flagship_studies: list [MGnifyStudy]#
related_studies: list [MGnifyStudy]#
genome_catalogues: list [GenomeCatalogueList]#
description: None | str | Unset#
logo_url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.TokenVerifyInputSchema(token)[source]#

Bases: object

Parameters:

token (str )

token#
Type:

str

token: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.WebinTokenRefreshRequest(token)[source]#

Bases: object

Parameters:

token (str )

token#
Type:

str

token: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.WebinTokenRequest(username, password)[source]#

Bases: object

Parameters:
username#
Type:

str

password#
Type:

str

username: str #
password: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#
class mgnipy.emgapi_v2_client.models.WebinTokenResponse(token, token_type='sliding')[source]#

Bases: object

Parameters:
token#
Type:

str

token_type#

Default: ‘sliding’.

Type:

str | Unset

token: str #
token_type: str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

Submodules#

mgnipy.emgapi_v2_client.models.additional_contained_genome_schema module#

class mgnipy.emgapi_v2_client.models.additional_contained_genome_schema.AdditionalContainedGenomeSchema(genome, updated_at, run_accession=<mgnipy.emgapi_v2_client.types.Unset object>, containment=<mgnipy.emgapi_v2_client.types.Unset object>, cani=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
genome#

Simple schema for a Genome model.

Type:

GenomeSchema

updated_at#
Type:

datetime.datetime | None

run_accession#

ENA accession of the run that produced this assembly

Type:

None | str | Unset

containment#

Containment score for the genome within the assembly

Type:

float | None | Unset

cani#

Containment Average Nucleotide Identity (cANI)

Type:

float | None | Unset

genome: GenomeSchema#
updated_at: datetime.datetime | None #
run_accession: None | str | Unset#
containment: float | None | Unset#
cani: float | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.analysed_run module#

class mgnipy.emgapi_v2_client.models.analysed_run.AnalysedRun(experiment_type, instrument_model, instrument_platform, accession=<mgnipy.emgapi_v2_client.types.Unset object>, sample_accession=<mgnipy.emgapi_v2_client.types.Unset object>, study_accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
  • experiment_type (str )

  • instrument_model (None | str )

  • instrument_platform (None | str )

  • accession (None | str | Unset)

  • sample_accession (None | str | Unset)

  • study_accession (None | str | Unset)

experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

instrument_model#
Type:

None | str

instrument_platform#
Type:

None | str

accession#
Type:

None | str | Unset

sample_accession#

ENA accession of the sample associated with this run

Type:

None | str | Unset

study_accession#

ENA accession of the study associated with this run

Type:

None | str | Unset

experiment_type: str #
instrument_model: None | str #
instrument_platform: None | str #
accession: None | str | Unset#
sample_accession: None | str | Unset#
study_accession: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.analysed_run_detail module#

class mgnipy.emgapi_v2_client.models.analysed_run_detail.AnalysedRunDetail(experiment_type, instrument_model, instrument_platform, sample, study, accession=<mgnipy.emgapi_v2_client.types.Unset object>, sample_accession=<mgnipy.emgapi_v2_client.types.Unset object>, study_accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

instrument_model#
Type:

None | str

instrument_platform#
Type:

None | str

sample#
Type:

MGnifySample | None

study#
Type:

MGnifyStudy | None

accession#
Type:

None | str | Unset

sample_accession#

ENA accession of the sample associated with this run

Type:

None | str | Unset

study_accession#

ENA accession of the study associated with this run

Type:

None | str | Unset

experiment_type: str #
instrument_model: None | str #
instrument_platform: None | str #
sample: MGnifySample | None #
study: MGnifyStudy | None #
accession: None | str | Unset#
sample_accession: None | str | Unset#
study_accession: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.analysis_get_mgnify_analysis_with_annotations_of_type_m_gnify_functional_analysis_annotation_type module#

class mgnipy.emgapi_v2_client.models.analysis_get_mgnify_analysis_with_annotations_of_type_m_gnify_functional_analysis_annotation_type.AnalysisGetMgnifyAnalysisWithAnnotationsOfTypeMGnifyFunctionalAnalysisAnnotationType(*values)[source]#

Bases: str , Enum

PFAMS = 'pfams'#
TAXONOMIES_DADA2_PR2 = 'taxonomies__dada2_pr2'#
TAXONOMIES_DADA2_SILVA = 'taxonomies__dada2_silva'#
TAXONOMIES_ITS_ONE_DB = 'taxonomies__its_one_db'#
TAXONOMIES_LSU = 'taxonomies__lsu'#
TAXONOMIES_PR2 = 'taxonomies__pr2'#
TAXONOMIES_SSU = 'taxonomies__ssu'#
TAXONOMIES_UNITE = 'taxonomies__unite'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.assembly module#

class mgnipy.emgapi_v2_client.models.assembly.Assembly(updated_at, accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
updated_at#
Type:

datetime.datetime

accession#
Type:

None | str | Unset

updated_at: datetime #
accession: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.assembly_detail module#

class mgnipy.emgapi_v2_client.models.assembly_detail.AssemblyDetail(updated_at, accession=<mgnipy.emgapi_v2_client.types.Unset object>, run_accession=<mgnipy.emgapi_v2_client.types.Unset object>, sample_accession=<mgnipy.emgapi_v2_client.types.Unset object>, reads_study_accession=<mgnipy.emgapi_v2_client.types.Unset object>, assembly_study_accession=<mgnipy.emgapi_v2_client.types.Unset object>, assembler_name=<mgnipy.emgapi_v2_client.types.Unset object>, assembler_version=<mgnipy.emgapi_v2_client.types.Unset object>, metadata=<mgnipy.emgapi_v2_client.types.Unset object>, status=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
updated_at#
Type:

datetime.datetime

accession#
Type:

None | str | Unset

run_accession#
Type:

None | str | Unset

sample_accession#
Type:

None | str | Unset

reads_study_accession#
Type:

None | str | Unset

assembly_study_accession#
Type:

None | str | Unset

assembler_name#
Type:

None | str | Unset

assembler_version#
Type:

None | str | Unset

metadata#

Additional metadata associated with the assembly

Type:

AssemblyDetailMetadataType0 | None | Unset

status#

Status information for the assembly

Type:

AssemblyDetailStatusType0 | None | Unset

updated_at: datetime.datetime #
accession: None | str | Unset#
run_accession: None | str | Unset#
sample_accession: None | str | Unset#
reads_study_accession: None | str | Unset#
assembly_study_accession: None | str | Unset#
assembler_name: None | str | Unset#
assembler_version: None | str | Unset#
metadata: AssemblyDetailMetadataType0 | None | Unset#
status: AssemblyDetailStatusType0 | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.assembly_detail_metadata_type_0 module#

class mgnipy.emgapi_v2_client.models.assembly_detail_metadata_type_0.AssemblyDetailMetadataType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.assembly_detail_status_type_0 module#

class mgnipy.emgapi_v2_client.models.assembly_detail_status_type_0.AssemblyDetailStatusType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.biome module#

class mgnipy.emgapi_v2_client.models.biome.Biome(biome_name, lineage=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_name#
Type:

str

lineage#
Type:

str | Unset

biome_name: str #
lineage: str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.biome_list_filters module#

class mgnipy.emgapi_v2_client.models.biome_list_filters.BiomeListFilters(biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, max_depth=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_lineage#

The lineage to match, including all descendant biomes

Type:

None | str | Unset

max_depth#

Maximum depth of the biome lineage to include, e.g. root is 1 and root:Host- Associated:Human is level 3

Type:

int | None | Unset

biome_lineage: None | str | Unset#
max_depth: int | None | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.download_file_index_file module#

class mgnipy.emgapi_v2_client.models.download_file_index_file.DownloadFileIndexFile(index_type, path=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

An index file (e.g., a .fai for a FASTA file of .gzi for a bgzip file) of a DownloadFile.

Parameters:
index_type#
Type:

DownloadFileIndexFileIndexType

path#
Type:

str | Unset

index_type: DownloadFileIndexFileIndexType#
path: str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.download_file_index_file_index_type module#

class mgnipy.emgapi_v2_client.models.download_file_index_file_index_type.DownloadFileIndexFileIndexType(*values)[source]#

Bases: str , Enum

CSI = 'csi'#
FAI = 'fai'#
GZI = 'gzi'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.download_file_type module#

class mgnipy.emgapi_v2_client.models.download_file_type.DownloadFileType(*values)[source]#

Bases: str , Enum

BIOM = 'biom'#
CSV = 'csv'#
FASTA = 'fasta'#
GFF = 'gff'#
HTML = 'html'#
JSON = 'json'#
OTHER = 'other'#
SVG = 'svg'#
TREE = 'tree'#
TSV = 'tsv'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.download_type module#

class mgnipy.emgapi_v2_client.models.download_type.DownloadType(*values)[source]#

Bases: str , Enum

ANALYSIS_RO_CRATE = 'Analysis RO Crate'#
CODING_SEQUENCES = 'Coding Sequences'#
FUNCTIONAL_ANALYSIS = 'Functional analysis'#
GENOME_ANALYSIS = 'Genome analysis'#
NON_CODING_RNAS = 'non-coding RNAs'#
OTHER = 'Other'#
QUALITY_CONTROL = 'Quality control'#
SEQUENCE_DATA = 'Sequence data'#
STATISTICS = 'Statistics'#
TAXONOMIC_ANALYSIS = 'Taxonomic analysis'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.ena_sample_fields module#

class mgnipy.emgapi_v2_client.models.ena_sample_fields.ENASampleFields(*values)[source]#

Bases: str , Enum

AGE = 'age'#
ALTITUDE = 'altitude'#
ASSEMBLY_QUALITY = 'assembly_quality'#
ASSEMBLY_SOFTWARE = 'assembly_software'#
BINNING_SOFTWARE = 'binning_software'#
BIO_MATERIAL = 'bio_material'#
BROAD_SCALE_ENVIRONMENTAL_CONTEXT = 'broad_scale_environmental_context'#
BROKER_NAME = 'broker_name'#
CELL_LINE = 'cell_line'#
CELL_TYPE = 'cell_type'#
CENTER_NAME = 'center_name'#
CHECKLIST = 'checklist'#
COLLECTED_BY = 'collected_by'#
COLLECTION_DATE = 'collection_date'#
COLLECTION_DATE_END = 'collection_date_end'#
COLLECTION_DATE_START = 'collection_date_start'#
COMPLETENESS_SCORE = 'completeness_score'#
CONTAMINATION_SCORE = 'contamination_score'#
COUNTRY = 'country'#
CULTIVAR = 'cultivar'#
CULTURE_COLLECTION = 'culture_collection'#
DATAHUB = 'datahub'#
DEPTH = 'depth'#
DESCRIPTION = 'description'#
DEV_STAGE = 'dev_stage'#
DISEASE = 'disease'#
ECOTYPE = 'ecotype'#
ELEVATION = 'elevation'#
ENVIRONMENTAL_MEDIUM = 'environmental_medium'#
ENVIRONMENTAL_SAMPLE = 'environmental_sample'#
ENVIRONMENT_BIOME = 'environment_biome'#
ENVIRONMENT_FEATURE = 'environment_feature'#
ENVIRONMENT_MATERIAL = 'environment_material'#
EXPERIMENTAL_FACTOR = 'experimental_factor'#
FIRST_PUBLIC = 'first_public'#
GERMLINE = 'germline'#
HOST = 'host'#
HOST_BODY_SITE = 'host_body_site'#
HOST_GENOTYPE = 'host_genotype'#
HOST_GRAVIDITY = 'host_gravidity'#
HOST_GROWTH_CONDITIONS = 'host_growth_conditions'#
HOST_PHENOTYPE = 'host_phenotype'#
HOST_SCIENTIFIC_NAME = 'host_scientific_name'#
HOST_SEX = 'host_sex'#
HOST_STATUS = 'host_status'#
HOST_TAX_ID = 'host_tax_id'#
IDENTIFIED_BY = 'identified_by'#
INVESTIGATION_TYPE = 'investigation_type'#
ISOLATE = 'isolate'#
ISOLATION_SOURCE = 'isolation_source'#
KEYWORDS = 'keywords'#
LAST_UPDATED = 'last_updated'#
LAT = 'lat'#
LOCAL_ENVIRONMENTAL_CONTEXT = 'local_environmental_context'#
LOCATION = 'location'#
LOCATION_END = 'location_end'#
LOCATION_START = 'location_start'#
LON = 'lon'#
MARINE_REGION = 'marine_region'#
MATING_TYPE = 'mating_type'#
NCBI_REPORTING_STANDARD = 'ncbi_reporting_standard'#
PH = 'ph'#
PROJECT_NAME = 'project_name'#
PROTOCOL_LABEL = 'protocol_label'#
RELATED_SAMPLE_ACCESSION = 'related_sample_accession'#
SALINITY = 'salinity'#
SAMPLE_ACCESSION = 'sample_accession'#
SAMPLE_ALIAS = 'sample_alias'#
SAMPLE_CAPTURE_STATUS = 'sample_capture_status'#
SAMPLE_COLLECTION = 'sample_collection'#
SAMPLE_DESCRIPTION = 'sample_description'#
SAMPLE_MATERIAL = 'sample_material'#
SAMPLE_TITLE = 'sample_title'#
SAMPLING_CAMPAIGN = 'sampling_campaign'#
SAMPLING_PLATFORM = 'sampling_platform'#
SAMPLING_SITE = 'sampling_site'#
SCIENTIFIC_NAME = 'scientific_name'#
SECONDARY_SAMPLE_ACCESSION = 'secondary_sample_accession'#
SEQUENCING_METHOD = 'sequencing_method'#
SEROTYPE = 'serotype'#
SEROVAR = 'serovar'#
SEX = 'sex'#
SPECIMEN_VOUCHER = 'specimen_voucher'#
STATUS = 'status'#
STRAIN = 'strain'#
STUDY_ACCESSION = 'study_accession'#
SUBMISSION_ACCESSION = 'submission_accession'#
SUBMISSION_TOOL = 'submission_tool'#
SUBMITTED_HOST_SEX = 'submitted_host_sex'#
SUB_SPECIES = 'sub_species'#
SUB_STRAIN = 'sub_strain'#
TAG = 'tag'#
TARGET_GENE = 'target_gene'#
TAXONOMIC_CLASSIFICATION = 'taxonomic_classification'#
TAXONOMIC_IDENTITY_MARKER = 'taxonomic_identity_marker'#
TAX_ID = 'tax_id'#
TAX_LINEAGE = 'tax_lineage'#
TEMPERATURE = 'temperature'#
TISSUE_LIB = 'tissue_lib'#
TISSUE_TYPE = 'tissue_type'#
VARIETY = 'variety'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.ena_study_fields module#

class mgnipy.emgapi_v2_client.models.ena_study_fields.ENAStudyFields(*values)[source]#

Bases: str , Enum

BREED = 'breed'#
BROKER_NAME = 'broker_name'#
CENTER_NAME = 'center_name'#
CULTIVAR = 'cultivar'#
DATAHUB = 'datahub'#
DESCRIPTION = 'description'#
FIRST_PUBLIC = 'first_public'#
GEO_ACCESSION = 'geo_accession'#
ISOLATE = 'isolate'#
KEYWORDS = 'keywords'#
LAST_UPDATED = 'last_updated'#
PARENT_STUDY_ACCESSION = 'parent_study_accession'#
PROJECT_NAME = 'project_name'#
SCIENTIFIC_NAME = 'scientific_name'#
SECONDARY_STUDY_ACCESSION = 'secondary_study_accession'#
SECONDARY_STUDY_ALIAS = 'secondary_study_alias'#
SECONDARY_STUDY_CENTER_NAME = 'secondary_study_center_name'#
STATUS = 'status'#
STRAIN = 'strain'#
STUDY_ACCESSION = 'study_accession'#
STUDY_ALIAS = 'study_alias'#
STUDY_DESCRIPTION = 'study_description'#
STUDY_NAME = 'study_name'#
STUDY_TITLE = 'study_title'#
SUBMISSION_TOOL = 'submission_tool'#
TAG = 'tag'#
TAX_DIVISION = 'tax_division'#
TAX_ID = 'tax_id'#
TAX_LINEAGE = 'tax_lineage'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.europe_pmc_annotation module#

class mgnipy.emgapi_v2_client.models.europe_pmc_annotation.EuropePmcAnnotation(annotation_text, mentions)[source]#

Bases: object

Parameters:
annotation_text#

Text of the annotation

Type:

str

mentions#

List of occurrence where the annotation is mentioned in the publication

Type:

list [EuropePmcAnnotationMention]

annotation_text: str #
mentions: list [EuropePmcAnnotationMention]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.europe_pmc_annotation_group module#

class mgnipy.emgapi_v2_client.models.europe_pmc_annotation_group.EuropePmcAnnotationGroup(annotation_type, title, description, annotations)[source]#

Bases: object

Parameters:
annotation_type#

Type (i.e. the concept) of the annotation

Type:

str

title#

Explanatory version of the annotation type

Type:

str

description#

Detailed description of the annotation type

Type:

str

annotations#

List of annotations of the given type

Type:

list [EuropePmcAnnotation]

annotation_type: str #
title: str #
description: str #
annotations: list [EuropePmcAnnotation]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.europe_pmc_annotation_mention module#

class mgnipy.emgapi_v2_client.models.europe_pmc_annotation_mention.EuropePmcAnnotationMention(exact, type_, tags, id=<mgnipy.emgapi_v2_client.types.Unset object>, postfix=<mgnipy.emgapi_v2_client.types.Unset object>, prefix=<mgnipy.emgapi_v2_client.types.Unset object>, provider='Metagenomic', section=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
exact#

The exact text of the annotation in the text

Type:

str

type_#

The type of the annotation

Type:

str

tags#

A list of tags that associate the annotation with an ontology term

Type:

list [EuropePmcAnnotationTag]

id#
Type:

None | str | Unset

postfix#

The text immediately following the annotation

Type:

None | str | Unset

prefix#

The text immediately preceding the annotation

Type:

None | str | Unset

provider#

The provider of the annotation Default: ‘Metagenomic’.

Type:

str | Unset

section#

The section of the text where the annotation occurs

Type:

None | str | Unset

exact: str #
type_: str #
tags: list [EuropePmcAnnotationTag]#
id: None | str | Unset#
postfix: None | str | Unset#
prefix: None | str | Unset#
provider: str | Unset#
section: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.europe_pmc_annotation_tag module#

class mgnipy.emgapi_v2_client.models.europe_pmc_annotation_tag.EuropePmcAnnotationTag(name, uri)[source]#

Bases: object

Parameters:
name#
Type:

str

uri#
Type:

str

name: str #
uri: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.experiment_types module#

class mgnipy.emgapi_v2_client.models.experiment_types.ExperimentTypes(*values)[source]#

Bases: str , Enum

AMPLI = 'AMPLI'#
ASSEM = 'ASSEM'#
HYASS = 'HYASS'#
LRASS = 'LRASS'#
METAB = 'METAB'#
METAG = 'METAG'#
METAT = 'METAT'#
UNKNO = 'UNKNO'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.genome_catalogue_base module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_base.GenomeCatalogueBase(catalogue_id, version, name, description, protein_catalogue_description, updated_at, result_directory, unclustered_genome_count, ftp_url, pipeline_version_tag, catalogue_biome_label, catalogue_type, other_stats, protein_catalogue_name=<mgnipy.emgapi_v2_client.types.Unset object>, genome_count=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
catalogue_id#
Type:

str

version#
Type:

str

name#
Type:

str

description#
Type:

None | str

protein_catalogue_description#
Type:

None | str

updated_at#
Type:

datetime.datetime

result_directory#
Type:

None | str

unclustered_genome_count#

Total number of genomes in the catalogue, including non-cluster- representatives not available via this API.

Type:

int | None

ftp_url#
Type:

str

pipeline_version_tag#
Type:

str

catalogue_biome_label#
Type:

str

catalogue_type#
Type:

GenomeCatalogueBaseCatalogueType

other_stats#
Type:

GenomeCatalogueBaseOtherStatsType0 | None

protein_catalogue_name#
Type:

None | str | Unset

genome_count#
Type:

int | None | Unset

biome#
Type:

Biome | None | Unset

catalogue_id: str #
version: str #
name: str #
description: None | str #
protein_catalogue_description: None | str #
updated_at: datetime.datetime #
result_directory: None | str #
unclustered_genome_count: int | None #
ftp_url: str #
pipeline_version_tag: str #
catalogue_biome_label: str #
catalogue_type: GenomeCatalogueBaseCatalogueType#
other_stats: GenomeCatalogueBaseOtherStatsType0 | None #
protein_catalogue_name: None | str | Unset#
genome_count: int | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_catalogue_base_catalogue_type module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_base_catalogue_type.GenomeCatalogueBaseCatalogueType(*values)[source]#

Bases: str , Enum

EUKARYOTES = 'eukaryotes'#
PROKARYOTES = 'prokaryotes'#
VIRUSES = 'viruses'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.genome_catalogue_base_other_stats_type_0 module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_base_other_stats_type_0.GenomeCatalogueBaseOtherStatsType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_catalogue_detail module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_detail.GenomeCatalogueDetail(catalogue_id, version, name, description, protein_catalogue_description, updated_at, result_directory, unclustered_genome_count, ftp_url, pipeline_version_tag, catalogue_biome_label, catalogue_type, other_stats, protein_catalogue_name=<mgnipy.emgapi_v2_client.types.Unset object>, genome_count=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
catalogue_id#
Type:

str

version#
Type:

str

name#
Type:

str

description#
Type:

None | str

protein_catalogue_description#
Type:

None | str

updated_at#
Type:

datetime.datetime

result_directory#
Type:

None | str

unclustered_genome_count#

Total number of genomes in the catalogue, including non-cluster- representatives not available via this API.

Type:

int | None

ftp_url#
Type:

str

pipeline_version_tag#
Type:

str

catalogue_biome_label#
Type:

str

catalogue_type#
Type:

GenomeCatalogueDetailCatalogueType

other_stats#
Type:

GenomeCatalogueDetailOtherStatsType0 | None

protein_catalogue_name#
Type:

None | str | Unset

genome_count#
Type:

int | None | Unset

biome#
Type:

Biome | None | Unset

catalogue_id: str #
version: str #
name: str #
description: None | str #
protein_catalogue_description: None | str #
updated_at: datetime.datetime #
result_directory: None | str #
unclustered_genome_count: int | None #
ftp_url: str #
pipeline_version_tag: str #
catalogue_biome_label: str #
catalogue_type: GenomeCatalogueDetailCatalogueType#
other_stats: GenomeCatalogueDetailOtherStatsType0 | None #
protein_catalogue_name: None | str | Unset#
genome_count: int | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_catalogue_detail_catalogue_type module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_detail_catalogue_type.GenomeCatalogueDetailCatalogueType(*values)[source]#

Bases: str , Enum

EUKARYOTES = 'eukaryotes'#
PROKARYOTES = 'prokaryotes'#
VIRUSES = 'viruses'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.genome_catalogue_detail_other_stats_type_0 module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_detail_other_stats_type_0.GenomeCatalogueDetailOtherStatsType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_catalogue_list module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_list.GenomeCatalogueList(catalogue_id, version, name, description, protein_catalogue_description, updated_at, result_directory, unclustered_genome_count, ftp_url, pipeline_version_tag, catalogue_biome_label, catalogue_type, other_stats, protein_catalogue_name=<mgnipy.emgapi_v2_client.types.Unset object>, genome_count=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
catalogue_id#
Type:

str

version#
Type:

str

name#
Type:

str

description#
Type:

None | str

protein_catalogue_description#
Type:

None | str

updated_at#
Type:

datetime.datetime

result_directory#
Type:

None | str

unclustered_genome_count#

Total number of genomes in the catalogue, including non-cluster- representatives not available via this API.

Type:

int | None

ftp_url#
Type:

str

pipeline_version_tag#
Type:

str

catalogue_biome_label#
Type:

str

catalogue_type#
Type:

GenomeCatalogueListCatalogueType

other_stats#
Type:

GenomeCatalogueListOtherStatsType0 | None

protein_catalogue_name#
Type:

None | str | Unset

genome_count#
Type:

int | None | Unset

biome#
Type:

Biome | None | Unset

catalogue_id: str #
version: str #
name: str #
description: None | str #
protein_catalogue_description: None | str #
updated_at: datetime.datetime #
result_directory: None | str #
unclustered_genome_count: int | None #
ftp_url: str #
pipeline_version_tag: str #
catalogue_biome_label: str #
catalogue_type: GenomeCatalogueListCatalogueType#
other_stats: GenomeCatalogueListOtherStatsType0 | None #
protein_catalogue_name: None | str | Unset#
genome_count: int | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_catalogue_list_catalogue_type module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_list_catalogue_type.GenomeCatalogueListCatalogueType(*values)[source]#

Bases: str , Enum

EUKARYOTES = 'eukaryotes'#
PROKARYOTES = 'prokaryotes'#
VIRUSES = 'viruses'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.genome_catalogue_list_other_stats_type_0 module#

class mgnipy.emgapi_v2_client.models.genome_catalogue_list_other_stats_type_0.GenomeCatalogueListOtherStatsType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_detail module#

class mgnipy.emgapi_v2_client.models.genome_detail.GenomeDetail(accession, ena_genome_accession, ena_sample_accession, ncbi_genome_accession, img_genome_accession, patric_genome_accession, length, num_contigs, n_50, gc_content, type_, completeness, contamination, catalogue_id, geographic_origin, downloads, geographic_range=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>, catalogue=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_genome_accession#
Type:

None | str

ena_sample_accession#
Type:

None | str

ncbi_genome_accession#
Type:

None | str

img_genome_accession#
Type:

None | str

patric_genome_accession#
Type:

None | str

length#
Type:

int

num_contigs#
Type:

int

n_50#
Type:

int

gc_content#
Type:

float

type_#
Type:

GenomeType

completeness#
Type:

float

contamination#
Type:

float

catalogue_id#
Type:

str

geographic_origin#
Type:

None | str

downloads#
Type:

list [MGnifyGenomeDownloadFile]

geographic_range#
Type:

list [str ] | None | Unset

biome#
Type:

Biome | None | Unset

catalogue#
Type:

GenomeCatalogueBase | None | Unset

accession: str #
ena_genome_accession: None | str #
ena_sample_accession: None | str #
ncbi_genome_accession: None | str #
img_genome_accession: None | str #
patric_genome_accession: None | str #
length: int #
num_contigs: int #
n_50: int #
gc_content: float #
type_: GenomeType#
completeness: float #
contamination: float #
catalogue_id: str #
geographic_origin: None | str #
downloads: list [MGnifyGenomeDownloadFile]#
geographic_range: list [str ] | None | Unset#
biome: Biome | None | Unset#
catalogue: GenomeCatalogueBase | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_list module#

class mgnipy.emgapi_v2_client.models.genome_list.GenomeList(accession, ena_genome_accession, ena_sample_accession, ncbi_genome_accession, img_genome_accession, patric_genome_accession, length, num_contigs, n_50, gc_content, type_, completeness, contamination, catalogue_id, geographic_origin, geographic_range=<mgnipy.emgapi_v2_client.types.Unset object>, biome=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_genome_accession#
Type:

None | str

ena_sample_accession#
Type:

None | str

ncbi_genome_accession#
Type:

None | str

img_genome_accession#
Type:

None | str

patric_genome_accession#
Type:

None | str

length#
Type:

int

num_contigs#
Type:

int

n_50#
Type:

int

gc_content#
Type:

float

type_#
Type:

GenomeType

completeness#
Type:

float

contamination#
Type:

float

catalogue_id#
Type:

str

geographic_origin#
Type:

None | str

geographic_range#
Type:

list [str ] | None | Unset

biome#
Type:

Biome | None | Unset

accession: str #
ena_genome_accession: None | str #
ena_sample_accession: None | str #
ncbi_genome_accession: None | str #
img_genome_accession: None | str #
patric_genome_accession: None | str #
length: int #
num_contigs: int #
n_50: int #
gc_content: float #
type_: GenomeType#
completeness: float #
contamination: float #
catalogue_id: str #
geographic_origin: None | str #
geographic_range: list [str ] | None | Unset#
biome: Biome | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_schema module#

class mgnipy.emgapi_v2_client.models.genome_schema.GenomeSchema(accession, catalogue_id, taxon_lineage, ena_genome_accession, catalogue_version=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Simple schema for a Genome model.

Parameters:
  • accession (str )

  • catalogue_id (None | str )

  • taxon_lineage (None | str )

  • ena_genome_accession (None | str )

  • catalogue_version (None | str | Unset)

accession#
Type:

str

catalogue_id#
Type:

None | str

taxon_lineage#
Type:

None | str

ena_genome_accession#
Type:

None | str

catalogue_version#

Version of the genome catalogue

Type:

None | str | Unset

accession: str #
catalogue_id: None | str #
taxon_lineage: None | str #
ena_genome_accession: None | str #
catalogue_version: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_type module#

class mgnipy.emgapi_v2_client.models.genome_type.GenomeType(*values)[source]#

Bases: str , Enum

ISOLATE = 'Isolate'#
MAG = 'MAG'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.genome_with_annotations module#

class mgnipy.emgapi_v2_client.models.genome_with_annotations.GenomeWithAnnotations(accession, annotations)[source]#

Bases: object

Parameters:
accession#
Type:

str

annotations#
Type:

GenomeWithAnnotationsAnnotations

accession: str #
annotations: GenomeWithAnnotationsAnnotations#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.genome_with_annotations_annotations module#

class mgnipy.emgapi_v2_client.models.genome_with_annotations_annotations.GenomeWithAnnotationsAnnotations[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.input_ module#

class mgnipy.emgapi_v2_client.models.input_.Input(page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
page#

Default: 1.

Type:

int | Unset

page_size#
Type:

int | None | Unset

page: int | Unset#
page_size: int | None | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.list_mgnify_publications_order_type_0 module#

class mgnipy.emgapi_v2_client.models.list_mgnify_publications_order_type_0.ListMgnifyPublicationsOrderType0(*values)[source]#

Bases: str , Enum

PUBLISHED_YEAR = 'published_year'#
VALUE_1 = '-published_year'#
VALUE_2 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.list_mgnify_samples_order_type_0 module#

class mgnipy.emgapi_v2_client.models.list_mgnify_samples_order_type_0.ListMgnifySamplesOrderType0(*values)[source]#

Bases: str , Enum

SAMPLE_TITLE = 'sample_title'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-sample_title'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.list_mgnify_studies_order_type_0 module#

class mgnipy.emgapi_v2_client.models.list_mgnify_studies_order_type_0.ListMgnifyStudiesOrderType0(*values)[source]#

Bases: str , Enum

ACCESSION = 'accession'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-accession'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.m_gnify_analysis module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis.MGnifyAnalysis(experiment_type, study_accession, accession, run, sample, assembly, pipeline_version)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

study_accession#
Type:

str

accession#
Type:

str

run#
Type:

AnalysedRun | None

sample#
Type:

MGnifySample | None

assembly#
Type:

Assembly | None

pipeline_version#
Type:

None | PipelineVersions

experiment_type: str #
study_accession: str #
accession: str #
run: AnalysedRun | None #
sample: MGnifySample | None #
assembly: Assembly | None #
pipeline_version: None | PipelineVersions#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_detail module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_detail.MGnifyAnalysisDetail(experiment_type, study_accession, accession, run, sample, assembly, pipeline_version, read_run, quality_control_summary, downloads=<mgnipy.emgapi_v2_client.types.Unset object>, results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, metadata=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

study_accession#
Type:

str

accession#
Type:

str

run#
Type:

AnalysedRun | None

sample#
Type:

MGnifySample | None

assembly#
Type:

Assembly | None

pipeline_version#
Type:

None | PipelineVersions

read_run#

Metadata associated with the original read run(s) this analysis is based on, whether or not those reads were assembled.

Type:

list [AnalysedRun] | None

quality_control_summary#
Type:

MGnifyAnalysisDetailQualityControlSummaryType0 | None

downloads#
Type:

list [MGnifyAnalysisDownloadFile] | Unset

results_dir#

Directory path where analysis results are stored

Type:

None | str | Unset

metadata#

Additional metadata associated with the analysis

Type:

MGnifyAnalysisDetailMetadataType0 | None | Unset

experiment_type: str #
study_accession: str #
accession: str #
run: AnalysedRun | None #
sample: MGnifySample | None #
assembly: Assembly | None #
pipeline_version: None | PipelineVersions#
read_run: list [AnalysedRun] | None #
quality_control_summary: MGnifyAnalysisDetailQualityControlSummaryType0 | None #
downloads: list [MGnifyAnalysisDownloadFile] | Unset#
results_dir: None | str | Unset#
metadata: MGnifyAnalysisDetailMetadataType0 | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_detail_metadata_type_0 module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_detail_metadata_type_0.MGnifyAnalysisDetailMetadataType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_detail_quality_control_summary_type_0 module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_detail_quality_control_summary_type_0.MGnifyAnalysisDetailQualityControlSummaryType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_download_file module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_download_file.MGnifyAnalysisDownloadFile(file_type, download_type, short_description, long_description, alias, download_group=<mgnipy.emgapi_v2_client.types.Unset object>, path=<mgnipy.emgapi_v2_client.types.Unset object>, file_size_bytes=<mgnipy.emgapi_v2_client.types.Unset object>, index_file=<mgnipy.emgapi_v2_client.types.Unset object>, parent_identifier=<mgnipy.emgapi_v2_client.types.Unset object>, parent_is_private=<mgnipy.emgapi_v2_client.types.Unset object>, parent_results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, index_files=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
file_type#
Type:

DownloadFileType

download_type#
Type:

DownloadType

short_description#

Brief description of the file

Type:

str

long_description#

Detailed description of the file

Type:

str

alias#
Type:

str

download_group#

Group identifier for the download

Type:

None | str | Unset

path#
Type:

str | Unset

file_size_bytes#
Type:

int | None | Unset

index_file#
Type:

DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset

parent_identifier#
Type:

int | str | Unset

parent_is_private#
Type:

bool | None | Unset

parent_results_dir#
Type:

None | str | Unset

index_files#
Type:

list [MGnifyDownloadFileIndexFile] | None | Unset

url#
Type:

None | str | Unset

file_type: DownloadFileType#
download_type: DownloadType#
short_description: str #
long_description: str #
alias: str #
download_group: None | str | Unset#
path: str | Unset#
file_size_bytes: int | None | Unset#
index_file: DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset#
parent_identifier: int | str | Unset#
parent_is_private: bool | None | Unset#
parent_results_dir: None | str | Unset#
index_files: list [MGnifyDownloadFileIndexFile] | None | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_typed_annotation module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_typed_annotation.MGnifyAnalysisTypedAnnotation(count=<mgnipy.emgapi_v2_client.types.Unset object>, description=<mgnipy.emgapi_v2_client.types.Unset object>, organism=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
count#
Type:

int | None | Unset

description#
Type:

None | str | Unset

organism#
Type:

None | str | Unset

count: int | None | Unset#
description: None | str | Unset#
organism: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations.MGnifyAnalysisWithAnnotations(experiment_type, study_accession, accession, run, sample, assembly, pipeline_version, read_run, quality_control_summary, annotations, downloads=<mgnipy.emgapi_v2_client.types.Unset object>, results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, metadata=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
experiment_type#

Experiment type refers to the type of sequencing data that was analysed, e.g. amplicon reads or a metagenome assembly

Type:

str

study_accession#
Type:

str

accession#
Type:

str

run#
Type:

AnalysedRun | None

sample#
Type:

MGnifySample | None

assembly#
Type:

Assembly | None

pipeline_version#
Type:

None | PipelineVersions

read_run#

Metadata associated with the original read run(s) this analysis is based on, whether or not those reads were assembled.

Type:

list [AnalysedRun] | None

quality_control_summary#
Type:

MGnifyAnalysisWithAnnotationsQualityControlSummaryType0 | None

annotations#
Type:

MGnifyAnalysisWithAnnotationsAnnotations

downloads#
Type:

list [MGnifyAnalysisDownloadFile] | Unset

results_dir#

Directory path where analysis results are stored

Type:

None | str | Unset

metadata#

Additional metadata associated with the analysis

Type:

MGnifyAnalysisWithAnnotationsMetadataType0 | None | Unset

experiment_type: str #
study_accession: str #
accession: str #
run: AnalysedRun | None #
sample: MGnifySample | None #
assembly: Assembly | None #
pipeline_version: None | PipelineVersions#
read_run: list [AnalysedRun] | None #
quality_control_summary: MGnifyAnalysisWithAnnotationsQualityControlSummaryType0 | None #
annotations: MGnifyAnalysisWithAnnotationsAnnotations#
downloads: list [MGnifyAnalysisDownloadFile] | Unset#
results_dir: None | str | Unset#
metadata: MGnifyAnalysisWithAnnotationsMetadataType0 | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_annotations module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_annotations.MGnifyAnalysisWithAnnotationsAnnotations[source]#

Bases: object

additional_properties: dict [str , list [MGnifyAnalysisTypedAnnotation] | MGnifyAnalysisWithAnnotationsAnnotationsAdditionalPropertyType1]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_annotations_additional_property_type_1 module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_annotations_additional_property_type_1.MGnifyAnalysisWithAnnotationsAnnotationsAdditionalPropertyType1[source]#

Bases: object

additional_properties: dict [str , list [MGnifyAnalysisTypedAnnotation] | None ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_metadata_type_0 module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_metadata_type_0.MGnifyAnalysisWithAnnotationsMetadataType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_quality_control_summary_type_0 module#

class mgnipy.emgapi_v2_client.models.m_gnify_analysis_with_annotations_quality_control_summary_type_0.MGnifyAnalysisWithAnnotationsQualityControlSummaryType0[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_download_file_index_file module#

class mgnipy.emgapi_v2_client.models.m_gnify_download_file_index_file.MGnifyDownloadFileIndexFile(index_type, path=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
index_type#
Type:

MGnifyDownloadFileIndexFileIndexType

path#
Type:

str | Unset

url#

Full URL of the index file.

Type:

None | str | Unset

index_type: MGnifyDownloadFileIndexFileIndexType#
path: str | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_download_file_index_file_index_type module#

class mgnipy.emgapi_v2_client.models.m_gnify_download_file_index_file_index_type.MGnifyDownloadFileIndexFileIndexType(*values)[source]#

Bases: str , Enum

CSI = 'csi'#
FAI = 'fai'#
GZI = 'gzi'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.m_gnify_functional_analysis_annotation_type module#

class mgnipy.emgapi_v2_client.models.m_gnify_functional_analysis_annotation_type.MGnifyFunctionalAnalysisAnnotationType(*values)[source]#

Bases: str , Enum

PFAMS = 'pfams'#
TAXONOMIES_DADA2_PR2 = 'taxonomies__dada2_pr2'#
TAXONOMIES_DADA2_SILVA = 'taxonomies__dada2_silva'#
TAXONOMIES_ITS_ONE_DB = 'taxonomies__its_one_db'#
TAXONOMIES_LSU = 'taxonomies__lsu'#
TAXONOMIES_PR2 = 'taxonomies__pr2'#
TAXONOMIES_SSU = 'taxonomies__ssu'#
TAXONOMIES_UNITE = 'taxonomies__unite'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.m_gnify_genome_download_file module#

class mgnipy.emgapi_v2_client.models.m_gnify_genome_download_file.MGnifyGenomeDownloadFile(file_type, download_type, short_description, long_description, alias, download_group=<mgnipy.emgapi_v2_client.types.Unset object>, path=<mgnipy.emgapi_v2_client.types.Unset object>, file_size_bytes=<mgnipy.emgapi_v2_client.types.Unset object>, index_file=<mgnipy.emgapi_v2_client.types.Unset object>, parent_identifier=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
file_type#
Type:

DownloadFileType

download_type#
Type:

DownloadType

short_description#

Brief description of the file

Type:

str

long_description#

Detailed description of the file

Type:

str

alias#
Type:

str

download_group#

Group identifier for the download

Type:

None | str | Unset

path#
Type:

str | Unset

file_size_bytes#
Type:

int | None | Unset

index_file#
Type:

DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset

parent_identifier#
Type:

int | str | Unset

url#
Type:

None | str | Unset

file_type: DownloadFileType#
download_type: DownloadType#
short_description: str #
long_description: str #
alias: str #
download_group: None | str | Unset#
path: str | Unset#
file_size_bytes: int | None | Unset#
index_file: DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset#
parent_identifier: int | str | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_publication module#

class mgnipy.emgapi_v2_client.models.m_gnify_publication.MGnifyPublication(title, metadata, pubmed_id=<mgnipy.emgapi_v2_client.types.Unset object>, published_year=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
title#
Type:

str

metadata#
Type:

MGnifyPublicationMetadata

pubmed_id#
Type:

int | Unset

published_year#
Type:

int | None | Unset

title: str #
metadata: MGnifyPublicationMetadata#
pubmed_id: int | Unset#
published_year: int | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_publication_detail module#

class mgnipy.emgapi_v2_client.models.m_gnify_publication_detail.MGnifyPublicationDetail(title, metadata, studies, pubmed_id=<mgnipy.emgapi_v2_client.types.Unset object>, published_year=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
title#
Type:

str

metadata#
Type:

MGnifyPublicationDetailMetadata

studies#
Type:

list [MGnifyStudy]

pubmed_id#
Type:

int | Unset

published_year#
Type:

int | None | Unset

title: str #
metadata: MGnifyPublicationDetailMetadata#
studies: list [MGnifyStudy]#
pubmed_id: int | Unset#
published_year: int | None | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_publication_detail_metadata module#

class mgnipy.emgapi_v2_client.models.m_gnify_publication_detail_metadata.MGnifyPublicationDetailMetadata[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_publication_metadata module#

class mgnipy.emgapi_v2_client.models.m_gnify_publication_metadata.MGnifyPublicationMetadata[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_sample module#

class mgnipy.emgapi_v2_client.models.m_gnify_sample.MGnifySample(accession, ena_accessions, sample_title, biome, updated_at)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

sample_title#
Type:

None | str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

accession: str #
ena_accessions: list [str ]#
sample_title: None | str #
biome: Biome | None #
updated_at: datetime.datetime #
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_sample_detail module#

class mgnipy.emgapi_v2_client.models.m_gnify_sample_detail.MGnifySampleDetail(accession, ena_accessions, sample_title, biome, updated_at, metadata, studies)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

sample_title#
Type:

None | str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

metadata#

Metadata associated with the sample, sourced from the ENA Sample record.

Type:

MGnifySampleDetailMetadata

studies#
Type:

list [MGnifyStudy]

accession: str #
ena_accessions: list [str ]#
sample_title: None | str #
biome: Biome | None #
updated_at: datetime.datetime #
metadata: MGnifySampleDetailMetadata#
studies: list [MGnifyStudy]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_sample_detail_metadata module#

class mgnipy.emgapi_v2_client.models.m_gnify_sample_detail_metadata.MGnifySampleDetailMetadata[source]#

Bases: object

Metadata associated with the sample, sourced from the ENA Sample record.

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_sample_with_metadata module#

class mgnipy.emgapi_v2_client.models.m_gnify_sample_with_metadata.MGnifySampleWithMetadata(accession, ena_accessions, sample_title, biome, updated_at, metadata)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

sample_title#
Type:

None | str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

metadata#

Metadata associated with the sample, sourced from the ENA Sample record.

Type:

MGnifySampleWithMetadataMetadata

accession: str #
ena_accessions: list [str ]#
sample_title: None | str #
biome: Biome | None #
updated_at: datetime.datetime #
metadata: MGnifySampleWithMetadataMetadata#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_sample_with_metadata_metadata module#

class mgnipy.emgapi_v2_client.models.m_gnify_sample_with_metadata_metadata.MGnifySampleWithMetadataMetadata[source]#

Bases: object

Metadata associated with the sample, sourced from the ENA Sample record.

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_study module#

class mgnipy.emgapi_v2_client.models.m_gnify_study.MGnifyStudy(accession, ena_accessions, title, biome, updated_at)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

title#
Type:

str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

accession: str #
ena_accessions: list [str ]#
title: str #
biome: Biome | None #
updated_at: datetime.datetime #
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_study_detail module#

class mgnipy.emgapi_v2_client.models.m_gnify_study_detail.MGnifyStudyDetail(accession, ena_accessions, title, biome, updated_at, downloads, metadata, first_accession=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
accession#
Type:

str

ena_accessions#
Type:

list [str ]

title#
Type:

str

biome#
Type:

Biome | None

updated_at#
Type:

datetime.datetime

downloads#
Type:

list [MGnifyStudyDownloadFile]

metadata#

Metadata associated with the study, a partial copy of the ENA Study record.

Type:

MGnifyStudyDetailMetadata

first_accession#

Preferred ENA accession for the study (derived from ENA/INSDC accessions)

Type:

None | str | Unset

accession: str #
ena_accessions: list [str ]#
title: str #
biome: Biome | None #
updated_at: datetime.datetime #
downloads: list [MGnifyStudyDownloadFile]#
metadata: MGnifyStudyDetailMetadata#
first_accession: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_study_detail_metadata module#

class mgnipy.emgapi_v2_client.models.m_gnify_study_detail_metadata.MGnifyStudyDetailMetadata[source]#

Bases: object

Metadata associated with the study, a partial copy of the ENA Study record.

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.m_gnify_study_download_file module#

class mgnipy.emgapi_v2_client.models.m_gnify_study_download_file.MGnifyStudyDownloadFile(file_type, download_type, short_description, long_description, alias, download_group=<mgnipy.emgapi_v2_client.types.Unset object>, path=<mgnipy.emgapi_v2_client.types.Unset object>, file_size_bytes=<mgnipy.emgapi_v2_client.types.Unset object>, index_file=<mgnipy.emgapi_v2_client.types.Unset object>, parent_identifier=<mgnipy.emgapi_v2_client.types.Unset object>, parent_is_private=<mgnipy.emgapi_v2_client.types.Unset object>, parent_results_dir=<mgnipy.emgapi_v2_client.types.Unset object>, index_files=<mgnipy.emgapi_v2_client.types.Unset object>, url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
file_type#
Type:

DownloadFileType

download_type#
Type:

DownloadType

short_description#

Brief description of the file

Type:

str

long_description#

Detailed description of the file

Type:

str

alias#
Type:

str

download_group#

Group identifier for the download

Type:

None | str | Unset

path#
Type:

str | Unset

file_size_bytes#
Type:

int | None | Unset

index_file#
Type:

DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset

parent_identifier#
Type:

int | str | Unset

parent_is_private#
Type:

bool | None | Unset

parent_results_dir#
Type:

None | str | Unset

index_files#
Type:

list [MGnifyDownloadFileIndexFile] | None | Unset

url#
Type:

None | str | Unset

file_type: DownloadFileType#
download_type: DownloadType#
short_description: str #
long_description: str #
alias: str #
download_group: None | str | Unset#
path: str | Unset#
file_size_bytes: int | None | Unset#
index_file: DownloadFileIndexFile | list [DownloadFileIndexFile] | None | Unset#
parent_identifier: int | str | Unset#
parent_is_private: bool | None | Unset#
parent_results_dir: None | str | Unset#
index_files: list [MGnifyDownloadFileIndexFile] | None | Unset#
url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_additional_contained_genome_schema module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_additional_contained_genome_schema.NinjaPaginationResponseSchemaAdditionalContainedGenomeSchema(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [AdditionalContainedGenomeSchema]

count: int #
items: list [AdditionalContainedGenomeSchema]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_analysed_run module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_analysed_run.NinjaPaginationResponseSchemaAnalysedRun(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [AnalysedRun]

count: int #
items: list [AnalysedRun]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_assembly module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_assembly.NinjaPaginationResponseSchemaAssembly(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [Assembly]

count: int #
items: list [Assembly]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_assembly_detail module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_assembly_detail.NinjaPaginationResponseSchemaAssemblyDetail(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [AssemblyDetail]

count: int #
items: list [AssemblyDetail]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_biome module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_biome.NinjaPaginationResponseSchemaBiome(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [Biome]

count: int #
items: list [Biome]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_genome_catalogue_list module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_genome_catalogue_list.NinjaPaginationResponseSchemaGenomeCatalogueList(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [GenomeCatalogueList]

count: int #
items: list [GenomeCatalogueList]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_genome_list module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_genome_list.NinjaPaginationResponseSchemaGenomeList(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [GenomeList]

count: int #
items: list [GenomeList]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_analysis module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_analysis.NinjaPaginationResponseSchemaMGnifyAnalysis(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyAnalysis]

count: int #
items: list [MGnifyAnalysis]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_analysis_detail module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_analysis_detail.NinjaPaginationResponseSchemaMGnifyAnalysisDetail(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyAnalysisDetail]

count: int #
items: list [MGnifyAnalysisDetail]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_analysis_typed_annotation module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_analysis_typed_annotation.NinjaPaginationResponseSchemaMGnifyAnalysisTypedAnnotation(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyAnalysisTypedAnnotation]

count: int #
items: list [MGnifyAnalysisTypedAnnotation]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_publication module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_publication.NinjaPaginationResponseSchemaMGnifyPublication(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyPublication]

count: int #
items: list [MGnifyPublication]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_sample module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_sample.NinjaPaginationResponseSchemaMGnifySample(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifySample]

count: int #
items: list [MGnifySample]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_sample_with_metadata module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_sample_with_metadata.NinjaPaginationResponseSchemaMGnifySampleWithMetadata(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifySampleWithMetadata]

count: int #
items: list [MGnifySampleWithMetadata]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_study module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_m_gnify_study.NinjaPaginationResponseSchemaMGnifyStudy(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [MGnifyStudy]

count: int #
items: list [MGnifyStudy]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_super_study module#

class mgnipy.emgapi_v2_client.models.ninja_pagination_response_schema_super_study.NinjaPaginationResponseSchemaSuperStudy(count, items)[source]#

Bases: object

Parameters:
count#
Type:

int

items#
Type:

list [SuperStudy]

count: int #
items: list [SuperStudy]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.order_by_filter_literalaccession_accession_updated_at_updated_at module#

class mgnipy.emgapi_v2_client.models.order_by_filter_literalaccession_accession_updated_at_updated_at.OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAt(order=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

order (None | OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0 | Unset)

order#
Type:

None | OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0 | Unset

order: None | OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0 | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.order_by_filter_literalaccession_accession_updated_at_updated_at_order_type_0 module#

class mgnipy.emgapi_v2_client.models.order_by_filter_literalaccession_accession_updated_at_updated_at_order_type_0.OrderByFilterLiteralaccessionAccessionUpdatedAtUpdatedAtOrderType0(*values)[source]#

Bases: str , Enum

ACCESSION = 'accession'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-accession'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.order_by_filter_literalpublished_year_published_year module#

class mgnipy.emgapi_v2_client.models.order_by_filter_literalpublished_year_published_year.OrderByFilterLiteralpublishedYearPublishedYear(order=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

order (None | OrderByFilterLiteralpublishedYearPublishedYearOrderType0 | Unset)

order#
Type:

None | OrderByFilterLiteralpublishedYearPublishedYearOrderType0 | Unset

order: None | OrderByFilterLiteralpublishedYearPublishedYearOrderType0 | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.order_by_filter_literalpublished_year_published_year_order_type_0 module#

class mgnipy.emgapi_v2_client.models.order_by_filter_literalpublished_year_published_year_order_type_0.OrderByFilterLiteralpublishedYearPublishedYearOrderType0(*values)[source]#

Bases: str , Enum

PUBLISHED_YEAR = 'published_year'#
VALUE_1 = '-published_year'#
VALUE_2 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.order_by_filter_literalsample_title_sample_title_updated_at_updated_at module#

class mgnipy.emgapi_v2_client.models.order_by_filter_literalsample_title_sample_title_updated_at_updated_at.OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAt(order=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

order (None | OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0 | Unset)

order#
Type:

None | OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0 | Unset

order: None | OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0 | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.order_by_filter_literalsample_title_sample_title_updated_at_updated_at_order_type_0 module#

class mgnipy.emgapi_v2_client.models.order_by_filter_literalsample_title_sample_title_updated_at_updated_at_order_type_0.OrderByFilterLiteralsampleTitleSampleTitleUpdatedAtUpdatedAtOrderType0(*values)[source]#

Bases: str , Enum

SAMPLE_TITLE = 'sample_title'#
UPDATED_AT = 'updated_at'#
VALUE_1 = '-sample_title'#
VALUE_3 = '-updated_at'#
VALUE_4 = ''#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.pipeline_versions module#

class mgnipy.emgapi_v2_client.models.pipeline_versions.PipelineVersions(*values)[source]#

Bases: str , Enum

V1 = 'V1'#
V2 = 'V2'#
V3 = 'V3'#
V4 = 'V4'#
V4_1 = 'V4.1'#
V5 = 'V5'#
V6 = 'V6'#
V6_1 = 'V6.1'#
encode(encoding='utf-8', errors='strict')#

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)#

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)#

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)#

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()#

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()#

Return a version of the string suitable for caseless comparisons.

title()#

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)#

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int #

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)#

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int #

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)#

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()#

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)#

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int #

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)#

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)#

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)#

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)#

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)#

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()#

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)#

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()#

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool #

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool #

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)#

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)#

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()#

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()#

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()#

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()#

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()#

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()#

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()#

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()#

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()#

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()#

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()#

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()#

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)#

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str #

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str #

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()#

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

mgnipy.emgapi_v2_client.models.publication_annotations module#

class mgnipy.emgapi_v2_client.models.publication_annotations.PublicationAnnotations(sample_processing, other)[source]#

Bases: object

Parameters:
sample_processing#

List of sample processing annotations

Type:

list [EuropePmcAnnotationGroup]

other#

List of other annotations

Type:

list [EuropePmcAnnotationGroup]

sample_processing: list [EuropePmcAnnotationGroup]#
other: list [EuropePmcAnnotationGroup]#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.publication_list_filters module#

class mgnipy.emgapi_v2_client.models.publication_list_filters.PublicationListFilters(published_after=<mgnipy.emgapi_v2_client.types.Unset object>, published_before=<mgnipy.emgapi_v2_client.types.Unset object>, title=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
published_after#

Filter by minimum publication year

Type:

int | None | Unset

published_before#

Filter by maximum publication year

Type:

int | None | Unset

title#

Search within publication titles

Type:

None | str | Unset

published_after: int | None | Unset#
published_before: int | None | Unset#
title: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.run_list_filters module#

class mgnipy.emgapi_v2_client.models.run_list_filters.RunListFilters(has_experiment_type=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:

has_experiment_type (ExperimentTypes | None | Unset)

has_experiment_type#

If set, will only show runs with the specified experiment type

Type:

ExperimentTypes | None | Unset

has_experiment_type: ExperimentTypes | None | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.sample_list_filters module#

class mgnipy.emgapi_v2_client.models.sample_list_filters.SampleListFilters(biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_lineage#

The lineage to match, including all descendant biomes

Type:

None | str | Unset

search#

Search within sample titles and accessions

Type:

None | str | Unset

biome_lineage: None | str | Unset#
search: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.schema module#

class mgnipy.emgapi_v2_client.models.schema.Schema[source]#

Bases: object

additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.study_list_filters module#

class mgnipy.emgapi_v2_client.models.study_list_filters.StudyListFilters(biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, has_analyses_from_pipeline=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
biome_lineage#

The lineage to match, including all descendant biomes

Type:

None | str | Unset

has_analyses_from_pipeline#

If set, will only show studies with analyses from the specified MGnify pipeline version

Type:

None | PipelineVersions | Unset

search#

Search within study titles and accessions

Type:

None | str | Unset

biome_lineage: None | str | Unset#
has_analyses_from_pipeline: None | PipelineVersions | Unset#
search: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.super_study module#

class mgnipy.emgapi_v2_client.models.super_study.SuperStudy(slug, title, description=<mgnipy.emgapi_v2_client.types.Unset object>, logo_url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
slug#
Type:

str

title#
Type:

str

description#
Type:

None | str | Unset

logo_url#
Type:

None | str | Unset

slug: str #
title: str #
description: None | str | Unset#
logo_url: None | str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.super_study_detail module#

class mgnipy.emgapi_v2_client.models.super_study_detail.SuperStudyDetail(slug, title, flagship_studies, related_studies, genome_catalogues, description=<mgnipy.emgapi_v2_client.types.Unset object>, logo_url=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Bases: object

Parameters:
slug#
Type:

str

title#
Type:

str

flagship_studies#
Type:

list [MGnifyStudy]

related_studies#
Type:

list [MGnifyStudy]

genome_catalogues#
Type:

list [GenomeCatalogueList]

description#
Type:

None | str | Unset

logo_url#
Type:

None | str | Unset

slug: str #
title: str #
flagship_studies: list [MGnifyStudy]#
related_studies: list [MGnifyStudy]#
genome_catalogues: list [GenomeCatalogueList]#
description: None | str | Unset#
logo_url: None | str | Unset#
additional_properties: dict [str , Any]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.token_verify_input_schema module#

class mgnipy.emgapi_v2_client.models.token_verify_input_schema.TokenVerifyInputSchema(token)[source]#

Bases: object

Parameters:

token (str )

token#
Type:

str

token: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.webin_token_refresh_request module#

class mgnipy.emgapi_v2_client.models.webin_token_refresh_request.WebinTokenRefreshRequest(token)[source]#

Bases: object

Parameters:

token (str )

token#
Type:

str

token: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.webin_token_request module#

class mgnipy.emgapi_v2_client.models.webin_token_request.WebinTokenRequest(username, password)[source]#

Bases: object

Parameters:
username#
Type:

str

password#
Type:

str

username: str #
password: str #
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#

mgnipy.emgapi_v2_client.models.webin_token_response module#

class mgnipy.emgapi_v2_client.models.webin_token_response.WebinTokenResponse(token, token_type='sliding')[source]#

Bases: object

Parameters:
token#
Type:

str

token_type#

Default: ‘sliding’.

Type:

str | Unset

token: str #
token_type: str | Unset#
additional_properties: dict [str , Any ]#
to_dict()[source]#
Return type:

dict [str , Any ]

classmethod from_dict(src_dict)[source]#
Parameters:

src_dict (Mapping [str , Any ])

Return type:

T

property additional_keys: list [str ]#