Logo Search packages:      
Sourcecode: python-biopython version File versions

Bio::GFF::easy::LocationFromString Class Reference

Inheritance diagram for Bio::GFF::easy::LocationFromString:

Bio::GFF::easy::Location

List of all members.


Detailed Description

>>> # here are some tests from http://www.ncbi.nlm.nih.gov/collab/FT/index.html#location
>>> print LocationFromString("467")
467
>>> print LocationFromString("340..565")
340..565
>>> print LocationFromString("<345..500")
<345..500
>>> print LocationFromString("<1..888")
<1..888
>>> # (102.110) and 123^124 syntax unimplemented
>>> print LocationFromString("join(12..78,134..202)")
join(12..78,134..202)
>>> print LocationFromString("complement(join(2691..4571,4918..5163))")
complement(join(2691..4571,4918..5163))
>>> print LocationFromString("join(complement(4918..5163),complement(2691..4571))")
join(complement(4918..5163),complement(2691..4571))
>>> print LocationFromString("order(complement(4918..5163),complement(2691..4571))")
order(complement(4918..5163),complement(2691..4571))
>>> print LocationFromString("NC_001802x.fna:73..78")
NC_001802x.fna:73..78
>>> print LocationFromString("J00194:100..202")
J00194:100..202

>>> print LocationFromString("join(117505..118584,1..609)")
join(117505..118584,1..609)
>>> print LocationFromString("join(test3:complement(4..6),test3:complement(1..3))")
join(test3:complement(4..6),test3:complement(1..3))
>>> print LocationFromString("test3:join(test1:complement(1..3),4..6)")
test3:join(test1:complement(1..3),4..6)

Definition at line 359 of file easy.py.


Public Member Functions

def __add__
def __init__
def __init__
def __repr__
def __str__
def __sub__
def add
def bounding
def direction_and_index
def end
def findseqname
def findseqname_3prime
def findside
def five_prime
def intersection
def length
def reorient
def reverse
def start
def sublocation
def three_prime
def three_prime_range

Public Attributes

 complement
 fuzzy
 join
 seqname

Static Public Attributes

dictionary direction2index = {1: 0, -1: -1}

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index