Changeset 294
- Timestamp:
- 02/01/08 01:20:00 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cartwheel-server/website/canal/motif/__init__.py
r289 r294 1 1 """ 2 2 Per-leaf-folder motif handling. 3 4 TODO: 5 6 - batch import 7 - explicit color, rgb from color wheel? 8 - add formats - clusterbuster?? 9 http://www.benoslab.pitt.edu/stamp/help.html#input 10 11 to test: 12 13 base 0 should not exist! 14 display in rows vs display all together (checkbox for image display) 15 notes!! on edit page 16 allow choice of AT/GC for statistics 17 test list o' sites / list o' short sequences 18 palindromicize 19 enter matrix by hand; formats clusterbuster? 3 20 """ 4 21 … … 109 126 notes = motif.notes.split("\n") 110 127 for n in notes: 111 output.write('%% notes=%s ' % (n,))128 output.write('%% notes=%s\n' % (n,)) 112 129 113 130 if motif.motif_type == 'IUPAC': 114 131 output.write('%% IUPAC\n%% mismatches=%d\n' % (motif.mismatches,)) 115 output.write('%s ' % (motif.motif,))132 output.write('%s\n' % (motif.motif,)) 116 133 117 134 elif motif.motif_type == 'PWM': 118 output.write('% %PWM from sites\n')135 output.write('% PWM from sites\n') 119 136 output.write('%% threshold=%g\n' % (motif.threshold,)) 137 output.write('%% palindromic=%s\n' % (motif.palindromic,)) 120 138 output.write('%s\n' % (motif.source_motifs,)) 139 140 elif motif.motif_type == 'RawPWM': 141 output.write('% Imported PWM\n') 142 output.write('%% threshold=%g\n' % (motif.threshold,)) 143 output.write('%% format=%s\n' % (motif.format,)) 144 output.write('%s\n' % (motif.matrix,)) 145 121 146 else: 122 147 raise Exception("unknown motif type! %s" % (motif.motif_type,)) trunk/cartwheel-server/website/canal/motif/pages.ptl
r289 r294 108 108 """ 109 109 <b>Other actions:</b> <ul> 110 <li> <a href="batch_export">export motif sto a text file</a>111 <li> <a href="batch_import">import motifs from a text file</a>110 <li> <a href="batch_export">export motif library to a text file</a> 111 <!-- <li> <a href="batch_import">import motifs from a text file</a> --> 112 112 <li> <a href="set_DNA_bias">set DNA bias (AT/GC content) for motif statistics calculations</a> 113 113 </ul>
