Entering edit mode
6.5 years ago
abhilashreddy495
▴
10
i have a gene along with there p-value from different treatments. how to find out the common gene with there p-values from gene data and make heat map with that data .
Try brbarraytools excel plug in
Please click on "edit" link and paste your data as text, not image.
Please provide example input data, and expected output.
Forgive me, my friend, but very few people will help you if you paste data in that way and leave a lot of work to others to tidy it up. We are volunteers here and [mostly] have full-time study or employment. If you want to upload your file somewhere and provide a link, that may be better.
Also, it is not recommended to use Excel for 'analysis' in bioinformatics. Formats should be plain-text an well-structured for easy parsing with command-line programs/functions, such as TSV, CSV, JSon, etc.
From the screeshots, it is evident that you are already using Rstudio (thus R). R has excellent packages for heatmaps. Refer to Kevin Blighe's excellent tutorial/posts on heatmaps.
if your data is already in R, then it is most helpful to provide the
dput()
output of a small selection of the data (head()
), something like this:dput(head(df))
then copy/paste this output. This allows others to recreate the exact R object you are working with.
Also you can look at
ggplot2
for this, cheatsheet here, particularly look atgeom_tile
function. However you will need to use something likereshape2
to convert your dataframe to 'long' format, description herea third comment; it looks like the Excel sheet you are trying to import has 2-line headers. Your best bet is to clean this up in Excel prior to importing, to make the headers 1-line only. Or you can try to wrangle it in R