Re: [R] TCGA biolinks, DNA methylation

2018-08-31 Thread William Dunlap via R-help
It looks like it is not a UTF-16 text file, although it could be UTF-16 with a different byte order. Look at it with a text editor or Excel or 'od' or 'file' (the latter are Unix utilities) or ask the person you got it from to see what the file contains. Bill Dunlap TIBCO Software wdunlap

Re: [R] TCGA biolinks, DNA methylation

2018-08-31 Thread William Dunlap via R-help
Try adding fileEncoding="UTF-16" to your read.csv() call. Many Windows programs write UTF-16 files by default. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Aug 30, 2018 at 6:05 PM, Spencer Brackett < spbracket...@saintjosephhs.com> wrote: > My apologies... the following is what I

Re: [R] TCGA biolinks, DNA methylation

2018-08-31 Thread peter dalgaard
At this point, it seems pretty clear that the issue is in the data file itself. Possibilities are that it is either not a CSV file to begin with or in some exotic encoding (utf-16?). You probably need to look at the file in a text editor to see whether the context makes sense as

Re: [R] TCGA biolinks, DNA methylation

2018-08-30 Thread Spencer Brackett
My apologies... the following is what I received from the correction the_data<-read.csv(file="GBM_clinical_drug.csv",header=TRUE,sep=",") Warning messages: 1: In read.table(file = file, header = header, sep = sep, quote = quote, : line 3 appears to contain embedded nulls 2: In read.table(file

Re: [R] TCGA biolinks, DNA methylation

2018-08-30 Thread Spencer Brackett
Hello again, My apologies for the delayed response... computer troubles. In reference to Ms. Goslee's and Mr. Barry's query, the following is the error code received after I inputted my R command the_data<-read.csv(file="GBM_clinical_drug.csv",header=TRUE,sep",") Error: unexpected string

Re: [R] TCGA biolinks, DNA methylation

2018-08-29 Thread Sarah Goslee
On Wed, Aug 29, 2018 at 6:58 PM Spencer Brackett wrote: > > Thank you! The line however was still found to be errored after I fixed the > mistake. Is there anything else I can do to maybe set the “.” As an object? But presumably with a different error, which you don't tell us. The "."

Re: [R] TCGA biolinks, DNA methylation

2018-08-29 Thread Bert Gunter
As an aside, the sep = "," can be omitted, as that's the default anyway. In his response to Sarah, the OP gave us only "the line was found to be errored," which of course is useless. Perhaps if he provided explicit information on what the call and the error was... -- Bert On Wed, Aug 29, 2018

Re: [R] TCGA biolinks, DNA methylation

2018-08-29 Thread Spencer Brackett
Thank you! The line however was still found to be errored after I fixed the mistake. Is there anything else I can do to maybe set the “.” As an object? Spencer On Wed, Aug 29, 2018 at 6:34 PM Sarah Goslee wrote: > Hi, > > If you had an actual gene analysis question I'd suggest the >

Re: [R] TCGA biolinks, DNA methylation

2018-08-29 Thread Sarah Goslee
Hi, If you had an actual gene analysis question I'd suggest the BioConductor email list, but you have a plain old ordinary typo: the_data <-read.csv(file="LGG_clinical_drug.csv",header=T,sep",") You're missing the = after the argument sep the_data <- read.csv(file = "LGG_clinical_drug.csv",

[R] TCGA biolinks, DNA methylation

2018-08-29 Thread Spencer Brackett
Good evening R users, I am attempting to carry out DNA methylation analysis on two separate CSV files (LGG and GBM), which I have downloaded onto my R console. To set the path<-"." to be indicative of one or both of the csv files, I utilized the following functions and received the errors