Home > src > geckomat > get_enzyme_data > getECstring.m

getECstring

PURPOSE ^

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

SYNOPSIS ^

function EC_set = getECstring(EC_set,ecNumbers)

DESCRIPTION ^

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 EC_set = getECstring(EC_set,ecNumbers)
 
 Provides a single string with all the EC numbers associated to a given
 protein with according to the next format: "ECX.X.X.X ECX.X.X.X ECX.X.X.X"

 Ivan Domenzain.      Last edited: 2018-09-06
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
In case of several ec numbers for the same protein

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0002 % EC_set = getECstring(EC_set,ecNumbers)
0003 %
0004 % Provides a single string with all the EC numbers associated to a given
0005 % protein with according to the next format: "ECX.X.X.X ECX.X.X.X ECX.X.X.X"
0006 %
0007 % Ivan Domenzain.      Last edited: 2018-09-06
0008 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0009 function EC_set = getECstring(EC_set,ecNumbers)
0010 %In case of several ec numbers for the same protein
0011 new_EC_set = replace(strsplit(ecNumbers,' '),';','');
0012 for l = 1:length(new_EC_set)
0013     EC_set = [EC_set 'EC' new_EC_set{l}];
0014     if l<length(new_EC_set)
0015         EC_set = [EC_set ' '];
0016     end
0017 end
0018 end

Generated by m2html © 2005