def __init__(self, name, metadata, gpls=None, gsms=None, database=None):
        """Initialize GSE.

        Args:
            name (:obj:`str`): Name of the object.
            metadata (:obj:`dict`): Metadata information.
            gpls (:obj:`dict` of :obj:`GEOparse.GPL`, optional): A dictionary of
                GSE objects. Defaults to None.
            gsms (:obj:`dict` of :obj:`GEOparse.GSM`, optional): A dictionary of
                GSM objects. Defaults to None.
            database (:obj:`GEOparse.Database`, optional): Database from SOFT
                file. Defaults to None.
        """
        gpls = {} if gpls is None else gpls
        if not isinstance(gpls, dict):
            raise ValueError(
                "GPLs should be a dictionary not a %s" % str(type(gpls)))
        gsms = {} if gsms is None else gsms
        if not isinstance(gsms, dict):
            raise ValueError(
                "GSMs should be a dictionary not a %s" % str(type(gsms)))

        for gsm_name, gsm in iteritems(gsms):
            assert isinstance(gsm, GSM), "All GSMs should be of type GSM"
        for gpl_name, gpl in iteritems(gpls):
            assert isinstance(gpl, GPL), "All GPLs should be of type GPL"
        if database is not None:
            if not isinstance(database, GEODatabase):
                raise ValueError(
                    "Database should be a GEODatabase not a %s" % str(
                        type(database)))
        BaseGEO.__init__(self, name=name, metadata=metadata)

        self.gpls = gpls
        self.gsms = gsms
        self.database = database
        self._phenotype_data = None
def __init__ ( self , name , metadata , gpls = None , gsms = None , database = None ) : gpls = { } if gpls is None else gpls if not isinstance ( gpls , dict ) : raise ValueError ( "GPLs should be a dictionary not a %s" % str ( type ( gpls ) ) ) gsms = { } if gsms is None else gsms if not isinstance ( gsms , dict ) : raise ValueError ( "GSMs should be a dictionary not a %s" % str ( type ( gsms ) ) ) for gsm_name , gsm in iteritems ( gsms ) : assert isinstance ( gsm , GSM ) , "All GSMs should be of type GSM" for gpl_name , gpl in iteritems ( gpls ) : assert isinstance ( gpl , GPL ) , "All GPLs should be of type GPL" if database is not None : if not isinstance ( database , GEODatabase ) : raise ValueError ( "Database should be a GEODatabase not a %s" % str ( type ( database ) ) ) BaseGEO . __init__ ( self , name = name , metadata = metadata ) self . gpls = gpls self . gsms = gsms self . database = database self . _phenotype_data = None
Initialize GSE.

        Args:
            name (:obj:`str`): Name of the object.
            metadata (:obj:`dict`): Metadata information.
            gpls (:obj:`dict` of :obj:`GEOparse.GPL`, optional): A dictionary of
                GSE objects. Defaults to None.
            gsms (:obj:`dict` of :obj:`GEOparse.GSM`, optional): A dictionary of
                GSM objects. Defaults to None.
            database (:obj:`GEOparse.Database`, optional): Database from SOFT
                file. Defaults to None.