localpdb/PDB.py
def search_struct(self, pdb_id, assembly_id=1, operator='strict_shape_match',
                      return_type="entry", no_hits=1000, select=False):
        """
        Get dataframe with pdb ids having structure similar to structure of given pdb_id
        :param pdb_id: (str) pdb id (i.e 2mnr)
        :param assembly_id: (int) assembly number
        :param operator: (str) match mode type either relaxed_shape_match or strict_shape_match
        :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('structure')(pdb_id, assembly_id, operator,
                                                            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 structure similar to structure of given pdb_id
        :param pdb_id: (str) pdb id (i.e 2mnr)
        :param assembly_id: (int) assembly number
        :param operator: (str) match mode type either relaxed_shape_match or strict_shape_match
        :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 structure similar to structure of given pdb_id
Get dataframe with pdb ids having structure similar to structure of given pdb_id
def search_struct(self, pdb_id, assembly_id=1, operator='strict_shape_match',
                      return_type="entry", no_hits=1000, select=False):
        results = self.__rest_api_commands.get('structure')(pdb_id, assembly_id, operator,
                                                            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_struct ( self , pdb_id , assembly_id = 1 , operator = 'strict_shape_match' , return_type = "entry" , no_hits = 1000 , select = False ) : results = self . __rest_api_commands . get ( 'structure' ) ( pdb_id , assembly_id , operator , 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 structure similar to structure of given pdb_id
Get dataframe with pdb ids having structure similar to structure of given pdb_id
"""
        Get dataframe with pdb ids having structure similar to structure of given pdb_id
        :param pdb_id: (str) pdb id (i.e 2mnr)
        :param assembly_id: (int) assembly number
        :param operator: (str) match mode type either relaxed_shape_match or strict_shape_match
        :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
pdb_id
(str) pdb id
( str ) pdb id
assembly_id
(int) assembly number
( int ) assembly number
operator
(str) match mode type either relaxed_shape_match or strict_shape_match
( str ) match mode type either relaxed_shape_match or strict_shape_match
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 )