| 1 |
CGView - Circular Genome Viewer |
| 2 |
|
| 3 |
See the following link for full documentation: |
| 4 |
|
| 5 |
http://wishart.biology.ualberta.ca/cgview/ |
| 6 |
|
| 7 |
Copyright (C) 2004 Paul Stothard |
| 8 |
|
| 9 |
Please cite the following paper: |
| 10 |
|
| 11 |
Stothard P, Wishart DS. Circular genome visualization and exploration |
| 12 |
using CGView. Bioinformatics. 21:537-539. |
| 13 |
|
| 14 |
This program is free software; you can redistribute it and/or it under |
| 15 |
the terms of the GNU General Public License as published by the Free |
| 16 |
Software Foundation; either version 2 of the License, or (at your |
| 17 |
option) any later version. |
| 18 |
|
| 19 |
This program is distributed in the hope that it will be useful, but |
| 20 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 |
General Public License for more details. |
| 23 |
|
| 24 |
You should have received a copy of the GNU General Public License |
| 25 |
along with this program; if not, write to the Free Software |
| 26 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 27 |
USA. |
| 28 |
|
| 29 |
Paul Stothard can be reached by email: [email protected] |
| 30 |
|
| 31 |
----------------------------------------------------------- |
| 32 |
To test CGView, switch to the cgview directory. Try the following |
| 33 |
command, which generates a PNG image of the map described in the |
| 34 |
cybercell.xml file: |
| 35 |
|
| •36 |
> cgview -i cybercell.xml -o cybercell.png -f png |
| 37 |
----------------------------------------------------------- |
| 38 |
Running CGView: |
| 39 |
|
| •40 |
usage: cgview [options] |
| 41 |
|
| 42 |
Where the options are: |
| 43 |
|
| 44 |
-A <integer> Specifies the label font size to use. This value |
| 45 |
overrides CGView's default label font size and label font size values |
| 46 |
specified in XML input. |
| 47 |
|
| 48 |
-c <integer> Specifies the base to center on when |
| 49 |
zooming. Optional. Default value is 1. |
| 50 |
|
| 51 |
-D <integer> Specifies the legend font size to use. This value |
| 52 |
overrides CGView's default legend font size and legend font size |
| 53 |
values specified in XML input. |
| 54 |
|
| 55 |
-d <real> A value between 0 and 1 that controls the density of tick |
| 56 |
marks. Use 0 for no tick marks or 1 for the default level of tick |
| 57 |
marks. Optional. Default value is 1. |
| 58 |
|
| 59 |
-E <boolean> Whether or not to include text as vector-based objects in |
| 60 |
SVG output. Optional. Default value is true. |
| 61 |
|
| 62 |
-e <boolean> Whether or not to exclude SVG output when generating a |
| 63 |
series of linked images using the -s option. Optional. Default value |
| 64 |
is false. |
| 65 |
|
| 66 |
-f <format> The format of the output: PNG, JPG, SVG, or |
| 67 |
SVGZ. Optional. Default value is PNG. |
| 68 |
|
| 69 |
-h <file>. HTML file to create. Optional. Default value is null. |
| 70 |
|
| 71 |
-H <integer>. The height of the map. This value overrides any value |
| 72 |
specified in the input file. Optional. Default value is set in the |
| 73 |
input file or by CGView. |
| 74 |
|
| 75 |
-i <file> The input file to parse. Required. |
| 76 |
|
| 77 |
-I <boolean> Whether or not to draw labels on the inside of the |
| 78 |
backbone circle. Optional. Default is to draw labels on the inside |
| 79 |
when a zoomed map is drawn. |
| 80 |
|
| 81 |
-L <integer> Specifies the width of a separate legend to use as the |
| 82 |
legend in HTML output. Optional. Default value is null. If generating |
| 83 |
a linked map series, place a file called legend.png in the includes |
| 84 |
directory that is created. If generating a single HTML file, place a |
| 85 |
file called legend.png into the same directory as the HTML file. When |
| 86 |
the map is rendered, the legend.png image is placed to the right of |
| 87 |
the map. |
| 88 |
|
| 89 |
-o <file> The image file to create. Required, unless -s used to |
| 90 |
specify that an image series is to be written to a directory. An image |
| 91 |
series is made up of PNG and SVG images. |
| 92 |
|
| 93 |
-p <path> The path to the image file in the HTML file created using |
| 94 |
the -h option. Optional. Default is the the value specified using the |
| 95 |
-o option. |
| 96 |
|
| 97 |
-r <boolean> Specifies whether or not legends should be |
| 98 |
hidden. Default value is F. |
| 99 |
|
| 100 |
-R <boolean> Specifies whether or not labels should be hidden. Default |
| 101 |
value is F. |
| 102 |
|
| 103 |
-s <directory> Empty directory to receive an image series. If this |
| 104 |
option is used, a series of zoomed views of the map is generated, and |
| 105 |
values for -c, -f, -h, -o, -p, -u, and -z are |
| 106 |
ignored. Optional. Default value is null. |
| 107 |
|
| 108 |
-S <boolean> Whether or not to reference external stylesheet in HTML |
| 109 |
output. Optional. Default value is false. Set to true automatically |
| 110 |
when -s option is used. |
| 111 |
|
| 112 |
-u <boolean> Whether or not to include calls to the overlib.js |
| 113 |
JavaScript library in HTML image maps for PNG and JPG |
| 114 |
images. Optional. Default value is true. |
| 115 |
|
| 116 |
-D <integer> Specifies the ruler font size to use. This value |
| 117 |
overrides CGView's default ruler font size and ruler font size |
| 118 |
values specified in XML input. |
| 119 |
|
| 120 |
-W <integer>. The width of the map. This value overrides any value |
| 121 |
specified in the input file. Optional. Default value is set in the |
| 122 |
input file or by CGView. |
| 123 |
|
| 124 |
-x <zoom values>. Specifies the zoom values to be used when generating |
| 125 |
a series of linked maps using the -s option. The values are supplied |
| 126 |
as a comma separated list containing no spaces. The first value must |
| 127 |
be 1. Optional. Default value is 1,6,36. |
| 128 |
|
| 129 |
-z <floating point number> The factor to zoom in by. Optional. Default |
| 130 |
value is 1.0. |
| 131 |
|
| 132 |
Examples: |
| 133 |
|
| 134 |
1. The command below will read an XML file called "cybercell.xml", and |
| 135 |
will generate a PNG image file called "my_picture.png". An HTML file |
| 136 |
called "view_image.html" will also be created. This HTML file will |
| 137 |
contain the "my_picture.png" image: |
| 138 |
|
| •139 |
cgview -f png -i cybercell.xml -o my_picture.png -h |
| 140 |
view_image.html |
| 141 |
|
| 142 |
2. The command below will read an XML file called "cybercell.xml", and |
| 143 |
will generate a collection of linked images and HTML pages in the |
| 144 |
directory called "directory_for_series". The complete series can be |
| 145 |
explored by loading the file "index.html", which will be in the |
| 146 |
"directory_for_series" directory. Note that generating an image series |
| 147 |
can take more than an hour. |
| 148 |
|
| •149 |
cgview -i cybercell.xml -s directory_for_series -x true |
| 150 |
|
| 151 |
Note: If you obtain an "Out of Memory" error when drawing a very large |
| 152 |
map, try increasing Java's heap size using the -Xmx option. For |
| 153 |
example, use the command: |
| 154 |
|
| •155 |
java -jar -Xmx500m /usr/share/java/cgview.jar -i cybercell.xml -o cybercell.png -f png |