search for: loc678831

Displaying 1 result from an estimated 1 matches for "loc678831".

2009 Aug 28
1
problems with strsplit using a split of ' \\\ ' : a regex problem
I have a vector of gene symbols, some of which have multiple aliases. In the case of an alias, they are separated by ' \\\ '. Here is a real world example, which would represent one element of my vector: Eif4g2 /// Eif4g2-ps1 /// LOC678831 What I would like to do is input the vector into a function and output a vector with just the first alias of each element (or, if there are no aliases, just the one symbol). So I wrote a simple little function to do this: get.first.id.func <- function(vec, splitter){ vec.lst <- strsplit(v...