File: README

package info (click to toggle)
cgview 0.0.20100111-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,432 kB
  • sloc: xml: 17,033; java: 11,430; perl: 2,991; sh: 20; makefile: 17
file content (284 lines) | stat: -rw-r--r-- 12,255 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
cgview_xml_builder.pl
This script requires bioperl-1.4 or newer. 

This script accepts a variety of input files pertaining to microbial
genomes and generates an XML file for the CGView genome drawing
program. There are several command line options for specifying which
input files should be used, and for controlling which features should
be drawn.

The CGView software is available at:
http://bioinformatics.org/cgview/download.html

Stothard P, Wishart DS. Circular genome visualization and exploration
using CGView. Bioinformatics. 21:537-539.

To create a simple map, try the following:
------------------------------------------

perl cgview_xml_builder.pl -sequence sample_input/R_denitrificans.gbk -output R_denitrificans.xml -tick_density 0.7

java -jar -Xmx1500m ../cgview.jar -i R_denitrificans.xml -o R_denitrificans.png -f png

To create a more complex map, try the following:
------------------------------------------------

perl cgview_xml_builder.pl -sequence sample_input/R_denitrificans.gbk -output R_denitrificans_b.xml -orfs T -at_content T -at_skew T -genes sample_input/R_denitrificans.cogs

java -jar -Xmx1500m ../cgview.jar -i R_denitrificans_b.xml -o R_denitrificans_b.png -f png


Note:
-----
There are numerous options for displaying additional information on
the maps created using this script. These options are described in
detail below.

If CGView runs out of memory (usually when an x-large map is drawn),
increase the memory available to Java using '-Xmx' option. For
example, try '-Xmx2000m'

To see other examples, run the test.sh script. It may take more than
an hour for all the examples to be created.

To create smoother base composition plots, specify a larger sliding
window value using the '-window' option in cgview_xml_builder.pl

If the base composition plots appear to be comprised of lines, specify
a smaller step value using the '-step' option in cgview_xml_builder.pl

To reduce the number of tick marks, specify a smaller tick density
value using the '-tick_density' option in cgview_xml_builder.pl


Required command line parameters:
---------------------------------

-sequence - The microbial genome sequence in FASTA, EMBL, or GenBank
format. [File]. Required.

-output - The CGView XML file to create. [File]. Required.

Optional command line parameters:
---------------------------------
#######Open reading frame options:
#######---------------------------

-reading_frames - Whether the positions of start and stop codons
should be drawn. [T/F]. Default is F. Optional.

-orfs - Whether open reading frames (ORFs) should be drawn, with each
reading frame (1, 2, 3, -1, -2, -3) represented by a separate
ring. [T/F]. Default is F. Optional.

-combined_orfs - Whether open reading frames (ORFs) should be drawn,
with each strand (forward, reverse) represented by a separate
ring. [T/F]. Default is F. Optional.

-orf_size - The minimum length of ORFs (in codons) to show when using
the '-orfs' or '-combined_orfs' options. [Integer]. Default is
100. Optional.

-starts - The start codons to use when plotting open reading frames
or stop and start codons. [String]. The default value is
'atg|ttg|att|gtg|ctg'. Optional.

-stops - The stop codons to use when plotting open reading frames or
stop and start codons. [String]. The default value is
'taa|tag|tga'. Optional.

#######Base composition plot options:
#######------------------------------

-gc_content - Whether GC content should be shown. [T/F]. Default is
T. Optional.

-gc_skew - Whether GC skew should be shown. [T/F]. Default is
F. Optional.

-at_content - Whether AT content should be shown. [T/F]. Default is
F. Optional.

-at_skew - Whether AT skew should be shown. [T/F]. Default is
F. Optional.

-average - Whether the GC, GC skew, AT, and AT skew plots should show
the deviation of each value from the average for the entire
genome. The default method of plotting shows each value as
calculated. Specifying "-average" allows plots to better show regions
that differ from the rest of the genome, but the results cannot be
easily compared between genomes. [T/F]. Default is T. Optional.

-scale - Whether the GC, GC skew, AT, and AT skew plots should be
scaled to fill the available Y-axis space on the map. This scaling
allows differences to be observed more easily, but the results cannot
be easily compared between genomes. [T/F]. Default is T. Optional.

-step - The step value to use when generating the GC, GC skew, AT,
and AT skew plots. This value should be decreased (to a minimum of 1)
if in the final map the lines comprising the plots can be
seen. [Integer]. Default is to let program choose step
value. Optional.

-window - The size of the sliding window for base composition
plots. Using a larger window size gives smoother graphs, but may hide
details. [Integer]. Default is to let program choose step
value. Optional.

#######Map appearance options:
#######------------------------------

-size - The size of the map. [small/medium/large/x-large]. Default is
medium. Optional.

-linear - Whether this genome is linear. Linear genomes are drawn as
a circle with a line drawn between the start and end of the
sequence. [T/F]. Default is to read this setting from the GenBank or
EMBL file, if available, otherwise the value is set to F. Optional.

-tick_density - The density of the tick marks on the map. Use a
smaller value to make the ticks less dense. [Real between 0 and
1]. Default is 0.5.

-title - A title for the sequence, to appear on the
map. [String]. Default is to obtain a title from the input sequence
file (for FASTA, GenBank, and EMBL input). Optional.

-details - Whether a sequence information legend should be
drawn. [T/F]. Default is T. Optional.

-legend - Whether a feature legend should be drawn. [T/F]. Default is
T. Optional.

-parse_reading_frame - Whether BLAST results should be split into
separate feature rings on the map, based on the reading frame and
strand of the query. Requires specially formatted BLAST
results. [T/F]. Default is F. Optional.

