genometracks | R Documentation |
Plot genome tracks for NGS data, resembling GBrowse/JBrowse style. Supporting coverage data in bigWig format from RNA-seq, sRNA-seq, BS-seq, ChIP-seq, RIP-seq, GRO-seq, NET-seq, DNase-seq, MNase-seq, ATAC-seq, SHAPE-seq etc. Annotation should be provided in GTF format. Some codes refers to https://github.com/PoisonAlien/trackplot and genomemodel
package with some major modifications. Requires bedtools
and bwtool
on Linux.
genometracks(
bed_file,
track_conf,
gene_model,
ann_region = NULL,
ann_color = "goldenrod1",
out_format = "png",
out_dir = "out"
)
bed_file |
BED file containing locus to plot. For each line, TAB-delimited information should containing: <chr>, <start>, <end>, <locus_name>. |
track_conf |
configuration file containing track info. For each line, TAB-delimited information should containing: <track_name>, <path_to_track_file>, <y_min>, <y_max>, <color>, <group>, without header. |
gene_model |
BED file containing all elements of gene and TE model, generated by |
ann_region |
BED file of annotation regions. If not provided, no annotation will be added. For each line, TAB-delimited information should containing: <chr>, <start>, <end>, <annotation_name>. <annotation_name> could be empty but the last TAB should be kept. |
ann_color |
color of annotated regions |
out_format |
format of output figures, one of "png" and "pdf" |
out_dir |
path to output directory, create it if not exist |
Yujie Liu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.