| 1 |
Generating karyotype files from UCSC assembly tables |
| 2 |
---------------------------------------------------- |
| 3 |
|
| 4 |
The parse.assembly script parses an Assembly table to create a |
| 5 |
karyotype file for Circos. The script will not work on a Chromosome |
| 6 |
Band file (use ../parse.karyotype for this). |
| 7 |
|
| 8 |
parse.assembly bostau7.txt bt > karyotype.cow.txt |
| 9 |
|
| 10 |
The prefix, e.g. bt, will be used to label the chromosomes (e.g. bt1, |
| 11 |
bt2 ... ) By default, "chr" is used. It is customary for Circos to use |
| 12 |
the species acronym for chromosome prefixes, instead of the generic |
| 13 |
'chr'. Using a different prefix for each species avoids chromosome |
| 14 |
name collisions (e.g. human and mouse chromosomes 1 are distinguished |
| 15 |
as hs1 and mm1). |
| 16 |
|
| 17 |
To download data tables, see http://genome.ucsc.edu/cgi-bin/hgTables |
| 18 |
|
| 19 |
|
| 20 |
Unanchored segments |
| 21 |
------------------- |
| 22 |
|
| 23 |
It's likely that your assembly will contain many unanchored |
| 24 |
chromosomes (chrUn_*). You probably want to remove these from the |
| 25 |
karytoype file. To do this, use grep -v to remove lines with PREFIX+un in them |
| 26 |
|
| 27 |
parse.assembly bostau7.txt bt | grep -v btun > karyotype.cow.txt |
| 28 |
|
| 29 |
|
| 30 |
Chromosome colors |
| 31 |
------------------- |
| 32 |
|
| 33 |
The last field in each line of the karyotype file is the chromosome |
| 34 |
color. If you set 'fill' in the <ideogram> block, this is the color |
| 35 |
that will be used to tint the ideogram in the figure. |
| 36 |
|
| 37 |
The default human chromosome color scheme defines colors |
| 38 |
|
| 39 |
chr1 ... chr22, chrx, chry, chrm, chrun |
| 40 |
|
| 41 |
and is used by the UCSC genome browser. These colors are defined in |
| 42 |
|
| 43 |
etc/colors.ucsc.conf |
| 44 |
|
| 45 |
along with colors for cytogenetic bands, named after the stain |
| 46 |
properties (e.g. gpos100, gpos75, gneg, gvar, acen, stalk, etc). |
| 47 |
|
| 48 |
Depending on the name and number of your chromosome, your karyotype |
| 49 |
file could include colors that are not defined (e.g. chr29). It is up |
| 50 |
to you to define these. |
| 51 |
|
| 52 |
You can add new colors to circos by including another <colors> block |
| 53 |
with your color definitions |
| 54 |
|
| 55 |
# default color definitions |
| 56 |
<<include etc/colors_fonts_patterns.conf>> |
| 57 |
|
| 58 |
# add more colors |
| 59 |
<colors> |
| 60 |
... |
| 61 |
chr28 = 110,110,110 |
| 62 |
chr29 = 100,100,100 |
| 63 |
... |
| 64 |
</colors> |