Skip to content

Commit 7a30054

Browse files
committed
fix: formatting issues
1 parent 8465fd8 commit 7a30054

File tree

5 files changed

+23
-50
lines changed

5 files changed

+23
-50
lines changed

DESCRIPTION

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ Authors@R: c(
88
comment = c(ORCID = "0000-0002-3913-153X"))
99
)
1010
Maintainer: Yabing Song <songyb0519@gmail.com>
11-
Description: The goal of 'ggcoverage' is to visualize coverage tracks from
12-
genomics, transcriptomics or proteomics data. It contains functions to
13-
load data from BAM, BigWig, BedGraph, txt, or xlsx files, create
14-
genome/protein coverage plots, and add various annotations including
15-
base and amino acid composition, GC content, copy number variation
16-
(CNV), genes, transcripts, ideograms, peak highlights, HiC contact
17-
maps, contact links and protein features. It is based on and
18-
integrates well with 'ggplot2'.
11+
Description: Visualize coverage tracks from genomics, transcriptomics
12+
or proteomics data. The package contains functions to load data from 'BAM',
13+
'BigWig', 'BedGraph', 'txt', or 'xlsx' files, create genome/protein coverage
14+
plots, and add various annotations including base and amino acid
15+
composition, GC content, copy number variation (CNV), genes, transcripts,
16+
ideograms, peak highlights, HiC contact maps, contact links and protein
17+
features. It is based on and integrates well with 'ggplot2'.
1918
License: MIT + file LICENSE
2019
URL: https://showteeth.github.io/ggcoverage/,
2120
https://github.com/showteeth/ggcoverage
@@ -51,6 +50,7 @@ Suggests:
5150
HiCBricks,
5251
htmltools,
5352
knitr,
53+
openxlsx,
5454
rmarkdown
5555
VignetteBuilder:
5656
knitr

README.Rmd

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,8 @@ THe default color scheme for base annotation is `Clustal-style`, more popular co
446446
nuc_color <- c(
447447
"A" = "#ff2b08", "C" = "#009aff", "G" = "#ffb507", "T" = "#00bc0d"
448448
)
449-
opar <- graphics::par()
450449
451450
# create plot
452-
graphics::par(mar = c(1, 5, 1, 1))
453451
graphics::image(
454452
seq_along(nuc_color),
455453
1,
@@ -468,9 +466,6 @@ graphics::mtext(
468466
las = 1,
469467
side = 2
470468
)
471-
472-
# reset par default
473-
graphics::par(opar)
474469
```
475470

476471
Default color scheme for amino acid annotation is from [Residual colours: a proposal for aminochromography](https://pubmed.ncbi.nlm.nih.gov/9342138/):
@@ -486,7 +481,6 @@ aa_color <- c(
486481
" " = "#FFFFFF"
487482
)
488483
489-
graphics::par(mar = c(1, 5, 1, 1))
490484
graphics::image(
491485
1:5,
492486
1:5,
@@ -506,9 +500,6 @@ graphics::mtext(
506500
las = 1,
507501
side = 2
508502
)
509-
510-
# reset par default
511-
graphics::par(opar)
512503
```
513504

514505
#### Add base and amino acid annotation

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -626,10 +626,8 @@ popular color schemes are available
626626
nuc_color <- c(
627627
"A" = "#ff2b08", "C" = "#009aff", "G" = "#ffb507", "T" = "#00bc0d"
628628
)
629-
opar <- graphics::par()
630629

631630
# create plot
632-
graphics::par(mar = c(1, 5, 1, 1))
633631
graphics::image(
634632
seq_along(nuc_color),
635633
1,
@@ -652,12 +650,6 @@ graphics::mtext(
652650

653651
<img src="man/figures/README-base_color_scheme-1.png" width="100%" style="display: block; margin: auto;" />
654652

655-
``` r
656-
657-
# reset par default
658-
graphics::par(opar)
659-
```
660-
661653
Default color scheme for amino acid annotation is from [Residual
662654
colours: a proposal for
663655
aminochromography](https://pubmed.ncbi.nlm.nih.gov/9342138/):
@@ -673,7 +665,6 @@ aa_color <- c(
673665
" " = "#FFFFFF"
674666
)
675667

676-
graphics::par(mar = c(1, 5, 1, 1))
677668
graphics::image(
678669
1:5,
679670
1:5,
@@ -697,12 +688,6 @@ graphics::mtext(
697688

698689
<img src="man/figures/README-aa_color_scheme-1.png" width="100%" style="display: block; margin: auto;" />
699690

700-
``` r
701-
702-
# reset par default
703-
graphics::par(opar)
704-
```
705-
706691
#### Add base and amino acid annotation
707692

708693
**Use twill to mark position with SNV**:

cran-comments.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# Resubmission
22

3-
Update for current submission:
3+
This package has been submitted previously (2023, v0.7.1) and was removed
4+
from CRAN due to several issues, which have been addressed now.
5+
6+
## Issues
7+
8+
### Update for current submission:
9+
10+
- fixed DESCRIPTION abstract, added quotation marks for package names etc
11+
- examples that are running >5 sec were wrapped in `/donttest{}` instead of `/dontrun{}`
12+
- example in `ggcoverage.Rd` does not contain out-commented code as stated by the reviewer
13+
- changing of graphical parameters using `par(mfrow=c(2,2))` were removed from vignette
14+
- however the package does not contain any `par()` statement in any of the
15+
functions (supposedly `R/geom_base.R`) as stated by the reviewer
16+
17+
### Previously fixed issues
418

519
- We have substantially removed the size of test files for the examples,
620
reducing overall package size from ~30 Mb to only ~6 Mb. A further reduction
@@ -13,14 +27,6 @@ on the test environment -- this package never exceeds the threshold when
1327
tested locally on a 3 year old average laptop, or in 3 different github actions
1428
workflows, but regularly fails on the CRAN server.
1529

16-
Background information:
17-
18-
This package has been submitted previously (2023, v0.7.1) and was removed from
19-
CRAN due to several issues. In the mean time many functions were re-factored,
20-
more than 10 dependencies were removed to make the package lighter, and other
21-
problems regarding documentation and style were fixed. Current version 1.4.0
22-
now builds fine on the tested platforms.
23-
2430
## Test environments
2531

2632
### Local

vignettes/ggcoverage.Rmd

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,8 @@ THe default color scheme for base annotation is `Clustal-style`, more popular co
475475
nuc_color <- c(
476476
"A" = "#ff2b08", "C" = "#009aff", "G" = "#ffb507", "T" = "#00bc0d"
477477
)
478-
opar <- graphics::par()
479478
480479
# create plot
481-
graphics::par(mar = c(1, 5, 1, 1))
482480
graphics::image(
483481
seq_along(nuc_color),
484482
1,
@@ -497,9 +495,6 @@ graphics::mtext(
497495
las = 1,
498496
side = 2
499497
)
500-
501-
# reset par default
502-
graphics::par(opar)
503498
```
504499

505500
Default color scheme for amino acid annotation is from [Residual colours: a proposal for aminochromography](https://pubmed.ncbi.nlm.nih.gov/9342138/):
@@ -515,7 +510,6 @@ aa_color <- c(
515510
" " = "#FFFFFF"
516511
)
517512
518-
graphics::par(mar = c(1, 5, 1, 1))
519513
graphics::image(
520514
1:5,
521515
1:5,
@@ -535,9 +529,6 @@ graphics::mtext(
535529
las = 1,
536530
side = 2
537531
)
538-
539-
# reset par default
540-
graphics::par(opar)
541532
```
542533

543534
#### Add base and amino acid annotation

0 commit comments

Comments
 (0)