-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStep1B_Load_Preprocessed_Data_for_WT_DrugX.m
28 lines (22 loc) · 1.72 KB
/
Step1B_Load_Preprocessed_Data_for_WT_DrugX.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%% Initiation
close all;clc;clear;
addpath('Aux Functions','Main Functions','Data');
DatafileName = 'DrugXData.xlsx';
%% Step 1a. Load preprocessed data
%%%%%%%%%%%%%%%%%%%% Required Data for fitting %%%%%%%%%%%%%%%%%%%%%%%%%
[~,ProfNames] = xlsread(DatafileName,'MS Raw','1:1');ProfNames = ProfNames(3:end)'; ProfNames = strrep(ProfNames,'/','_');% name of each glycoprofile
mz_all = xlsread(DatafileName,'MS Raw','A:A'); % all measured m/z values
[~,compositions] = xlsread(DatafileName,'MS Raw','B:B'); compositions = compositions(2:end);% the monossacharide compositions
profiles = xlsread(DatafileName,'MS Raw');profiles = profiles(:,3:end); % relative intensities measured at the corresponding m/z
profiles(isnan(profiles)) = 0; % fill empty elements
% values, where each column represent a glycoprofile.
profiles = profiles./sum(profiles); % normalize the sum of signal intensities in each profile to 1
%%%%%%%%%%%%%%%%%%%% optional data for fitting: glycan linkage annotation %%%%%%%%%%%%%%%%%%%%%%%%%
mz = xlsread(DatafileName,'Annotation','A:A'); % annotated m/z values
[~,LinkageResStruct] = xlsread(DatafileName,'Annotation','B:B');LinkageResStruct = LinkageResStruct(2:end); % all annotated glycan structures from all profiles in the linear code format
LinkageResStructSel = xlsread(DatafileName,'Annotation');LinkageResStructSel = logical(LinkageResStructSel(:,3:end)); % selection flag of annotated glycan structures for each profile
LinkageInfoAvail = any(LinkageResStructSel~=0); % whether glycan linkage annotation is present or not for each profile
DataSet = ws2struct;
%%%%%%%%%%%%%%%%%%%% visualize experimental data for sanity check %%%%%%%%%%%%%%%%%%%%%%%%%
visualizeExpData(DataSet,[],[]);
save('Data/DrugXData.mat','DataSet');