localpdb/PDB.py
def search_seq_motif(self, query, type_='prosite', return_type="entry", no_hits=1000, select=False):
        """
        Get dataframe with pdb ids having sequence matching given sequence motif
        :param query: (str) motif to find in pdb sequences, according to given type_ (i.e prosite)
        :param type_: (str) name of type of query
        :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('seqmotif')(query, type_,
                                                           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 having sequence matching given sequence motif
        :param query: (str) motif to find in pdb sequences, according to given type_ (i.e prosite)
        :param type_: (str) name of type of query
        :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 having sequence matching given sequence motif
Get dataframe with pdb ids having sequence matching given sequence motif
def search_seq_motif(self, query, type_='prosite', return_type="entry", no_hits=1000, select=False):
        results = self.__rest_api_commands.get('seqmotif')(query, type_,
                                                           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_motif ( self , query , type_ = 'prosite' , return_type = "entry" , no_hits = 1000 , select = False ) : results = self . __rest_api_commands . get ( 'seqmotif' ) ( query , type_ , 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 having sequence matching given sequence motif
Get dataframe with pdb ids having sequence matching given sequence motif
"""
        Get dataframe with pdb ids having sequence matching given sequence motif
        :param query: (str) motif to find in pdb sequences, according to given type_ (i.e prosite)
        :param type_: (str) name of type of query
        :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
query
(str) motif to find in pdb sequences, according to given type_
( str ) motif to find in pdb sequences according to given type_
type_
(str) name of type of query
( str ) name of type of query
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 )