Skip to content

Commit 9bb4b0b

Browse files
committed
Do battle against knitr and latex pdf templates. I may have won the battle but not the war.
1 parent b4ed37e commit 9bb4b0b

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

vignettes/GENOVA.Rmd

+6-10
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ iPSC [@Krijger2016] | 427.9M | 3.1Gb | 1.9Gb | 1.0Gb | 53.1MB
7272

7373
Several functions rely on centromere-information. You can add this in the form of a BED-like three-column data.frame when constructing the experiment-object ^[Please make sure that the chromosome-names match.]. If not present, the centromeres will be emperically identified by searching for the largest stretch of no coverage on a chromosome.
7474
```{r centromere, cache=F}
75-
centromeres = read.delim('../data/symlinks/hg19_cytobandAcen.bed',
75+
centromeres = read.delim('../data/symlinks/../hg19_cytobandAcen.bed',
7676
sep = '\t',
7777
h = F,
7878
stringsAsFactors = F)
@@ -305,7 +305,7 @@ compartment_matrixplot(
305305
exp2 = Hap1_WAPL_40kb,
306306
CS_discovery = CS_out,
307307
chrom = "chr20", arm = "q",
308-
metric = "obsexp"
308+
metric = "log2obsexp"
309309
)
310310
```
311311

@@ -405,13 +405,11 @@ knitr::kable(
405405
)
406406
```
407407

408-
Moreover, we can use a bigwig (.bw) file to plot a track. For this example, we are using a SMC1 ChIP-seq track from [@Haarhuis2017]. We need the `bigwrig` package, which is easily installed from github using `devtools::install_github()`. The `yMax` argument is handy if you want to compare bigwig-tracks: it lets you set the y-axis maximum.
409-
```{r bigwrig, eval=F, echo = F}
410-
library(devtools)
411-
install_github(repo ='bigwrig', username = 'jayhesselberth')
412-
```
408+
Moreover, we can use a bigwig (.bw) file to plot a track. For this example, we are using a SMC1 ChIP-seq track from [@Haarhuis2017]. We load the bigwig data with the `rtracklayer` package that is available from Bioconductor. The `yMax` argument is handy if you want to compare bigwig-tracks: it lets you set the y-axis maximum.
413409

414410
```{r HMPchip, message=T , fig.cap= "Hi-C matrixplot: ChIPseq. A BED-file of CTCF-sites is plotted at the top and a coverage-track of SMC1 ChIP-seq is plotted beneath this. The symmAnn-option leads to the same tracks being plotted on the left.",cache=F,fig.asp=1, dev = 'png', dpi=300,fig.small = F}
411+
requireNamespace("rtracklayer", quietly = TRUE)
412+
415413
hic_matrixplot(exp1 = Hap1_WT_10kb,
416414
chrom = 'chr7', start = 26.75e6, end=28.5e6,
417415
loops = WT_Loops, # see APA
@@ -442,7 +440,7 @@ hic_matrixplot(exp1 = Hap1_WT_10kb,
442440
# pattern = '^',
443441
# replacement = 'chr')
444442
# martExport$strand = ifelse(martExport$strand == 1, '+',"-") # 1/-1 to +/-
445-
load('../data/symlinks/martExport.Rdata')
443+
load('../data/symlinks/../martExport.Rdata')
446444
```
447445

448446
```{r, echo =F }
@@ -755,8 +753,6 @@ visualise(WT_PE_OUT)
755753

756754
Another way of looking at the PE-SCAn results, is to make a perspective plot. Here, the enrichment is encoded as the z-axis.
757755
```{r pePERS, message=FALSE , fig.cap= "PE-SCAn perspective plot.",cache=F, fig.retina=T}
758-
RES = 40e3 # resolution of the Hi-C
759-
760756
persp(WT_PE_OUT, border = NA,
761757
cex.axis = 0.6, cex.lab = 0.6)
762758
```

vignettes/GENOVA.pdf

-109 KB
Binary file not shown.

0 commit comments

Comments
 (0)