-show_queries - Whether faint boxes should be drawn to indicate the
positions of the BLAST queries relative to the genome
sequence. [T/F]. Default is F. Optional.

-condensed - Whether thin feature rings should be used regardless of
the size of the map. This option may be useful when numerous feature
rings are drawn. [T/F]. Default is F. Optional.

-feature_labels - Whether feature labels read from the GenBank or
EMBL file should be drawn. [T/F]. Default is F. Optional.

-gene_labels - Whether labels read using the '-genes' or
'-expression' option should be drawn. [T/F]. Default is F. Optional.

-hit_labels - Whether labels for BLAST hits read using the '-blast'
option should be drawn. [T/F]. Default is F. Optional.

-orf_labels - Whether labels for ORFs that are drawn using the
'-orfs' or '-combined_orfs' should be shown. [T/F]. Default is
F. Optional.

-gene_decoration - Whether genes should be drawn as an arc or as an
arrow. [String]. Default is 'arrow'.

-global_label - Controls how drawing a zoomed map affects labels. Set
to T to always show labels, F to always show no labels, or 'auto' to
show labels when a zoomed map is drawn. When set to F, no labels are
shown, regardless of the other label settings (-feature_labels,
-gene_labels, -hit_labels, and -orf_labels). When set to T, labels are
shown for those label settings that are set to T. When set to auto,
labels are shown for those label settings that are T only when a
zoomed map is drawn. [T/F/auto]. Default is T.

-use_opacity - Whether BLAST hits should be drawn with partial opacity,
so that overlapping hits can be visualized. [T/F]. Default is F.

-show_sequence_features - Whether to draw features contained in the
supplied '-sequence' file, if it is a GenBank or EMBL
file. [T/F]. Default is T.

-draw_divider_rings - Whether to draw divider rings between feature
 rings. [T/F]. Default is F.

#######Data source options:
#######------------------------------

-genes - One or more files containing gene position information for
the genes in the genome. The file should be tab-delimited or
comma-delimited and should have the following column titles, in the
following order: 'seqname', 'source', 'feature', 'start', 'end',
'score', 'strand', 'frame'. The first line in the file must be the
column titles. For a given entry, 'seqname' should be the name of the
gene, 'feature' should be the type of gene (CDS, rRNA, tRNA, other) or
the single letter COG category (J for example). 'start' and 'end'
should be integers between 1 and the length of the sequence, and the
'start' value should be less than or equal to the 'end' regardless of
the 'strand' value. The 'strand' value should be '+' for the forward
strand and '-' for the reverse strand. All other values can be given
as '.' or left blank, since they are ignored. These column titles are
based on the specification of the GFF file format. If 'start' and
'end' values are not supplied, but a 'seqname' is given, this script
will attempt to get the 'start' and 'end' values from the sequence
file. [Files]. Optional. Multiple files can be supplied using the
genes option, as in the following example:

perl cgview_xml_builder.pl -sequence sample_input/R_denitrificans.gbk -output R_denitrificans.xml -tick_density 0.7 -genes file1.txt file2.txt

See http://www.sanger.ac.uk/Software/formats/GFF/ for more information
on the GFF format.

-analysis - One or more files containing gene expression information
for the genes in the genome. The file should be tab-delimited or
comma-delimited and should have the following column titles, in the
following order: 'seqname', 'source', 'feature', 'start', 'end',
'score', 'strand', 'frame'. The first line in the file must be the
column titles. For a given entry, only the 'start', 'end', 'strand',
and 'score' values are required. 'start' and 'end' should be integers
between 1 and the length of the sequence, and the 'start' value should
be less than or equal to the 'end' regardless of the 'strand'
value. The 'strand' value should be '+' for the forward strand and '-'
for the reverse strand. The 'score' value should be a real
number, positive or negative. The other values can be given as '.' or
left blank. These column titles are based on the specification of the
GFF file format. If 'start' and 'end' values are not supplied, but a
'seqname' is given, this script will attempt to get the 'start' and
'end' values from the sequence file. [Files]. Optional. Multiple files
can be supplied using the analysis option, as in the following example:

perl cgview_xml_builder.pl -sequence sample_input/R_denitrificans.gbk -output R_denitrificans.xml -tick_density 0.7 -analysis file1.txt file2.txt

See http://www.sanger.ac.uk/Software/formats/GFF/ for more information
on the GFF format.

-blast - One or more files of BLAST results to display. This option
is used to display BLAST results from the local_blast_client.pl and
remote_blast_client.pl scripts. These are available at:
http://www.ualberta.ca/~stothard/software.html. When using the above
scripts, the query should be split into multiple smaller sequences,
using one of the following scripts: get_orfs.pl, get_cds.pl, or
sequence_to_multi_fasta.pl. These are also available at the above
URL. The file containing the multiple sequences is then BLASTed using
local_blast_client.pl or remote_blast_client.pl. The BLAST results files
can be passed to cgview_xml_builder using this option. The percent
identity of each hit is plotted. [Files]. Optional. Multiple files can
be supplied using the blast option, as in the following example:

perl cgview_xml_builder.pl -sequence sample_input/R_denitrificans.gbk -output R_denitrificans.xml -tick_density 0.7 -blast file1.txt file2.txt

#######Other options:
#######------------------------------

-verbose - Whether program progress should be written to standard
output. [T/F]. Default is T. Optional.

-log - A log file for recording progress and error
messages. [File]. Default is to not write a log file.

Exit status:
------------

If the script encounters an error it exits with a status of 1. If no
error is encountered the script exits with a status of 0 upon
completing.

Written by Paul Stothard, University of Alberta

stothard@ualberta.ca