localpdb/PDB.py
def search(self, attribute, operator, value, return_type='entry', no_hits=1000, get_doc_only=False, select=False):
        """
        Get dataframe with results from search for value of given attribute
        :param attribute: (str) attribute to search for
        :param operator: (int) operator to filter attribute by value i.e greater, in etc
        :param value: (str) value of given attribute
        :param return_type: (str) type of returned data
        :param no_hits: (int) number of hits to fetch, -1 for all results
        :param get_doc_only: (bool) if True get datafarame with description of possible attributes and operators
        :param select: (bool) if True results of the query will be propagated to either lpdb.entries or lpdb.chains
        (depending on the return_type parameter)
        :return: pd.DataFrame
        """
        command = self.__rest_api_commands.get('text')(attribute, operator, value,
                                                       resp_type=return_type, rows=no_hits)
        if get_doc_only:
            return command.get_doc()
        results = command.execute()
        if select:
            if return_type == 'entry':
                self.entries = self.entries[self.entries.index.isin(results.index)]
            elif return_type == 'polymer_instance':
                self.chains = self.chains[self.chains.index.isin(results.index)]
        else:
            return results

        Get dataframe with results from search for value of given attribute
        :param attribute: (str) attribute to search for
        :param operator: (int) operator to filter attribute by value i.e greater, in etc
        :param value: (str) value of given attribute
        :param return_type: (str) type of returned data
        :param no_hits: (int) number of hits to fetch, -1 for all results
        :param get_doc_only: (bool) if True get datafarame with description of possible attributes and operators
        :param select: (bool) if True results of the query will be propagated to either lpdb.entries or lpdb.chains
        (depending on the return_type parameter)
        :return: pd.DataFrame
        
Get dataframe with results from search for value of given attribute
Get dataframe with results from search for value of given attribute
def search(self, attribute, operator, value, return_type='entry', no_hits=1000, get_doc_only=False, select=False):
        command = self.__rest_api_commands.get('text')(attribute, operator, value,
                                                       resp_type=return_type, rows=no_hits)
        if get_doc_only:
            return command.get_doc()
        results = command.execute()
        if select:
            if return_type == 'entry':
                self.entries = self.entries[self.entries.index.isin(results.index)]
            elif return_type == 'polymer_instance':
                self.chains = self.chains[self.chains.index.isin(results.index)]
        else:
            return results
def search ( self , attribute , operator , value , return_type = 'entry' , no_hits = 1000 , get_doc_only = False , select = False ) : command = self . __rest_api_commands . get ( 'text' ) ( attribute , operator , value , resp_type = return_type , rows = no_hits ) if get_doc_only : return command . get_doc ( ) results = command . execute ( ) if select : if return_type == 'entry' : self . entries = self . entries [ self . entries . index . isin ( results . index ) ] elif return_type == 'polymer_instance' : self . chains = self . chains [ self . chains . index . isin ( results . index ) ] else : return results
Get dataframe with results from search for value of given attribute
Get dataframe with results from search for value of given attribute
"""
        Get dataframe with results from search for value of given attribute
        :param attribute: (str) attribute to search for
        :param operator: (int) operator to filter attribute by value i.e greater, in etc
        :param value: (str) value of given attribute
        :param return_type: (str) type of returned data
        :param no_hits: (int) number of hits to fetch, -1 for all results
        :param get_doc_only: (bool) if True get datafarame with description of possible attributes and operators
        :param select: (bool) if True results of the query will be propagated to either lpdb.entries or lpdb.chains
        (depending on the return_type parameter)
        :return: pd.DataFrame
        """
None
self
attribute
(str) attribute to search for
( str ) attribute to search for
operator
(int) operator to filter attribute by value i.e greater, in etc
( int ) operator to filter attribute by value i . e greater in etc
value
(str) value of given attribute
( str ) value of given attribute
return_type
(str) type of returned data
( str ) type of returned data
no_hits
(int) number of hits to fetch, -1 for all results
( int ) number of hits to fetch - 1 for all results
get_doc_only
(bool) if True get datafarame with description of possible attributes and operators
( bool ) if True get datafarame with description of possible attributes and operators
select
(bool) if True results of the query will be propagated to either lpdb.entries or lpdb.chains
(depending on the return_type parameter)
( bool ) if True results of the query will be propagated to either lpdb . entries or lpdb . chains ( depending on the return_type parameter )