Package obitools :: Package location :: Class Location
[hide private]
[frames] | no frames]

Class Location

source code


Define a location on a sequence.

Instance Methods [hide private]
 
extractSequence(self, sequence)
Extract subsequence corresponding to a Location.
source code
 
isDirect(self) source code
bool
isSimple(self)
Indicate if a location is composed of a single continuous region or is composed by the junction of several locations by the join operator.
source code
 
isFullLength(self) source code
bool
needNucleic(self)
If a location contains a complement operator, it can be use only on nucleic sequence.
source code
 
getGloc(self) source code
 
shift(self, s) source code
 
getBegin(self) source code
 
getEnd(self) source code
 
getFivePrime(self) source code
 
getThreePrime(self) source code
 
__abs__(self) source code
 
__cmp__(self, y) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  begin
beginning position of the location
  end
ending position of the location
  fivePrime
5' potisition of the location
  threePrime
3' potisition of the location

Inherited from object: __class__

Method Details [hide private]

extractSequence(self, sequence)

source code 

Extract subsequence corresponding to a Location.

Parameters:
  • sequence (BioSequence or str)

isSimple(self)

source code 

Indicate if a location is composed of a single continuous region or is composed by the junction of several locations by the join operator.

Returns: bool
True if the location is composed of a single continuous region.

needNucleic(self)

source code 

If a location contains a complement operator, it can be use only on nucleic sequence.

Returns: bool
True if location contains a complement operator

Property Details [hide private]

begin

beginning position of the location

Get Method:
getBegin(self)

end

ending position of the location

Get Method:
getEnd(self)

fivePrime

5' potisition of the location

Get Method:
getFivePrime(self)

threePrime

3' potisition of the location

Get Method:
getThreePrime(self)