root/galaxy-central/eggs/bx_python-0.5.0_dev_f74aec067563-py2.6-macosx-10.6-universal-ucs2.egg/EGG-INFO/scripts/maf_shuffle_columns.py

リビジョン 3, 0.6 KB (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1#!/usr/bin/python2.6
2
3"""
4Randomly shuffle the columns of each block of a maf file. Note that this does
5not change any other features of the maf block, thus the text of each row no
6longer will match the sequence refered to by the other row attributes!
7
8usage: %prog < maf > maf
9"""
10
11import psyco_full
12
13import sys
14
15import sys
16from bx import align
17
18def __main__():
19
20    maf_reader = align.maf.Reader( sys.stdin )
21    maf_writer = align.maf.Writer( sys.stdout )
22
23    for m in maf_reader:
24   
25        align.shuffle_columns( m )
26
27        maf_writer.write( m )
28
29if __name__ == "__main__": __main__()
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。