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

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)

src/m/g/mgtaxa-HEAD/MGT/Proj/CrisprMooreApp.py   mgtaxa(Download)
    def plotCrisprOneGff(self,seqRec,outGraphFileRoot):
        """Generate GFF files and graphics for CRISPR genes and arrays from one SeqRecord from a pre-processed Genbank file"""
 
        from MGT.GFF import GFF3Record, GFF3Header
        from MGT.GFFTools import GFF3Graphics
        out.close()
        grFile = outFileRt + ".pdf"
        gr = GFF3Graphics(outFormat="pdf",width=max(len(seqRec)/10,800))
        gr(gffFile,grFile)
 

src/m/g/mgtaxa-HEAD/MGT/PhageHostApp.py   mgtaxa(Download)
 
        from MGT.GFF import GFF3Record, GFF3Header
        from MGT.GFFTools import GFF3Graphics
        #If annRecs is empty, many things downstream do not make sense
        if len(annRecs) == 0:
        out.close()
        grFile = outFileRt + ".%s" % (gdFormat,)
        gr = GFF3Graphics(outFormat=gdFormat,width=max(annRec1["len_contig"]/10,800))
        try:
            gr(gffFile,grFile)

src/m/g/mgtaxa-HEAD/MGT/JCVI/AnnotConsensusApp.py   mgtaxa(Download)
from MGT.JCVI.MgxAnnotFormat import *
from MGT.JCVI.MgxAnnotFormatApisJSON import *
from MGT.GFF import GFF3Record, GFF3Attributes, GFF3Header
from MGT.GFFTools import GFF3Graphics
from MGT.Taxa import *
            #above 6000 it might produce empty PDF pages; values that are too low
            #will produce no pages at all
            gr = GFF3Graphics(outFormat=gdFormat,width=min(max(pred[2]/10,800),6000))
            if batch:
                cmd = gr.genCmd(gffFile,grFile)
                #ignore errors
                mkf.write("%s : %s\n\t(%s) || true\n" % (grFile,gffFile,cmd))
            else:
                try:
                    gr(gffFile,grFile)