Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!