Skip to content

Commit bb86509

Browse files
committed
Added NEWS file. More specific imports and exports. Added example to addlegend.
1 parent e9514e1 commit bb86509

File tree

6 files changed

+60
-35
lines changed

6 files changed

+60
-35
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: Sushi
22
Type: Package
33
Title: Tools for visualizing genomics data
44
Description: Flexible, quantitative, and integrative genomic visualizations for publication-quality multi-panel figures
5-
Version: 0.99.0
5+
Version: 0.99.1
66
Date: 2014-02-17
77
Author: Douglas H Phanstiel <[email protected]>
88
Maintainer: Douglas H Phanstiel <[email protected]>

NAMESPACE

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
exportPattern("^[[:alpha:]]+")
21

3-
import(biomaRt)
4-
import(zoo)
2+
importFrom(biomaRt, getBM, useMart)
3+
importFrom(graphics, abline, arrows, axis, curve, hist, mtext, par,
4+
plot, points, polygon, rect, segments, text)
5+
importFrom(grDevices, col2rgb, colorRampPalette, rgb, topo.colors)
6+
importFrom(zoo, rollapply)
7+
8+
export(addlegend ,labelgenome ,labelplot ,maptocolors ,
9+
maptolwd ,opaque ,plotBed ,plotBedgraph ,plotBedpe ,
10+
plotGenes ,plotHic ,plotManhattan ,SushiColors ,
11+
zoombox ,zoomsregion)
12+
13+

NEWS.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Sushi News
2+
==========
3+
4+
CHANGES IN R 0.99.1:
5+
6+
* Made package lighter by adding more specific imports and exports
7+
8+
* added examples for all exported functions
9+
10+
Sushi
11+
=====
12+
13+
Package: Sushi
14+
Title: Tools for visualizing genomics data
15+
Description: Flexible, quantitative, and integrative genomic visualizations for publication-quality multi-panel figures
16+
Author: Douglas H Phanstiel <[email protected]>
17+
Maintainer: Douglas H Phanstiel <[email protected]>
18+
biocViews: DataRepresentation, Visualization, Genetics, Sequencing, Infrastructure,
19+
License: GPL (>= 2)
20+
Depends: R (>= 2.10), zoo,biomaRt

R/addlegend.R

+14-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,20 @@
2020
#' @param title.font font type of legend title
2121
#' @param title.cex font size of legned text
2222
#' @export
23-
23+
#' @examples
24+
#'
25+
#' data(Sushi_HiC.matrix)
26+
#'
27+
#' chrom = "chr11"
28+
#' chromstart = 500000
29+
#' chromend = 5050000
30+
#'
31+
#' phic = plotHic(Sushi_HiC.matrix,chrom,chromstart,chromend,max_y = 20,zrange=c(0,28),palette = topo.colors,flip=FALSE)
32+
#'
33+
#' labelgenome(chrom,chromstart,chromend,side=1,scipen=20,n=4,scale="Mb",edgeblankfraction=0.20,line=.18,chromline=.5,scaleline=0.5)
34+
#'
35+
#' addlegend(phic[[1]],palette=phic[[2]],title="score",side="right",bottominset=0.4,topinset=0,xoffset=-.035,labelside="left",width=0.025,title.offset=0.035)
36+
#'
2437
addlegend <-
2538
function(range,title="",labels.digits=1,palette=topo.colors,side="right",labelside="left",
2639
xoffset=0.1,width=0.05,bottominset=0.025,topinset=0.025,tick.num = 5,tick.length=0.01,

README.md

-30
This file was deleted.

man/addlegend.Rd

+13
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,17 @@ addlegend(range, title = "", labels.digits = 1, palette = topo.colors,
5252
This function adds a legend to Sushi plots that have a
5353
colorby function (e.g. plotHic, plotGenes, and plotBedpe)
5454
}
55+
\examples{
56+
data(Sushi_HiC.matrix)
57+
58+
chrom = "chr11"
59+
chromstart = 500000
60+
chromend = 5050000
61+
62+
phic = plotHic(Sushi_HiC.matrix,chrom,chromstart,chromend,max_y = 20,zrange=c(0,28),palette = topo.colors,flip=FALSE)
63+
64+
labelgenome(chrom,chromstart,chromend,side=1,scipen=20,n=4,scale="Mb",edgeblankfraction=0.20,line=.18,chromline=.5,scaleline=0.5)
65+
66+
addlegend(phic[[1]],palette=phic[[2]],title="score",side="right",bottominset=0.4,topinset=0,xoffset=-.035,labelside="left",width=0.025,title.offset=0.035)
67+
}
5568

0 commit comments

Comments
 (0)