Description Usage Arguments Value Author(s) Examples
View source: R/write_circos_histogram.R
A function that takes a data.frame, and creates a histogram.txt file for input into circos
1 2 | write_circos_histogram(df, chromosome_grouping, start_position, end_position,
values, file_name = "histogram.txt", file_path = NULL)
|
df |
A database to draw Circos data from |
chromosome_grouping |
A column defining the circos chromosomes. Passed as column index or "column name" |
start_position |
A column defining the start positions of the desired value |
end_position |
A column defining the end positions of the desired value |
values |
The value to be plotted |
file_name |
The desired file name. Defaults to histogram.txt |
file_path |
The desired file path destination folder. Defaults to NULL |
Writes a Circos-compatible histogram file to the desired directory
Matthew Woodruff, Emory University
1 2 3 4 5 6 | df <- data.frame(chrom = c(1,1,2,2), start = c(1, 5, 1, 8),
end = c(5, 10, 8, 13), plotting_value = c(5, 78, 9, 2))
write_circos_histogram(df = df, chromosome_grouping = "chrom",
start_position = "start", end_position = "end",
value = "plotting_value", file_name = "histogram.txt", file_path = tempdir())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.