Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from pyopencga.rest_clients._parent_rest_clients import _ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient
class Cohorts(_ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient):
"""
This class contains method for Cohorts ws (i.e, update, create)
"""
def __init__(self, configuration, session_id=None, login_handler=None, *args, **kwargs):
_category = 'cohorts'
super(Cohorts, self).__init__(configuration, _category, session_id, login_handler, *args, **kwargs)
def aggregation_stats(self, **options):
"""
Fetch catalog cohort stats
URL: /{apiVersion}/cohorts/aggregationStats
:param study: Study [[user@]project:]study where study and project can be either the id or alias
:param type: Type
from pyopencga.rest_clients._parent_rest_clients import _ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient
class Files(_ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient):
"""
This class contains methods for the Files webservices
"""
def __init__(self, configuration, session_id=None, login_handler=None, *args, **kwargs):
_category = 'files'
super(Files, self).__init__(configuration, _category, session_id, login_handler, *args, **kwargs)
def aggregation_stats(self, **options):
"""
Fetch catalog file stats
URL: /{apiVersion}/files/aggregationStats
:param study: study [[user@]project:]study where study and project can be either the id or alias
:param name: name
from pyopencga.rest_clients._parent_rest_clients import _ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient
class Samples(_ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient):
"""
This class contains method for Samples webservice
"""
def __init__(self, configuration, session_id=None, login_handler=None, *args, **kwargs):
_category = 'samples'
super(Samples, self).__init__(configuration, _category, session_id, login_handler, *args, **kwargs)
def aggregation_stats(self, **options):
"""
Fetch catalog sample stats
URL: /{apiVersion}/samples/aggregationStats
:param study: study [[user@]project:]study where study and project can be either the id or alias
:param source: Source
from pyopencga.rest_clients._parent_rest_clients import _ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient
class Families(_ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient):
"""
This class contains methods for the Families websevices
"""
def __init__(self, configuration, session_id=None, login_handler=None, *args, **kwargs):
_category = 'families'
super(Families, self).__init__(configuration, _category, session_id, login_handler, *args, **kwargs)
def aggregation_stats(self, **options):
"""
Fetch catalog family stats
URL: /{apiVersion}/families/aggregationStats
:param study: study [[user@]project:]study where study and project can be either the id or alias
:param creationYear: creation year
from pyopencga.rest_clients._parent_rest_clients import _ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient
class Individuals(_ParentBasicCRUDClient, _ParentAclRestClient, _ParentAnnotationSetRestClient):
"""
This class contains methods for the Individuals webservices
"""
def __init__(self, configuration, session_id=None, login_handler=None, *args, **kwargs):
_category = 'individuals'
super(Individuals, self).__init__(configuration, _category, session_id, login_handler, *args, **kwargs)
def aggregation_stats(self, **options):
"""
Fetch catalog individual stats
URL: /{apiVersion}/individuals/aggregationStats
:param study: study [[user@]project:]study where study and project can be either the id or alias
:param hasFather: has father (Bool, default=None)