Skip to content

Commit 876c3e6

Browse files
committed
-Added README.md
-Added Tips section to Vignette
1 parent 694480d commit 876c3e6

File tree

6 files changed

+42
-8
lines changed

6 files changed

+42
-8
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ 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.2
6-
Date: 2014-02-17
5+
Version: 1.0.1
6+
Date: 2014-05-26
77
Author: Douglas H Phanstiel <[email protected]>
88
Maintainer: Douglas H Phanstiel <[email protected]>
99
biocViews: DataRepresentation, Visualization, Genetics, Sequencing, Infrastructure,

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,17 @@ Detailed usage examples are available in the [Vignette](https://github.com/dphan
1717
## Sushi Installation
1818

1919
1. Install with Bioconductor:
20-
This requires R 3.1 to install
20+
21+
Note: R 3.1 is required for installation via Bioconductor. The newest version of R can be donwloaded at (www.r-project.org/). Installation via Bioconductor also requires libcurl and libxml2 which may not be be standard with some Linux distributions and are available for download at (http://curl.haxx.se/libcurl/ and http://xmlsoft.org/, respectviely.
22+
2123
```
2224
source("http://bioconductor.org/biocLite.R")
2325
biocLite("Sushi")
2426
```
2527

26-
2. Install for previous versions of R >= 2.15:
28+
2. Install for previous versions of R >= 2.10:
2729
```
28-
R CMD INSTALL Sushi_0.99.2.tar.gz
30+
R CMD INSTALL Sushi_1.0.1.tar.gz
2931
```
3032

3133
## Contributors
@@ -35,4 +37,4 @@ R CMD INSTALL Sushi_0.99.2.tar.gz
3537
* Caros Araya
3638

3739
## License
38-
The code is freely available under the
40+
The code is freely available under the GPL (>= 2) license

vignettes/Figure_1.pdf

0 Bytes
Binary file not shown.

vignettes/PaperFigure.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
library('Sushi')
2-
pdfname = "inst/doc/Figure_1.pdf"
2+
pdfname = "vignettes/Figure_1.pdf"
33
Sushi_data = data(package = 'Sushi')
44
data(list = Sushi_data$results[,3])
55
makepdf = TRUE
@@ -452,7 +452,7 @@ chromstart = 72998000
452452
chromend = 73020000
453453

454454
# plot gene structures
455-
plotGenes(Sushi_genes.bed, chrom, chromstart, chromend, maxrows=1, bheight=0.2, plotgenetype="arrow", bentline=FALSE, labeloffset=1, fontsize=1.2)
455+
plotGenes(Sushi_genes.bed, chrom, chromstart, chromend, maxrows=1, bheight=0.15, plotgenetype="arrow", bentline=FALSE, labeloffset=1, fontsize=1.2,arrowlength = 0.01)
456456

457457
# label genome
458458
labelgenome(chrom, chromstart, chromend, n=3, scale="Mb")

vignettes/Sushi.Rnw

+32
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,38 @@ if (file.exists("Rplots.pdf"))
11301130
}
11311131
@
11321132
\end{center}
1133+
1134+
\section{Tips}
1135+
1136+
Other popular file formats such as BAM and GFF are not explicitly supported by Sushi. However, data stored in these formats can be easily converted to BED format using common command line tools such as the \texttt{bedtools} software suite available at \href{https://github.com/arq5x/bedtools2}{https://github.com/arq5x/bedtools2}. Some examples taken from the \texttt{bedtools} are shown below.
1137+
1138+
\vspace{5 mm}
1139+
Convert BAM alignments to BED format.
1140+
1141+
\vspace{2 mm}
1142+
\texttt{bamToBed -i reads.bam > reads.bed}
1143+
1144+
\vspace{5 mm}
1145+
Convert BAM alignments to BED format using edit distance (NM) as the BED \texttt{score}.
1146+
1147+
\vspace{2 mm}
1148+
\texttt{bamToBed -i reads.bam -ed > reads.bed}
1149+
1150+
\vspace{5 mm}
1151+
Convert BAM alignments to BEDPE format.
1152+
1153+
\vspace{2 mm}
1154+
\texttt{bamToBed -i reads.bam -bedpe > reads.bedpe}
1155+
1156+
\vspace{5 mm}
1157+
These BED files can easily be read into R for use with Sushi using the following R command:
1158+
1159+
\begin{center}
1160+
<<fig=FALSE, eval=FALSE ,echo=TRUE>>=
1161+
read.table(file="reads.bed",sep="\t")
1162+
@
1163+
\end{center}
1164+
11331165
\section{Appendix}
11341166

11351167
For illustrative purposes we include a complex figure as published in the accompanying manuscript (Phanstiel, et al.).

vignettes/Sushi.pdf

2.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)