Giter VIP home page Giter VIP logo

gtrellis's Introduction

Build Status codecov bioc bioc bioc

Make Genome Level Trellis Graph

Genome level Trellis graph visualizes genomic data conditioned by genomic categories (e.g. chromosomes). For each genomic category, multiple dimensional data which are represented as tracks describe different features from different aspects. This package provides high flexibility to arrange genomic categories and to add self-defined graphics in the plot.

Citation

Zuguang Gu, Roland Eils and Matthias Schlesner. gtrellis: an R/Bioconductor package for making genome-level Trellis graphics, 2016. BMC Bioinformatics.

Install

gtrellis is available on Bioconductor, you can install it by:

if (!requireNamespace("BiocManager", quietly=TRUE))
    install.packages("BiocManager")
BiocManager::install("gtrellis") 

If you want the latest version, install it directly from GitHub:

library(devtools)
install_github("jokergoo/gtrellis")

Usage

Basic usage is:

library(gtrellis)

bed = circlize::generateRandomBed()
gtrellis_layout(track_ylim = range(bed[[4]]))
add_track(bed, panel.fun = function(bed) {
    x = (bed[[2]] + bed[[3]]) / 2
    y = bed[[4]]
    grid.points(x, y, pch = 16, size = unit(1, "mm"))
})

There are several tracks with pre-defined graphics:

  • add_points_track()
  • add_lines_track()
  • add_rect_track()
  • add_segments_track()
  • add_heatmap_track()

Layout

gtrellis supports several types of layouts:

One row layout:

image

Multiple row layout that chromosomes with similar length are arranged in a same column:

image

Chromosomes in a same row are arranged compactly to the left:

image

For each chromosome, multiple tracks are supported:

image

Example

Example figures are:

image

1

4

5

6

image

image

License

MIT @ Zuguang Gu

gtrellis's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.