Trees | Indices | Help |
---|
|
object --+ | PrintFormat
PrintFormat allow the printing of results of restriction analysis.
|
|||
new PrintFormat Instance |
|
||
print the results as specified |
|
||
|
|||
string |
|
||
string |
|
||
string |
|
||
string |
|
||
string |
|
||
string |
|
||
string |
|
||
string |
|
||
string |
|
||
string |
|
||
Inherited from |
|
|||
ConsoleWidth = 80
|
|||
NameWidth = 10
|
|||
MaxSize = 6
|
|||
Cmodulo = ConsoleWidth % NameWidth
|
|||
PrefWidth = ConsoleWidth-Cmodulo
|
|||
Indent = 4
|
|||
linesize = PrefWidth-NameWidth
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Valid format are : 'list' -> alphabetical order 'number' -> number of sites in the sequence 'map' -> a map representation of the sequence with the sites. If you want more flexibility over-ride the virtual method make_format.
|
PF.print_that(dct, [title[, s1]]) -> Print dct nicely formatted. dct is a dictionary as returned by a RestrictionBatch.search() title is the title of the map. It must be a formated string, i.e. you must include the line break. s1 is the title separating the list of enzymes that have sites from those without sites. s1 must be a formatted string as well. The format of print_that is a list. |
Virtual method. Here to be pointed to one of the _make_* methods. You can as well create a new method and point make_format to it.
|
return a string of form : title. enzyme1 : position1, position2. enzyme2 : position1, position2, position3. ls is a list of cutting enzymes. title is the title. nc is a list of non cutting enzymes. s1 is the sentence before the non cutting enzymes.
|
return a string of form : title. enzyme1, position | AAAAAAAAAAAAAAAAAAAAA... ||||||||||||||||||||| TTTTTTTTTTTTTTTTTTTTT... ls is a list of cutting enzymes. title is the title. nc is a list of non cutting enzymes. s1 is the sentence before the non cutting enzymes.
|
title. enzyme which cut 1 time : enzyme1 : position1. enzyme which cut 2 times : enzyme2 : position1, position2. ... ls is a list of cutting enzymes. title is the title. nc is a list of non cutting enzymes. s1 is the sentence before the non cutting enzymes.
|
return a formatted string of the non cutting enzymes. ls is a list of cutting enzymes -> will not be used. Here for compatibility with make_format. title is the title. nc is a list of non cutting enzymes. s1 is the sentence before the non cutting enzymes.
|
return a formatted string of the non cutting enzymes. nc is a list of non cutting enzymes. s1 is the sentence before the non cutting enzymes.
|
return a string of form : title. enzyme1 : position1, position2. enzyme2 : position1, position2, position3. ... ls is a list of results. title is a string. Non cutting enzymes are not included.
|
return a string of form : title. enzyme which cut 1 time : enzyme1 : position1. enzyme which cut 2 times : enzyme2 : position1, position2. ... ls is a list of results. title is a string. Non cutting enzymes are not included.
|
return a string of form : title. enzyme1, position | AAAAAAAAAAAAAAAAAAAAA... ||||||||||||||||||||| TTTTTTTTTTTTTTTTTTTTT... ls is a list of results. title is a string. Non cutting enzymes are not included.
|
ls is a list of tuple (string, [int, int]). into is a string to which the formatted ls will be added. Format ls as a string of lines : The form is : enzyme1 : position1. enzyme2 : position2, position3. then add the formatted ls to tot return tot.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Sep 15 09:25:00 2008 | http://epydoc.sourceforge.net |