Bioinformatics ReviewBioinformatics Review
Notification Show More
Font ResizerAa
  •  Home
  • Docking
  • MD Simulation
  • Tools
  • More Topics
    • Softwares
    • Sequence Analysis
    • Algorithms
    • Bioinformatics Programming
    • Bioinformatics Research Updates
    • Drug Discovery
    • Phylogenetics
    • Structural Bioinformatics
    • Editorials
    • Tips & Tricks
    • Bioinformatics News
    • Featured
    • Genomics
    • Bioinformatics Infographics
  • Community
    • BiR-Research Group
    • Community Q&A
    • Ask a question
    • Join Telegram Channel
    • Join Facebook Group
    • Join Reddit Group
    • Subscription Options
    • Become a Patron
    • Write for us
  • About Us
    • About BiR
    • BiR Scope
    • The Team
    • Guidelines for Research Collaboration
    • Feedback
    • Contact Us
    • Recent @ BiR
  • Subscription
  • Account
    • Visit Dashboard
    • Login
Font ResizerAa
Bioinformatics ReviewBioinformatics Review
Search
Have an existing account? Sign In
Follow US
Matlab

How to get input values from SOM sample hits plot in Matlab?

Dr. Muniba Faiza
Last updated: June 14, 2022 9:55 pm
Dr. Muniba Faiza
Share
2 Min Read
How to get input values from SOM sample hits plot in Matlab?
SHARE

The self-organizing map (SOM) sample hits plot in the Matlab [1] shows the number of inputs in the neurons but one would be interested in knowing what these input values are. In this article, we are going to get the input values from the neurons.

Let’s say we have a sample hits plot (Figure 1) and we want to know the input values of the 3rd neuron (highlighted with yellow).  The numbering of neurons starts from bottom left to right. Here, the 3rd neuron shows 2 input values.

Figure 1 Sample hits plot from Matlab [1].

Now, after you train your data, you have to add one command to convert vectors to indices.

For example, the following code performs SOM analysis on your data.

>> x = data;
>> dimension1 = 10;
>> dimension2 = 10;
>> net = selforgmap([dimension1 dimension2]);
>> [net,tr] = train(net,x);
>> y = net(x);
% ---------Convert vector to indices----------------------
>> input_neuron_mapping = vec2ind(net(x))';

vec2ind function will convert vectors to indices. ‘input_neuron_mapping’ is a vector now.
Now, if you want to see the input values of neuron 3, then first see the inputs by which neuron 3 was classified.

>> neuron_3_input_indices = find(input_neuron_mapping == 3)

Now, see the original input values.

>> neuron_3_input_values = x(neuron_3_input_indices)

It will display 3 input values.


References

  1. MATLAB. (2022). version 9.12.0 (R2022a). Natick, Massachusetts: The MathWorks Inc.
TAGGED:input valuesMatlabself-organizing mapssomsom sample hits plot
Share This Article
Facebook Copy Link Print
ByDr. Muniba Faiza
Follow:
Dr. Muniba is a Bioinformatician based in New Delhi, India. She has completed her PhD in Bioinformatics from South China University of Technology, Guangzhou, China. She has cutting edge knowledge of bioinformatics tools, algorithms, and drug designing. When she is not reading she is found enjoying with the family. Know more about Muniba
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks
[Editorial] Is it ethical to change the order of authors’ names in a manuscript?
Editorial Opinion
Installing bbtools on Ubuntu
[Tutorial] Installing BBTools on Ubuntu (Linux).
Sequence Analysis Software Tools
wes_data_analysis Whole Exome Sequencing (WES) Data visualization Toolkit
wes_data_analysis: Whole Exome Sequencing (WES) Data visualization Toolkit
Bioinformatics Programming GitHub Python

You Might Also Like

How to execute matlab from terminal in Ubuntu (Linux)?
Software

How to execute matlab from terminal in Ubuntu (Linux)?

June 11, 2022
How to preprocess data for clustering in MATLAB?
Bioinformatics ProgrammingMatlab

How to preprocess data for clustering in MATLAB?

September 9, 2022
Video Tutorial: Self-Organizing Maps in MATLAB
MatlabSelf-Organizing MapsVideo Tutorial

Video Tutorial: Self-Organizing Maps in MATLAB

November 23, 2024
How to define features/predictors of user dataset for SOM analysis in MATLAB?
ClusteringMatlabSelf-organizing Maps (SOM)

How to define features/predictors of user dataset for SOM analysis in MATLAB?

July 5, 2022
Copyright 2024 IQL Technologies
  • Journal
  • Customer Support
  • Contact Us
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Sitemap
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?

Not a member? Sign Up