def GetAlignanda( self ):
        """retrieve alignandum-objects.
        """

        ## do not get additional info so that non-redundant table can be used.
        domains = self.mTableScopTest.GetAllDomains( all = 0 )

        if self.mLogLevel >= 1:
            print "# --> retrieving %i entries at %s" % (len(domains), Tools.GetTimeStamp())
            sys.stdout.flush()
            
        for domain in domains:

            if self.mLogLevel >= 2:
                print "# retrieving", domain
                sys.stdout.flush()

            (nid, nrdb_from, nrdb_to, scop_class) = domain
            
            ## dummy values
            pdb_id = "test"
            region_nr = 0
            
            if scop_class[0:3] not in ("00a", "00b", "00c", "00d"):
                if self.mLogLevel >= 2:
                    print "# skipped because not in first four classes"
                    sys.stdout.flush()
                continue
            
            # if nid not in (47268, 74355): continue
            # if nid not in (36388, 148361): continue
            # if nid not in (3503, 115681): continue
            # if nid not in (17, 1011060): continue                        
            alignandum, info = self.GetAlignandum( nid, nrdb_from, nrdb_to )

            if alignandum:
                if info:
                    self.mInformation.append( ( "%i_%i_%i" % (nid, nrdb_from, nrdb_to),
                                                scop_class, pdb_id, str(region_nr)) + tuple(info) )
                    
                else:
                    self.mInformation.append( ( "%i_%i_%i" % (nid, nrdb_from, nrdb_to),
                                                scop_class, pdb_id, str(region_nr)) )
                    
                self.mAlignanda.append(alignandum)
            else:
                if self.mLogLevel >= 2:
                    print "# skipped because no alignandum found"
                    sys.stdout.flush()

        if self.mLogLevel >= 1:
            print (len(self.mAlignanda), Tools.GetTimeStamp()) % "# --> retrieved %i entries at %s"
            sys.stdout.flush()
                    
##--------------------------------------------------------------------------------------
dataset/ETHPy150Open CGATOxford/cgat/legacy/ScopTester.py/ScopTester.GetAlignanda/swapped operands of `%`