def GetAlignandum( self, nid, nrdb_from, nrdb_to ):

        n = self.mTableNeighbours.GetNumNeighbours( nid )
        
        if n >= self.mMinProfileSize:
            
            profile = alignlib.makeEmptyProfile( self.mRegularizor, self.mLogOddor )

            pairsdblib.fillProfileNeighbours( profile,
                                              self.mConnectionPairsdb,
                                              nid,
                                              self.mTableNameNeighbours,
                                              self.mMaxLinesMali,
                                              0,
                                              self.mMaxLevel,
                                              self.mMinLevel )
            if self.mLogLevel >= 3:
                print "# ------> using profile for rep %i" % nid
                
        else:
            profile = pairsdblib.makeSequenceFromPicasso( self.mConnectionPairsdb, nid )
            if self.mLogLevel >= 3:
                print "# ------> using sequence for rep %i" % nid
            
        profile.useSegment( nrdb_from, nrdb_to )
                                          
        return profile, (str(n),)

##--------------------------------------------------------------------------------------
dataset/ETHPy150Open CGATOxford/cgat/legacy/ScopTester.py/ScopTesterProfiles.GetAlignandum/original