Skip to content

Commit e745de4

Browse files
committed
v0.5.0
0 parents  commit e745de4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5405
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
inst/doc
2+
docs
3+
.Rhistory
4+
.Rbuildignore
5+
.Rproj*
6+
.Rproj.user

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards
42+
of acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies
54+
when an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail
56+
address, posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at [INSERT CONTACT
63+
METHOD]. All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
113+
114+
## Attribution
115+
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.0,
118+
available at https://www.contributor-covenant.org/version/2/0/
119+
code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at https://
128+
www.contributor-covenant.org/translations.

DESCRIPTION

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Package: ggcoverage
2+
Type: Package
3+
Title: ggcoverage - Visualize genomic coverage with various annotaion.
4+
Version: 0.5.0
5+
Authors@R:
6+
person(given = "Yabing",
7+
family = "Song",
8+
role = c("aut", "cre"),
9+
email = "songyb0519@gmail.com")
10+
Maintainer: Yabing Song <songyb0519@gmail.com>
11+
Description: The goal of ggcoverage is to simplify the process of visualizing genomic coverage. It contains functions to
12+
load genomic data with bam/bigwig/bedgraph file format, create genomic coverage plot, add various annotation to
13+
the coverage plot, including gene annotaion, transcription annotion, ideogram annotation and peak annotation.
14+
License: MIT + file LICENSE
15+
Encoding: UTF-8
16+
LazyData: true
17+
RoxygenNote: 7.1.1
18+
Imports:
19+
biovizBase,
20+
dplyr,
21+
GenomicRanges,
22+
ggbio,
23+
ggh4x,
24+
ggplot2,
25+
ggrepel,
26+
grDevices,
27+
IRanges,
28+
magrittr,
29+
patchwork,
30+
RColorBrewer,
31+
rlang,
32+
Rsamtools,
33+
rtracklayer,
34+
scales,
35+
stats,
36+
utils
37+
Suggests:
38+
rmarkdown,
39+
knitr,
40+
BiocStyle,
41+
htmltools
42+
VignetteBuilder: knitr

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
YEAR: 2022
2+
COPYRIGHT HOLDER: ggtrack authors

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2022 ggcoverage authors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NAMESPACE

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Generated by roxygen2: do not edit by hand
2+
3+
S3method(ggplot_add,gene)
4+
S3method(ggplot_add,ideogram)
5+
S3method(ggplot_add,peak)
6+
S3method(ggplot_add,transcript)
7+
export(FormatTrack)
8+
export(LoadTrackFile)
9+
export(geom_coverage)
10+
export(geom_gene)
11+
export(geom_ideogram)
12+
export(geom_peak)
13+
export(geom_transcript)
14+
export(ggcoverage)
15+
export(theme_coverage)
16+
export(theme_coverage2)
17+
importFrom(GenomicRanges,GRanges)
18+
importFrom(GenomicRanges,makeGRangesFromDataFrame)
19+
importFrom(GenomicRanges,setdiff)
20+
importFrom(IRanges,IRanges)
21+
importFrom(IRanges,findOverlaps)
22+
importFrom(IRanges,subsetByOverlaps)
23+
importFrom(RColorBrewer,brewer.pal)
24+
importFrom(Rsamtools,indexBam)
25+
importFrom(biovizBase,getIdeogram)
26+
importFrom(dplyr,arrange)
27+
importFrom(dplyr,filter)
28+
importFrom(dplyr,group_by)
29+
importFrom(dplyr,select)
30+
importFrom(dplyr,summarise)
31+
importFrom(ggbio,layout_karyogram)
32+
importFrom(ggh4x,elem_list_rect)
33+
importFrom(ggh4x,facet_wrap2)
34+
importFrom(ggh4x,strip_themed)
35+
importFrom(ggplot2,aes)
36+
importFrom(ggplot2,aes_string)
37+
importFrom(ggplot2,annotate)
38+
importFrom(ggplot2,arrow)
39+
importFrom(ggplot2,coord_cartesian)
40+
importFrom(ggplot2,element_blank)
41+
importFrom(ggplot2,element_rect)
42+
importFrom(ggplot2,element_text)
43+
importFrom(ggplot2,expansion)
44+
importFrom(ggplot2,geom_polygon)
45+
importFrom(ggplot2,geom_rect)
46+
importFrom(ggplot2,geom_segment)
47+
importFrom(ggplot2,geom_text)
48+
importFrom(ggplot2,ggplot)
49+
importFrom(ggplot2,ggplot_add)
50+
importFrom(ggplot2,labs)
51+
importFrom(ggplot2,margin)
52+
importFrom(ggplot2,rel)
53+
importFrom(ggplot2,scale_color_manual)
54+
importFrom(ggplot2,scale_fill_manual)
55+
importFrom(ggplot2,scale_x_continuous)
56+
importFrom(ggplot2,scale_y_continuous)
57+
importFrom(ggplot2,theme)
58+
importFrom(ggplot2,theme_classic)
59+
importFrom(ggplot2,unit)
60+
importFrom(ggrepel,geom_text_repel)
61+
importFrom(grDevices,colorRampPalette)
62+
importFrom(magrittr,"%>%")
63+
importFrom(patchwork,wrap_plots)
64+
importFrom(rlang,.data)
65+
importFrom(rlang,as_label)
66+
importFrom(rtracklayer,import)
67+
importFrom(scales,comma)
68+
importFrom(stats,as.formula)
69+
importFrom(utils,read.csv)
70+
importFrom(utils,read.table)

NEWS.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ggcoverage 0.5.0
2+
* First CRAN release.
3+
4+
# ggcoverage 0.4.0
5+
## New features
6+
* Added `geom_peak` to enhance its usage in ChIP-seq or ATAC-seq data.
7+
* Change Y axis theme.
8+
9+
-------------
10+
11+
# ggcoverage 0.3.0
12+
## New features
13+
* Added `geom_transcript`, `geom_ideogram`.
14+
15+
## Minor changes
16+
* Fix bug in `GetGeneGroup`.
17+
18+
-------------
19+
20+
# ggcoverage 0.2.0
21+
## New features
22+
* Added `geom_gene`, `geom_ideogram`.
23+
24+
-------------
25+
26+
# ggcoverage 0.1.0
27+
28+
## New features
29+
* Added a `NEWS.md` file to track changes to the package.
30+
* Added `ggcoverage`, `geom_coverage`, `LoadTrack` and `FormatInput`.
31+
32+
-------------

0 commit comments

Comments
 (0)