How to set different color in every gene and add legend using Chromomap?
1
0
Entering edit mode
9 weeks ago

Dear all! I have plot my data to make gene position in chromosome using chromoMap.

Here my data

chr file

chr file

chr anot file chr anot file and these are my scripts

library(chromoMap) col.set = c("purple", "#4CBB17","#0096FF", "blue", "brown") chr.data <- read.csv("chr_file.csv", header=T) anno.data <- read.csv("chr_anot.csv", header = T) chromoMap(list(chr.data),list(anno.data), labels = T, data_based_color_map = T, data_color = list(c(col.set)))

I got the result like this output file data result

I would like to set every gene with different color and add the legend.

Any idea what should I do? Please help me. Thank you

chromomap Gene color • 516 views
ADD COMMENT
2
Entering edit mode
9 weeks ago
MSRS ▴ 530

See here

chromoMap(list(chr.data),list(anno.data), labels = T, data_based_color_map = T, data_color = list(c("purple", "#4CBB17","#0096FF", "blue", "brown)), legend = T)

ADD COMMENT
0
Entering edit mode

I have tried to see the link that you sent above and run your script but the output like this, output new

ADD REPLY
0
Entering edit mode

Try this great tutorial, you can do it. https://cran.r-project.org/web/packages/chromoMap/vignettes/chromoMap.html#Labellings

and https://lakshay-anand.github.io/chromoMap/docs.html#Title

How about Annotation colors flag?

anno_col = c ("purple", "#4CBB17","#0096FF", "blue", "brown")
ADD REPLY
0
Entering edit mode

thank you sir

ADD REPLY
0
Entering edit mode

Thank you. Upvote and accept if you find the comment helpful.

ADD REPLY

Login before adding your answer.

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