Esempio n. 1
0
	def __init__( self, infoKey, matcher, leafOnly=True, userData={} ) :

		PathFilter.__init__( self, userData )
		
		self.__infoKey = infoKey
		self.__matcher = matcher
		self.__leafOnly = leafOnly
Esempio n. 2
0
    def __init__(self, infoKey, matcher, leafOnly=True, userData={}):

        PathFilter.__init__(self, userData)

        self.__infoKey = infoKey
        self.__matcher = matcher
        self.__leafOnly = leafOnly
Esempio n. 3
0
    def __init__(self, matchers, leafOnly=True, userData={}):

        assert (isinstance(matchers, (list, tuple)))

        PathFilter.__init__(self, userData)

        self.__matchers = []
        for m in matchers:

            if isinstance(m, basestring):
                self.__matchers.append(re.compile(fnmatch.translate(m)))
            else:
                assert (type(m) is type(re.compile("")))
                self.__matchers.append(m)

        self.__leafOnly = leafOnly
Esempio n. 4
0
	def __init__( self, matchers, leafOnly=True, userData={} ) :

		assert( isinstance( matchers, ( list, tuple ) ) )

		PathFilter.__init__( self, userData )

		self.__matchers = []
		for m in matchers :

			if isinstance( m, basestring ) :
				self.__matchers.append( re.compile( fnmatch.translate( m ) ) )
			else :
				assert( type( m ) is type( re.compile( "" ) ) )
				self.__matchers.append( m )

		self.__leafOnly = leafOnly
Esempio n. 5
0
 def compute(self, timeout):
     """Filter pathways."""
     pf = PathFilter(pathfile=self.pathfile,
                     sinkfile=self.sinkfile,
                     filter_bootstraps=True,
                     filter_inconsistentsubstrates=True,
                     onlyPathsStartingBy=self.onlyPathsStartingBy,
                     notPathsStartingBy=self.notPathsStartingBy)
     pf.GetPathwaysFromFile()
     pf.GetSinkCompoundsFromFile()
     pf.FilterOutPathways()
     pf.RewritePathFile()
Esempio n. 6
0
	def __init__( self, userData={} ) :

		PathFilter.__init__( self, userData )
Esempio n. 7
0
    def __init__(self, userData={}):

        PathFilter.__init__(self, userData)