## User: my4

my40
Reputation:
0
Status:
New User
Location:
Last seen:
9 months, 4 weeks ago
Joined:
2 years, 5 months ago
Email:
m**@sanger.ac.uk

#### Posts by my4

<prev • 11 results • page 1 of 2 • next >
1
291
views
1
... This was exactly what I was looking for.  Thank you! ...
written 10 months ago by my40
1
291
views
1
... I have two plots that I want to place next to each other on a grid.  If they were both ggplot2 plots I'd just do something like this: plot_grid(plot_a,plot_b,ncol=2) using the cowplot package. However, one of my plots I have created using the ComplexHeatmap package.  While the other is created wi ...
written 10 months ago by my40 • updated 10 months ago by Zuguang Gu20
1
696
views
1
... Thank you Gordon.  I'll stop worrying about things I don't understand well enough to worry about. ...
written 22 months ago by my40
1
696
views
1
... Thank you both for the help.  I have indeed been using y$offsets rather than offset, but as Gordon says it seems to be working fine. At least, the co-effecients produced by the fit are consistent with what I would expect if the offsets were being applied, but I will correct the error to be on the s ... written 22 months ago by my40 1 answer 696 views 1 answer ... Hello, I am trying to use edgeR with a custom offset matrix (i.e., a different offset value in the GLM for each gene). I'm doing something like this: y = DGEList(counts=toc,group=groups) design = model.matrix(~groups) y$offsets = too #Where too is a matrix of the same dimensi ...
written 22 months ago by my40 • updated 22 months ago by Aaron Lun21k
1
432
views
1
... To answer my own comment, I worked out that I needed to import the table function from BiocGenerics, not S4Vectors.  so importFrom(BiocGenerics,table).  I worked this out largely through trial and error.  The fact that this wasn't obvious to Martin is writing his answer speaks volumes about how conf ...
written 23 months ago by my40
1
432
views
1
... Sorry for using the wrong mailing list, I'll submit to the one you suggest in future. I tried adding import(S4Vectors), but still got the same error message after installing and loading my package.  That is, mypackage::test(Rle(1:10)) Error in as.vector(x, mode) : invalid 'mode' argument I then ...
written 23 months ago by my40
1
432
views
1
... I have a stupidly simple function: test = function(...) { table(...) } If I just copy and paste this code into an R session and then run test(Rle(1:10)) I get the expected result.  However, I'm trying to include this function as part of a package, after installing my package mypackage::test(Rle ...
written 23 months ago by my40 • updated 23 months ago by Martin Morgan ♦♦ 22k
1
323
views
1
... For a chromosome length object, when I run this     topData = Rle(sample(1:3,1e8,replace=TRUE))     microbenchmark(GRanges('toyChr',IRanges(start(toyData)-1, width=runLength(toyData), toyData = runValue(toyData)), times = 3) It takes roughly 15 seconds to convert     Unit: seconds               ...
written 23 months ago by my40
1
323
views
1
... I have a Run length encoded vector representing some value at every position on the genome, in order. As a toy example suppose I had just one chromosome of length 10, then I would have a vector looking like library(GenomicRanges) set.seed(1) toyData = Rle(sample(1:3,10,replace=TRUE)) I would lik ...
written 23 months ago by my40

#### Latest awards to my4

No awards yet. Soon to come :-)

Content
Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.