[Bioc-devel] Pushing towards a better home for matrix generics

2019-01-27 Thread Aaron Lun
This is a resurrection of some old threads:

https://stat.ethz.ch/pipermail/bioc-devel/2017-November/012273.html

https://github.com/Bioconductor/MatrixGenerics/issues

For those who are unfamiliar with this, the basic issue is that various
Matrix and BiocGenerics functions mask each other. This is mildly
frustrating in interactive sessions:

> library(Matrix)
> library(DelayedArray)
> x <- rsparsematrix(10, 10, 0.1)
> colSums(x) # fails
> Matrix::colSums(x) # okay

... but quite annoying during package development, requiring code like
this:

if (is(x, "Matrix")) {
z <- Matrix::colSums(x)
} else {
z <- colSums(x) # assuming DelayedArray does the masking.
}

... which defeats the purpose of using S4 dispatch in the first place.

I have been encountering this issue with increasing frequency in my
packages, as a lot of my code base needs to be able to interface with
both Matrix and Bioconductor objects (e.g., DelayedMatrices) at the
same time. What needs to happen so that I can just write:

z <- colSums(x)

... and everything will work for both Matrix and Bioconductor classes?
It seems that many of these function names are implicit generics
anyway, can BiocGenerics take advantage of that for the time being?

Best,

Aaron

___
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel


Re: [Bioc-devel] update bioconductor package

2019-01-27 Thread Turaga, Nitesh
You need to have access to your repository at git.bioconductor.org.

http://bioconductor.org/developers/how-to/git/

You should find all of your documentation in that link.

Nitesh



> On Jan 27, 2019, at 2:50 AM, minoo ashtiani  wrote:
> 
> Hello everyone,
> 
> I would like to update my Bioconductor package named "IMMAN". I made some
> changes and I wanted to update the package on the Bioconductor repository
> too, but I don't know how can I do it. Any idea?
> 
> 
> Bests,
> Minoo
> 
> 
> [image: Mailtrack]
> 
> Sender
> notified by
> Mailtrack
> 
> 01/27/19,
> 11:18:05 AM
> 
>   [[alternative HTML version deleted]]
> 
> ___
> Bioc-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel



This email message may contain legally privileged and/or confidential 
information.  If you are not the intended recipient(s), or the employee or 
agent responsible for the delivery of this message to the intended 
recipient(s), you are hereby notified that any disclosure, copying, 
distribution, or use of this email message is prohibited.  If you have received 
this message in error, please notify the sender immediately by e-mail and 
delete this email message from your computer. Thank you.
___
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel