Get ID Mapping right
1
0
Entering edit mode
thrabe • 0
@thrabe-9205
Last seen 8.9 years ago
United States

Hi there, 

I am trying to use the getSYMBOL function for my IDs, but seem to be stuck:

features = hthgu133pluspmprobe
ID = unique(features[,4])
ID2<-sub("_at","",ID)
ID2<-sub("_AT","",ID2)
GS <- as.matrix(getSYMBOL(ID2, 'org.Hs.eg'))

I get a list of the original IDs and NA values.

What am I doing wrong? Can someone please show me an example for a working script? 

The above conversion is based on the Cibersort CEL -> mixture script by the way.

I appreciate any help. Thanks!

annotation getsymbol • 1.5k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 2 days ago
United States

You are doing two things wrong. First, you shouldn't be changing the IDs. I have no idea what the Cibersort CEL -> mixture script might be, but if that's what it says to do, then it's wrong. Second, you are using old tech. Things like getSYMBOL() are outdated, and only work because we value backwards compatibility. You should instead be using either select() or mapIds() on the unadulterated probeset IDs. See ?select or ?mapIds after loading AnnotationDbi for more information.
 

ADD COMMENT
0
Entering edit mode

Thank you James. How can I load a similar DB for hthgu133pluspmprobe for my data? I found this post : AnnotationDbi packages missing in current release , but I am not sure where to get the data from. 

 

ADD REPLY
0
Entering edit mode

You would go to Affymetrix.com, get the annotation csv file for that array and do what Isaac Neuhaus did in the link you sent.

ADD REPLY
0
Entering edit mode

Thanks. I tried that, didnt get too far. See my at under the other thread.

ADD REPLY
0
Entering edit mode

You did do something, but it seemed like you typed random things hoping something would work. That's not usually going to be successful. I would instead recommend finding out more about what you are trying to do, and proceeding from there. There are help pages for all functions (?makeDBPackage) as well as vignettes. You should start by reading them.

ADD REPLY
0
Entering edit mode

Thank you James. I'll have a look. I'm new to this whole field. Sorry for bugging you with all those questions.

ADD REPLY
0
Entering edit mode

The thing that freaks me out about the makeDBPackage function is that is does not return anything and no verbose. Is there a way to enable feedback? I do not see anything happen and the function finishes immediately. I am not sure if he finds the files or not. Absolute vs relative paths and so forth.

ADD REPLY
0
Entering edit mode

It's exceedingly verbose, so if you aren't getting a bunch of output you aren't doing something right.

ADD REPLY

Login before adding your answer.

Traffic: 748 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

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

Powered by the version 2.3.6