circos_karyotype | R Documentation |
This function tries to save me from having to get the lengths of arcs for bacterial chromosomes manually correct, and writes them as a circos compatible karyotype file. The outfile parameter was chosen to match the configuration directive outlined in circos_prefix(), however that will need to be changed in order for this to work in variable conditions. Next time I make one of these graphs I will do that I suspect. In addition, this currently only understands how to write bacterial chromosomes, that will likely be fixed when I am asked to write out a L.major karyotype. These defaults were chosen because I have a chromosome of this length that is correct.
circos_karyotype(
cfg,
segments = 6,
color = "white",
fasta = NULL,
lengths = NULL,
chromosomes = NULL
)
cfg |
Result from circos_prefix(), contains a bunch of useful things. |
segments |
How many segments to cut the chromosome into? |
color |
Color segments of the chromosomal arc? |
fasta |
Fasta file to use to create the karyotype. |
lengths |
If no sequence file is provided, use a named numeric vector to provide them. |
chromosomes |
Force the chromosome names if the annotations are malformed for some reason. |
The output filename.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.