Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ANSWER WITH THE MATLAB CODE Identifying the proteins a drug binds to is useful for determining its side-effects and for finding other diseases the drug

ANSWER WITH THE MATLAB CODE

Identifying the proteins a drug binds to is useful for determining its side-effects and for finding other diseases the drug can be used for. Drugbank is a database that collects information about drugs and their target proteins. In this problem, you will write a function that uses a Drugbank text file and returns a list of proteins that a drug binds to. An example Drugbank file can be downloaded from http://sacan.biomed.drexel.edu/ftp/bmeprog/drugbank_targets_sample.csv The drugbank file is a comma separated file, where the first row is the header row, and each of the other rows contains information on a protein and lists the drugs it binds to. For each protein, the numerical drug ids are represented by a 7-character string with a prefix of 'DB' and separated by semicolons. Write a function drug2ptns(drugid,file) that takes a drug id and a drugbank file and returns all the protein ids the drug is listed to bind, as a cell array of strings. The drug id given to your function can be either a string with the 'DB' prefix, or a number.

THE CORRECT ANSWER WILL RETURN THE FOLLOWING OUTPUTS EXACTLY:

>> disp(drug2ptns('DB00117','drugbank_targets_sample.csv')) 'P19113' >> disp(drug2ptns('DB00114','drugbank_targets_sample.csv')) 'P19113' 'P06737' >> disp(drug2ptns('DB00303','drugbank_targets_sample.csv')) 'P45059' >> disp(drug2ptns(117,'drugbank_targets_sample.csv')) 'P19113' 

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

Students also viewed these Databases questions

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago