[Bioc-devel] mapping vector of gene ids to gene symbols

2014-06-18 Thread Michael Lawrence
Let's say I have a vector of gene IDs where some are NA, and are some are repeated, and I want to map them to gene symbols, where I get NAs for the NA IDs or IDs without a symbol. What is the best way to do this? I tried select() but it gave me a table with unique entries; not very convenient. It

Re: [Bioc-devel] mapping vector of gene ids to gene symbols

2014-06-18 Thread Robert Castelo
hi Michael, this souns like if you had a list of variants where you have annotated their Entrez Gene IDs, which sometimes are NA because those variance do not overlap any gene and sometimes are repeated Entrez Gene IDs when two or more of those variants overlap the same gene :) at least is

Re: [Bioc-devel] mapping vector of gene ids to gene symbols

2014-06-18 Thread Michael Lawrence
Wow, VariantFiltering is awesome. It's impressive how it integrates all of the annotation resources so seamlessly. And the shiny app looks very useful. This should be a model package for where we want to bring Bioconductor. You should look into using VRanges instead of GRanges for the return

Re: [Bioc-devel] mapping vector of gene ids to gene symbols

2014-06-18 Thread Robert Castelo
hi, thanks of the compliments to the package, i'm happy to hear you liked it! i must acknowledge that part of the design of the package is the result of conversations i had with Martin, Marc and specially Valerie during the review process. i only got to know about VRanges once the package was

Re: [Bioc-devel] mapping vector of gene ids to gene symbols

2014-06-18 Thread Hervé Pagès
Hi Michael, On 06/18/2014 06:03 AM, Michael Lawrence wrote: Let's say I have a vector of gene IDs where some are NA, and are some are repeated, and I want to map them to gene symbols, where I get NAs for the NA IDs or IDs without a symbol. What is the best way to do this? I tried select() but

Re: [Bioc-devel] mapping vector of gene ids to gene symbols

2014-06-18 Thread Michael Lawrence
That is a good start. But for convenience, I would favor something that just returns the vector corresponding to column rather than a data.frame. Thanks, Michael On Wed, Jun 18, 2014 at 10:11 AM, Hervé Pagès hpa...@fhcrc.org wrote: Hi Michael, On 06/18/2014 06:03 AM, Michael Lawrence

Re: [Bioc-devel] mapping vector of gene ids to gene symbols

2014-06-18 Thread Tim Triche, Jr.
Seconded, this would be so useful. I still use mget() for heavens sake. Meanwhile I'm going to try VariantFiltering. Thanks for starting this conversation Michael. --t On Jun 18, 2014, at 11:18 AM, Michael Lawrence lawrence.mich...@gene.com wrote: That is a good start. But for