write_circos_links: write_circos_links

Description Usage Arguments Value Author(s) Examples

View source: R/write_circos_links.R

Description

A function that takes a data frame in the format of those returned by the 'make_circos_links' function, and writes a "links" file for Circos plotting

Usage

1
2
write_circos_links(df, include_colors = FALSE, file_name = "links.txt",
  file_path = NULL)

Arguments

df

A data frame in the format of those returned by the 'make_circos_links' function

include_colors

Include colors generated by the 'color_circos_links' function in the write file

file_name

The desired file name. Defaults to links.txt in the current working directory

file_path

The desired file path destination folder. Defaults to NULL

Value

Writes a Circos-compatible links file to the desired directory

Author(s)

Matthew Woodruff, Emory University

Examples

1
2
3
4
5
6
df <- data.frame(lin_id = c(1,2), chr1 = c(1,1), band1 = c(1,1),
chr1_start = c(1,5), chr1_end = c(5,8),
n1 = c(5,3), chr2 = c(1,2), band2 = c(2,1),
chr2_start = c(8,1), chr2_end = c(13,5), n2 = c(5,5))

write_circos_links(df = df, file_name = "links.txt", file_path = tempdir())

SanzCircos documentation built on May 1, 2019, 7:55 p.m.