Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9215243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:09:40+00:00 2026-06-18T02:09:40+00:00

I’m trying to produce a heatmap of some gene expression data. Currently, the data

  • 0

I’m trying to produce a heatmap of some gene expression data. Currently, the data I’d like to visualize is stored in an expression set data type, but the samples are not grouped correctly; that is, control samples and experimental samples are not grouped together. Here’s an abbreviated work flow:

output <- //analysis of raw data eset
someGenes <- eset [output$Table1, ]
heatmap(exprs(someGenes))

Essentially, I’d like to rearrange the samples in the eset before plotting. I’ve tried to treat the sample names as “columns” but haven’t been able to alter their position within the eset. I’m quite new to R, so any and all help would be greatly appreciated.

Here’s a link to the expression set data type for reference: http://rss.acs.unt.edu/Rdoc/library/Biobase/html/class.ExpressionSet.html

Many thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:09:41+00:00Added an answer on June 18, 2026 at 2:09 am

    For a reproducible example, we load Biobase and the sample data

    library(Biobase)
    data(sample.ExpressionSet)
    

    then take a look at what we’ve got:

    > sample.ExpressionSet
    ExpressionSet (storageMode: lockedEnvironment)
    assayData: 500 features, 26 samples 
      element names: exprs, se.exprs 
    protocolData: none
    phenoData
      sampleNames: A B ... Z (26 total)
      varLabels: sex type score
      varMetadata: labelDescription
    featureData: none
    experimentData: use 'experimentData(object)'
    Annotation: hgu95av2 
    

    We can subset an ExpressionSet like a matrix, so for instance using indices or sampleNames, e.g., by creating a column index cidx from a shuffle of the current sampleNames

    cidx = sample(sampleNames(sample.ExpressionSet))
    

    cidx is just a character vector. And then we re-order the columns with

    > sample.ExpressionSet[, cidx]
    ExpressionSet (storageMode: lockedEnvironment)
    assayData: 500 features, 26 samples 
      element names: exprs, se.exprs 
    protocolData: none
    phenoData
      sampleNames: Q C ... B (26 total)
      varLabels: sex type score
      varMetadata: labelDescription
    featureData: none
    experimentData: use 'experimentData(object)'
    Annotation: hgu95av2 
    

    So you’ve re-ordered the columns before plotting. But heatmap is, by default, going to cluster the samples based on their ‘distance’ between one another. So it doesn’t matter that you’ve re-ordered the samples, heatmap will figure out the same distances, and plot the same heatmap. You might want image, or to provide the argument Colv (see ?heatmap) or use heatmap.2 in the gplots package, or… Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to render a haml file in a javascript response like so:
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I want to construct a data frame in an Rcpp function, but when I
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.