Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 74a9e7c

Browse files
committed
v0.0.3
1 parent db5401a commit 74a9e7c

File tree

4 files changed

+10
-51
lines changed

4 files changed

+10
-51
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
### ...
99
- ...
1010

11+
## [0.0.3] - 2019-08-02
12+
### Fixed
13+
- Bug that converted NA's to 0s.
14+
1115
## [0.0.2] - 2019-06-20
1216
### Added
1317
- Options for choosing which legend(s) to show.
@@ -23,3 +27,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2327

2428
[Unreleased] https://github.com/ggirelli/ggkaryo/
2529
[0.0.1] https://github.com/ggirelli/gpseq-img-py/releases/tag/v0.0.1
30+
[0.0.2] https://github.com/ggirelli/gpseq-img-py/releases/tag/v0.0.2
31+
[0.0.3] https://github.com/ggirelli/gpseq-img-py/releases/tag/v0.0.3

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ggkaryo2
22
Title: Overlay karyotype and data-track profiles in a ggplot-compatible manner
3-
Version: 0.0.2
3+
Version: 0.0.3
44
Authors@R: person("Gabriele", "Girelli", email = "gigi.ga90@gmail.com", role = c("aut", "cre"))
55
Author: Gabriele Girelli [aut, cre]
66
Maintainer: Gabriele Girelli <gigi.ga90@gmail.com>

R/ggkaryo.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ ggkaryo <- setRefClass("ggkaryo",
529529
track = track[, 1:5]
530530
colnames(track) = c("chrom", "start", "end", "name", "value")
531531
track[, chromID := unlist(lapply(chrom, .self$chrom2id))]
532-
track[is.na(value), value := 0]
532+
#track[is.na(value), value := 0]
533533

534534
track = track[order(start)]
535535
track = track[order(chromID)]
@@ -618,7 +618,7 @@ ggkaryo <- setRefClass("ggkaryo",
618618

619619
add_arm_boxes = function() {
620620
"Adds boxes around chromosome arms."
621-
.self$data$plot$trackLayer = .self$data$plot$trackLayer + geom_path(
621+
.self$data$plot$baseLayer = .self$data$plot$baseLayer + geom_path(
622622
data=.self$data[['boxes']], aes(group=paste0(chrom, "_", arm_id)),
623623
color="black")
624624
},

README.md

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -26,54 +26,7 @@ Usage
2626

2727
```R
2828
require(ggkaryo2)
29-
require(data.table)
30-
31-
# Load example data
32-
data('giemsa', package='ggkaryo2')
33-
data('track', package='ggkaryo2')
34-
data('lois', package='ggkaryo2')
35-
36-
# Plot ideogram
37-
ggk = ggkaryo(giemsa)
38-
ggk$plot_full()
39-
40-
# Plot ideogram with boxes around chromosome arms and labels
41-
ggk = ggkaryo(giemsa)
42-
ggk$add_arm_boxes()
43-
ggk$add_chrom_labels()
44-
ggk$plot_full()
45-
46-
# Plot ideogram with one profile track
47-
ggk = ggkaryo(giemsa)
48-
binnedTrack = track
49-
ggk$add_track(binnedTrack, 1e5)
50-
ggk$plot_full()
51-
52-
# Plot ideogram with two profile tracks on the same side
53-
ggk = ggkaryo(giemsa)
54-
binnedTrack2 = copy(binnedTrack)
55-
binnedTrack2[, value := value*abs(rnorm(nrow(binnedTrack2)))]
56-
ggk$add_track(binnedTrack, 1e5)
57-
ggk$add_track(binnedTrack2, 1e5)
58-
ggk$plot_full()
59-
60-
# Plot ideogram with two profile tracks on opposite sides
61-
ggk = ggkaryo(giemsa, opposite=T)
62-
binnedTrack2 = copy(binnedTrack)
63-
binnedTrack2[, value := value*abs(rnorm(nrow(binnedTrack2)))]
64-
ggk$add_track(binnedTrack, 1e5)
65-
ggk$add_track(binnedTrack2, 1e5)
66-
ggk$plot_full()
67-
68-
# Plot ideogram with two profile tracks on opposite sides and central lois
69-
ggk = ggkaryo(giemsa)
70-
binnedTrack2 = copy(binnedTrack)
71-
binnedTrack2[, value := value*abs(rnorm(nrow(binnedTrack2)))]
72-
ggk$add_track(binnedTrack, 1e5)
73-
ggk$add_track(binnedTrack2, 1e5)
74-
loiData = lois
75-
ggk$add_lois(loiData, "center", "sample")
76-
ggk$plot_full()
29+
?ggkaryo
7730
```
7831

7932
Contributing

0 commit comments

Comments
 (0)