| 1 |
M.A.Q. Viewer |
| 2 |
|
| 3 |
1 ... install |
| 4 |
2 ... zrio |
| 5 |
3 ... maqindex |
| 6 |
4 ... maqindex_socks |
| 7 |
5 ... maqview |
| 8 |
|
| 9 |
1, install maqview |
| 10 |
|
| 11 |
MAQViewer has been successly installed in linux and cygwin. |
| 12 |
$> tar -xzf maqview-XXX.tar.gz |
| 13 |
$> cd maqview |
| 14 |
$> ./autogen.sh |
| 15 |
$> ./configure |
| 16 |
$> make |
| 17 |
|
| 18 |
Or you can try: |
| 19 |
$> cd maqview |
| 20 |
$> make -f Makefile.generic |
| 21 |
|
| 22 |
2, zrio Random Access GZ File |
| 23 |
|
| 24 |
Store points in every span of uncompressed source file, point contains 32k previous context, |
| 25 |
offsets in compressed and uncompressed file. |
| 26 |
|
| 27 |
Usage: ./zrio make | use |
| 28 |
make <gz-file> [<index level>] make index for gz-file,index filename will be <gz-file>.idx |
| 29 |
each level increasing the time for search whist decreasing the size of index |
| 30 |
level: default 1024, 1/1024 of source file |
| 31 |
level: 512, 1/512 of source file |
| 32 |
level: ... |
| 33 |
use <gz-file> <offset>[ <offlen>] use index <gz-file>.idx, exact from offset(source position) to stdout |
| 34 |
|
| 35 |
3, mapindex Make Index for .map File for maq |
| 36 |
|
| 37 |
Uses BTREE index for reads in map-file, it writes an .vm file to store index |
| 38 |
|
| 39 |
Usage: maqindex <-i|-v|-b> [-l level] [-c cns] <in.map> [chr[:begin[-end]] [...]] |
| 40 |
|
| 41 |
Options: -l INT level for indexing [1024] |
| 42 |
-c STR .cns file for this .map file |
| 43 |
-i index the map file |
| 44 |
-v display the alignment in the mapview format |
| 45 |
-b dump in the .map format |
| 46 |
e.g. |
| 47 |
1, $> maqindex -i all.map |
| 48 |
2, $> maqindex -i -c all.cns all.map |
| 49 |
3, $> maqindex -i -c all.cns |
| 50 |
4, $> maqindex -v all.map chrI:1-200 |
| 51 |
|
| 52 |
4, maqindex_socks Distribute MAQ-Data visa Networking |
| 53 |
|
| 54 |
When maq products huge result files, sharing those files among computers is required, |
| 55 |
maqindex_socks may help you. We had used it in our web-site to display alignment of HUMAN |
| 56 |
solexa reads. |
| 57 |
|
| 58 |
Usage: |
| 59 |
Setup Server: ./maqindex_socks -s <port> <map file> [<cns file> [<width> [<height>]]] |
| 60 |
Run Client : ./maqindex_socks -c <host> <port> [<ref_id> <start> <end>] |
| 61 |
|
| 62 |
e.g. |
| 63 |
1, $> maqindex_socks -s 1768 all.map >maqindex_server.log 2>&1 & |
| 64 |
2, $> maqindex_socks -c locahost 1768 chrI 1 200 |
| 65 |
|
| 66 |
5, maqview Viewer For MAQ map File |
| 67 |
|
| 68 |
maqview is based on OpenGL, it requires gl, glx, glu and glut |
| 69 |
|
| 70 |
Usage: maqview [-c cns_file] [-w width:800] [-h height:600] map_file [ref_name:start_pos] |
| 71 |
|
| 72 |
Before uses maqview, you must run zrio and map_index on map-file, e.g. |
| 73 |
./maqindex test.map |
| 74 |
./maqview test.map |
| 75 |
If you have ref seq files named as in map-file, you can put them in working directory |
| 76 |
maqview will automatic treat them as ref seqs, those files must be plain text files contain |
| 77 |
only sequences without any additional format or characters, '\n' is also excluded |
| 78 |
|
| 79 |
|
| 80 |
It supports those keys in window: |
| 81 |
--------------------------------------------------------------------- |
| 82 |
? : Display this help |
| 83 |
<F1> : Draw bases as characters |
| 84 |
<F2> : Draw bases as squares |
| 85 |
<F3> : Draw read as line |
| 86 |
p : Switch to the previous reference sequence |
| 87 |
n : Switch to the next reference sequence |
| 88 |
r : Show/Hide the menu of ref list |
| 89 |
a / h / [LEFT]: Move left by one base |
| 90 |
d / l / [RIGHT]: Move right by one base |
| 91 |
w / k / [UP]: Move view window down |
| 92 |
s / j / [DOWN]: Move view window up |
| 93 |
> : Move to next read |
| 94 |
< : Move to previous read |
| 95 |
g / [HOME]: Goto begin |
| 96 |
G / [END]: Goto end |
| 97 |
u [PAGE UP]: Move left one page |
| 98 |
<space>[PAGE DOWN]: Move right one page |
| 99 |
+ : Zoom in |
| 100 |
- : Zoom out |
| 101 |
<ctrl> + : Duplicate current view |
| 102 |
<ctrl> - : Close current view |
| 103 |
c : Input command |
| 104 |
0 : Restore default scale |
| 105 |
q : Toggle display/undisplay mapping qualities |
| 106 |
e : Toggle display single-end/paired-end mapping qualities |
| 107 |
o : Open a new view file |
| 108 |
<esc> : exit |
| 109 |
hold [SHIFT] : Speed move 100 times |
| 110 |
hold [CTRL] : Speed move 1000 times |
| 111 |
<enter> : Toogle on/off automatic rolling on |
| 112 |
^b : Toogle on/off automatic rolling back |
| 113 |
Enter an integer then press <enter> key to goto the position |
| 114 |
Enter an integer then press other key than <enter> can speed the integer times |
| 115 |
Mouse: |
| 116 |
left button to select; |
| 117 |
middle button temporarily drags the scene; |
| 118 |
right button sets marker |
| 119 |
Mouse: move over an entity to show description |
| 120 |
|
| 121 |
Press <enter> to exit help mode |
| 122 |
--------------------------------------------------------------------- |
| 123 |
|
| 124 |
Command: |
| 125 |
q|exit : close current view(euals <ctrl> -) |
| 126 |
c|clone : clone a copy of current view, and add it in the window |
| 127 |
(equals <ctrl> +) |
| 128 |
b|bind <n> : binding current view to n'th view, n is 1 based |
| 129 |
B|unbind <n> : unbinding |
| 130 |
r|ref <str> : Move view to a new ref |
| 131 |
g|goto <n> : goto a position, 1 based |
| 132 |
s|set : a list of commands |
| 133 |
i|interval <n> : set the interval to n, interval is used in rooling |
| 134 |
s|step <n> : set step to n, step is used in rolling |