Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/i/AIGO-0.1.0/AIGO/gui/main.py   AIGO(Download)
from AIGO.Statistics              import registerStat
from AIGO.ReferenceSet            import RefSet
from AIGO.FunctionalAnnotation    import FuncAnnot
from AIGO.Plot                    import PlotFA, registerPlot
from AIGO.Randomize               import RandomizeFA
            fileType=self.FAFrame.combo_box_FileType.GetValue()
 
            FA = FuncAnnot(name, self.project['refSet'], self.project['GO'],
                           organism=self.project['organism'],
                           fileName=fileName, fileType=fileType)
            self.project.addFA(FA)

src/a/i/AIGO-0.1.0/tests/testAIGO.py   AIGO(Download)
#!/usr/bin/env python
from AIGO import logger
 
from AIGO.ReferenceSet import RefSet
from AIGO.FunctionalAnnotation import FuncAnnot
refSet = RefSet(organism="platypus", fileName="platypus.refSet", refType="Text")
G = readGOoboXML("go_daily-termdb.obo-xml")
FA = FuncAnnot("platypusProject", refSet, G, organism="platypus")
FA.read("platypus.gaf", "GAF") 
 
analyseFA = AnalyseFA()
 
analyseFA.largestSet([FA])
logger.info("Largest sets of annotations:")
logger.info("\t%d for %s" % (FA['largestSet']['All_aspects_of_GO'], FA.name))
 
batchList=["coverage",  "richness", "numberAnnot", "redundancy", "specificity", "informationContent"]
batchExecute(batchList, analyseFA, [FA])
 
reportFA = ReportFA(outDir=None, name="platypusProject", organism="platypus")