def disease(self,<EOL>identifier=None,<EOL>ref_id=None,<EOL>ref_type=None,<EOL>name=None,<EOL>acronym=None,<EOL>description=None,<EOL>entry_name=None,<EOL>limit=None,<EOL>as_df=False<EOL>):
q = self.session.query(models.Disease)<EOL>model_queries_config = (<EOL>(identifier, models.Disease.identifier),<EOL>(ref_id, models.Disease.ref_id),<EOL>(ref_type, models.Disease.ref_type),<EOL>(name, models.Disease.name),<EOL>(acronym, models.Disease.acronym),<EOL>(description, models.Disease.description)<EOL>)<EOL>q = self.get_model_queries(q, model_queries_config)<EOL>if entry_name:<EOL><INDENT>q = q.session.query(models.Disease).join(models.DiseaseComment).join(models.Entry)<EOL>if isinstance(entry_name, str):<EOL><INDENT>q = q.filter(models.Entry.name == entry_name)<EOL><DEDENT>elif isinstance(entry_name, Iterable):<EOL><INDENT>q = q.filter(models.Entry.name.in_(entry_name))<EOL><DEDENT><DEDENT>return self._limit_and_df(q, limit, as_df)<EOL>
Method to query :class:`.models.Disease` objects in database


        :param identifier: disease UniProt identifier(s)
        :type identifier: str or tuple(str) or None

        :param ref_id: identifier(s) of referenced database
        :type ref_id: str or tuple(str) or None

        :param ref_type: database name(s)
        :type ref_type: str or tuple(str) or None

        :param name: disease name(s)
        :type name: str or tuple(str) or None

        :param acronym: disease acronym(s)
        :type acronym: str or tuple(str) or None

        :param description: disease description(s)
        :type description: str or tuple(str) or None

        :param entry_name: name(s) in :class:`.models.Entry`
        :type entry_name: str or tuple(str) or None

        :param limit:
            - if `isinstance(limit,int)==True` -> limit
            - if `isinstance(limit,tuple)==True` -> format:= tuple(page_number, results_per_page)
            - if limit == None -> all results
        :type limit: int or tuple(int) or None

        :param bool as_df: if `True` results are returned as :class:`pandas.DataFrame`

        :return:
            - if `as_df == False` -> list(:class:`.models.Disease`)
            - if `as_df == True`  -> :class:`pandas.DataFrame`
        :rtype: list(:class:`.models.Disease`) or :class:`pandas.DataFrame`