User: Robert

gravatar for Robert
Robert10
Reputation:
10
Status:
New User
Location:
Last seen:
3 months ago
Joined:
5 months, 1 week ago
Email:
r*************@googlemail.com

Posts by Robert

<prev • 9 results • page 1 of 1 • next >
0
votes
0
answers
69
views
0
answers
Legend color mix-up in grouped Gviz plot
... I have a `GRanges` object with two metadata columns, which I plot in the same `Gviz` plot using the `groups` argument: ``` library(Gviz) gr <- GRanges(seqnames = "chrI", ranges = IRanges(start = 1:6, width = 1), strand = "*", fw = c(0, 0, 0, 1, 2, 1.5), rev = c(1.75, 2.25, 1, 0, 0, ...
gviz written 3 months ago by Robert10
2
votes
1
answer
125
views
1
answer
Unintended grey dot in Gviz plots
... When plotting a ```Gviz``` ```DataTrack``` I noticed a grey dot appearing in the center of the plot. ``` library(Gviz) set.seed(13) df <- data.frame(chr = rep("chrI", 30), start = 1:30, end = 1:30, score = rnorm(n = 30, mean = 10, sd = 2)) data.track <- DataTrack(makeGRangesFromDataFrame(df ...
gviz written 4 months ago by Robert10 • updated 4 months ago by Robert Ivanek660
0
votes
0
answers
112
views
0
answers
How to center data points on coordinates (bases) in Gviz?
... I plot my NGS data using the ```Gviz``` library. When I use a ```.bedGraph``` file to construct a ```DataTrack``` the data points appear between genomic coordinates (bases). The same is true for a corresponding ```.bw``` file (not shown in code below). When I first read the ```.bedGraph``` file and ...
gviz written 4 months ago by Robert10
0
votes
0
answers
97
views
0
answers
How to modify centromere depiction in Gviz IdeogramTrack?
... I visualize my NGS data using the ```Gviz``` library. I can create and plot a ```IdeogramTrack``` with the following code. ``` library(Gviz) cyto.bands <- data.frame(chrom = rep("chrI", 4), chromStart = c(0, 148071, 151524, 154977), chromEnd = c ...
gviz written 4 months ago by Robert10
0
votes
3
answers
381
views
3
answers
Answer: A: Extract metadata from GRanges object for every genomic coordinate
... Based on Michael's answer I can achieve my goal with this code: library(GenomicRanges) gr1 <- GRanges( seqnames = Rle("chr1", 3), ranges = IRanges(start = c(1, 2, 8) + 1, end = c(2, 5, 9)), score = 1:3) gr1 # GRanges object with 3 ranges and 1 metadata ...
written 4 months ago by Robert10
0
votes
3
answers
381
views
3
answers
Comment: C: Extract metadata from GRanges object for every genomic coordinate
... Thanks, Michael. The `GPos` containers seem very interesting. However, it seems like with `GPos()` my metadata columns are lost. Do you know a workaround? ...
written 5 months ago by Robert10
0
votes
3
answers
381
views
3
answers
Comment: C: Extract metadata from GRanges object for every genomic coordinate
... Thanks, Michael. That's very helpful to fill the uncovered regions. However, I'm still not sure how to get a `GRanges` object with all ranges having width 1. I would like to achieve this, as I have to plot and correlate several scores from different files at the single-nucleotide level. ...
written 5 months ago by Robert10
0
votes
3
answers
381
views
3
answers
Comment: C: Extract metadata from GRanges object for every genomic coordinate
... Thanks, Martin. I'm working with `.bedGraph` files (zero-based half-open). That's were the overlapping range for position 2 came from. ...
written 5 months ago by Robert10
3
votes
3
answers
381
views
3
answers
Extract metadata from GRanges object for every genomic coordinate
... It is easy enough to extract genomic ranges and associated meta data from a `GRanges` object. ``` library(GenomicRanges) gr1 <- GRanges( seqnames = Rle("chr1", 3), ranges = IRanges(c(1, 2, 8), end = c(2, 5, 9)), score = 1:3) show(gr1) ## GRanges object with 3 ranges and 1 metadata column ...
genomicranges granges written 5 months ago by Robert10

Latest awards to Robert

No awards yet. Soon to come :-)

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 159 users visited in the last hour