Did I find the right examples for you? yes no

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/c/o/cogent-1.5.3/cogent/core/alignment.py   cogent(Download)
from __future__ import division
from types import GeneratorType
from cogent.core.annotation import Map, _Annotatable
import cogent   #will use to get at cogent.parse.fasta.MinimalFastaParser,
                #which is a circular import otherwise.
        positions = [(loc*motif_length, (loc+1)*motif_length)
                for loc in locations]
        sample = Map(positions, parent_length=len(self))
        return self.gappedByMap(sample, Info=self.Info)
 
        positions = [(loc*motif_length, (loc+1)*motif_length)
                for loc in locations]
        sample = Map(positions, parent_length=len(self))
        return self.gappedByMap(sample, Info=self.Info)
 
        locations = [(gv[i], gv[i+1]) for i in range(0, len(gv), 2)]
 
        keep = Map(locations, parent_length=len(self))
        return self.gappedByMap(keep, Info=self.Info)
 

src/p/y/pycogent-HEAD/cogent/core/alignment.py   pycogent(Download)
from __future__ import division
from types import GeneratorType
from cogent.core.annotation import Map, _Annotatable
import cogent   #will use to get at cogent.parse.fasta.MinimalFastaParser,
                #which is a circular import otherwise.
        positions = [(loc*motif_length, (loc+1)*motif_length)
                for loc in locations]
        sample = Map(positions, parent_length=len(self))
        return self.gappedByMap(sample, Info=self.Info)
 
        positions = [(loc*motif_length, (loc+1)*motif_length)
                for loc in locations]
        sample = Map(positions, parent_length=len(self))
        return self.gappedByMap(sample, Info=self.Info)
 
        locations = [(gv[i], gv[i+1]) for i in range(0, len(gv), 2)]
 
        keep = Map(locations, parent_length=len(self))
        return self.gappedByMap(keep, Info=self.Info)
 

src/c/o/cogent-1.5.3/cogent/parse/gbseq.py   cogent(Download)
        seq = alphabet.makeSequence(raw_string, Name=name)
 
        all = annotation.Map([(0,len(seq))], parent_length=len(seq))
        seq.addAnnotation(annotation.Source, all, name, all)
 

src/p/y/pycogent-HEAD/cogent/parse/gbseq.py   pycogent(Download)
        seq = alphabet.makeSequence(raw_string, Name=name)
 
        all = annotation.Map([(0,len(seq))], parent_length=len(seq))
        seq.addAnnotation(annotation.Source, all, name, all)
 

src/c/o/cogent-1.5.3/cogent/align/traceback.py   cogent(Download)
 
from cogent.core.alignment import Alignment, Aligned
from cogent.core.annotation import Map
 
__author__ = "Peter Maxwell"

src/p/y/pycogent-HEAD/cogent/align/traceback.py   pycogent(Download)
 
from cogent.core.alignment import Alignment, Aligned
from cogent.core.annotation import Map
 
__author__ = "Peter Maxwell"