Bio :: GFF :: easy :: LocationFromString :: Class LocationFromString
[hide private]
[frames] | no frames]

Class LocationFromString

source code

          object --+            
                   |            
                list --+        
                       |        
GenericTools.VerboseList --+    
                           |    
                    Location --+
                               |
                              LocationFromString

>>> # 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)
Instance Methods [hide private]
new list
__init__(self, location_str)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from Location: __add__, __repr__, __str__, __sub__, add, bounding, direction_and_index, end, findseqname, findseqname_3prime, findside, five_prime, intersection, length, reorient, reverse, start, sublocation, three_prime, three_prime_range

Inherited from Location (private): _joinstr

Inherited from list: __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from Location: direction2index

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, location_str)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns: new list
Overrides: object.__init__
(inherited documentation)