Pathview visualisation not including positive log2 fold changes
1
0
Entering edit mode
Jessica • 0
@f2701d4f
Last seen 23 hours ago
Australia

Hi all! New to bioinformatics here. I've been trying to use pathview in R to visualise differential proteomics data. I did GSEA using GSEkegg and now I'm trying to visualise the differentially expressed pathways using pathview. I'm having an issue with the output, however (see attached image). The upregulated genes are just greyed out.

Data is a csv file with two columns: gene name in KEGG format, then log2fold change values in the second column.

Code is below.enter image description here


> data <- read.csv("pathview_input_AN_OX.csv", header=FALSE)
> geneList = data[,2] #importing fold change data as a vector
> names(geneList) = as.character(data[,1]) #adding gene name to vector
> summary(geneList) #check vector
    Min.  1st Qu.   Median     Mean  3rd Qu.     Max. 
-3.40000 -0.24200  0.01875 -0.01173  0.25500  2.80000 
> str(geneList) #check vector
 Named num [1:1906] 2.8 2.65 2.24 2.19 1.94 1.77 1.43 1.38 1.36 1.22 ...
 - attr(*, "names")= chr [1:1906] "CPF_2118" "CPF_1169" "CPF_1621" "CPF_2199" ...
> cpf000270 <- pathview(gene.data  = geneList,
+                      pathway.id = "cpf00270",
+                      gene.idtype="KEGG",
+                      species = "cpf",
+                      limit= list(gene=c(-4,4), cpd=1))
Note: Mapping via KEGG gene ID (not Entrez) is supported for this species,
it looks like "CPF_2670"!
Info: Downloading xml files for cpf00270, 1/1 pathways..
Info: Downloading png files for cpf00270, 1/1 pathways..
Info: Working in directory C:/Users/proteomics/CLUSTER PROFILER
Info: Writing image file cpf00270.pathview.png

Please let me know where I've gone wrong! Thanks :)

pathview Proteomics • 123 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 4 hours ago
United States

Without providing a self-contained example, nobody can tell you if/where you went wrong. Since you get a KEGG pathway with some of the genes colored, I would have to imagine that it worked correctly and you are mistakenly assuming that some of the genes should be going up.

Login before adding your answer.

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