GOPLOT FOR CREATING PLOTS IN R
0
0
Entering edit mode
3.8 years ago

I am going to use GOplot package of R to visualize my ontology results out of microarray analysis of cancerous and normal tissues. I have problem with using this code:

circ <- circle_dat(EC$david, EC$genelist)

I have two text files. One for microarray with columns namely: ID, adj.P.Val, logFC. Another file is for david data with columns of: Category, ID, Term, PValue, and Genes. I import these two files into R-studio with these codes:

genelist <- read.csv("genelist.txt", sep = "\t", header = TRUE)
david <- read.csv("BP1.txt", sep = "\t", header = TRUE)

But when I am going to build the circle_dat out of these with this code:

circ <- circle_dat(david, genelist)

I get the error of:

Error in data.frame(category = rep(as.character(terms$category), count),  : 
  arguments imply differing number of rows: 8765, 0

How should I form the circle_dat for my data. By the way, I am just a biologist and does not have any strong background in programming, so please kindly give me a code for this because I cannot understand the programming explanations. I have already saw this link and could not understand anything :( https://stackoverflow.com/questions/29814912/error-replacement-has-x-rows-data-has-y Thank you.

R gene • 1.0k views
ADD COMMENT
0
Entering edit mode

Possible duplicate ?

ADD REPLY

Login before adding your answer.

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