Follow-Up Question: How To Import Annotation File Into R?
1
0
Entering edit mode
11.3 years ago
jobinv ★ 1.1k

As a follow-up question to Where to find annotation file for Agilent microarray? :

Does anyone have any tips as to how I can import this to R? The regular read.table command isn't working because not all features have entries in all fields, causing errors such as this one:

read.table("../../../del/014850_D_AA_20070207.txt",sep="\t")
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
  line 155 did not have 14 elements
annotation • 5.2k views
ADD COMMENT
0
Entering edit mode

My best guess is you probably have to clean it up (e.g. with awk or grep) or specify na.strings = "the char that is na" as argument in your read.table()?
Did you try AILUN as we did previously, to get annotations?

ADD REPLY
0
Entering edit mode

No, didn't even think of AILUN actually, good point. Should see whether that can solve my issue.

ADD REPLY
2
Entering edit mode
11.3 years ago

What not use the Bioconductor package instead?

If you insist on using read.table, try changing the comment parameter:

read.table("../../../del/014850_D_AA_20070207.txt",sep="\t",comment.char='')
ADD COMMENT
0
Entering edit mode

Wow, didn't realize there was one! Thanks!

ADD REPLY

Login before adding your answer.

Traffic: 1817 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