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 8311905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:58:07+00:00 2026-06-08T19:58:07+00:00

I am working with a data set (column 1=gene names and column 2 =

  • 0

I am working with a data set (column 1=gene names and column 2 = expression values) and I’m trying to do a cluster plot but what I find is that the branches are labeled by row number rather than the gene ID from column 1.

dataset: https://dl.dropbox.com/u/364456/miRNA.csv

Using:

attach(animals)
d=dist(as.matrix(animals))
hc=hclust(d)
plot(hc)

resulting plot:

enter image description here

I’ve tried to do kmeans clustering and end up getting this error:

NAs introduced by coercion.

Which indicates to me that I have not formatted my data file correctly.

Anyone know what’s going on here?

  • 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-08T19:58:09+00:00Added an answer on June 8, 2026 at 7:58 pm

    For hclust to recognize your gene name as the correct label name, this column has to be the row names.

    Problem: gene mmu-miR-191 appears twice and row names cannot be repeated. Considering the value for both rows are the same, I’m just gonna assume it is a duplicate and erase the second one.

    read.table("miRNA.csv", sep=",", header=TRUE, row.names=1) -> mirna
    mirna[-34,] -> mirna  # Delete the redundant row.
    row.names(mirna) <- mirna[,1] # Declare column 1 as the row names
    dist(as.matrix(mirna)) -> d # And then your routine
    hc <- hclust(d)
    plot(hc)
    

    enter image description here

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

Sidebar

Related Questions

I am working with a data set that has a column with values that
I have a large data set that I'm working with in excel. About 1000+
I have a working program in C++ that generates data for a Mandelbrot Set.
So I have a set of data that includes a column of dates and
I'm working on a data set that includes community data, and many of the
I am working with a set of data that I have converted to a
The data set that I'm working with is similar to the one below (although
I am working with a set of data that looks something like the following.
Hi I'm working on trying to cluster network data from the 1999 darpa data
I'm working on a webapp with a set of data that users can browse

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.