localpdb/PDB.py
def search_seq(self, sequence, evalue=1, identity=0.9, return_type="polymer_instance",
                   no_hits=1000, select=False):
        """
        Get dataframe with pdb ids have sequence similar to given sequence
        :param sequence: (str) sequence used to fin similar ones
        :param evalue: (float) minimum e value
        :param identity: (float) minimum identity to input sequence
        :param return_type: (str) type of returned data
        :param no_hits: (int) number of hits to fetch, -1 for all results
        :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
        """
        results = self.__rest_api_commands.get('sequence')(sequence, evalue, identity,
                                                           resp_type=return_type, rows=no_hits).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 pdb ids have sequence similar to given sequence
        :param sequence: (str) sequence used to fin similar ones
        :param evalue: (float) minimum e value
        :param identity: (float) minimum identity to input sequence
        :param return_type: (str) type of returned data
        :param no_hits: (int) number of hits to fetch, -1 for all results
        :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 pdb ids have sequence similar to given sequence
Get dataframe with pdb ids have sequence similar to given sequence
def search_seq(self, sequence, evalue=1, identity=0.9, return_type="polymer_instance",
                   no_hits=1000, select=False):
        results = self.__rest_api_commands.get('sequence')(sequence, evalue, identity,
                                                           resp_type=return_type, rows=no_hits).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_seq ( self , sequence , evalue = 1 , identity = 0.9 , return_type = "polymer_instance" , no_hits = 1000 , select = False ) : results = self . __rest_api_commands . get ( 'sequence' ) ( sequence , evalue , identity , resp_type = return_type , rows = no_hits ) . 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 pdb ids have sequence similar to given sequence
Get dataframe with pdb ids have sequence similar to given sequence
"""
        Get dataframe with pdb ids have sequence similar to given sequence
        :param sequence: (str) sequence used to fin similar ones
        :param evalue: (float) minimum e value
        :param identity: (float) minimum identity to input sequence
        :param return_type: (str) type of returned data
        :param no_hits: (int) number of hits to fetch, -1 for all results
        :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
sequence
(str) sequence used to fin similar ones
( str ) sequence used to fin similar ones
evalue
(float) minimum e value
( float ) minimum e value
identity
(float) minimum identity to input sequence
( float ) minimum identity to input sequence
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
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 )