Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CODING IN R STUDIO! How can I write a code that computes the number of genes in common for each pair of phenotypes and then

CODING IN R STUDIO!

How can I write a code that computes the number of genes in common for each pair of phenotypes and then store it in a matrix with dimensions N x N where N is the # of phenoypes in the matrix?

Example of data I am working with:

A B C D E F G H I J K L M N
Gene1 0 0 0 0 1 0 1 1 1 0 0 0 0 0
Gene2 1 0 0 0 0 0 0 0 0 1 0 0 1 0
Gene3 0 0 1 1 0 0 0 0 1 0 0 1 0 0
Gene4 0 1 1 0 0 0 1 0 0 0 1 1 0 1
Gene5 1 0 0 0 1 1 0 0 0 0 0 0 1 1
Gene6 0 0 1 1 0 0 0 1 1 0 0 0 0 0
Gene7 0 0 0 0 1 0 0 0 1 1 0 0 1 0
Gene8 0 0 0 0 0 0 1 0 0 0 0 1 0 0
Gene9 1 0 1 0 0 0 0 1 0 0 0 0 0 1

'1' means that the gene has the phenotype, '0' means that the gene does not have it.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago