-
Notifications
You must be signed in to change notification settings - Fork 0
/
wanderlust.m
45 lines (41 loc) · 1.25 KB
/
wanderlust.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
addpath(genpath('cyt/src'))
data = dlmread('wanderlust/data/HSMM_E.txt');
data = data';
[traj,lnn] = wanderlust(data,'cosine',5,30,25,216,20,true,[]);
traj = mean(traj, 1);
traj = traj';
[sorted, order] = sort(traj);
order = fliplr(order')';
fileID = fopen('wanderlust/output/HSMM.txt','w');
fprintf(fileID,'%i\n',order);
fclose(fileID);
data = dlmread('wanderlust/data/HSMMgene_Y.txt');
data = data';
[traj,lnn] = wanderlust(data,'cosine',5,30,25,216,20,true,[]);
traj = mean(traj, 1);
traj = traj';
[sorted, order] = sort(traj);
order = fliplr(order')';
fileID = fopen('wanderlust/output/HSMM_gene.txt','w');
fprintf(fileID,'%i\n',order);
fclose(fileID);
data = dlmread('wanderlust/data/LPS_E.txt');
data = data';
[traj,lnn] = wanderlust(data,'cosine',5,30,25,122,20,true,[]);
traj = mean(traj, 1);
traj = traj';
[sorted, order] = sort(traj);
order = fliplr(order')';
fileID = fopen('wanderlust/output/LPS.txt','w');
fprintf(fileID,'%i\n',order);
fclose(fileID);
data = dlmread('wanderlust/data/qNSC_E.txt');
data = data';
[traj,lnn] = wanderlust(data,'cosine',5,30,25,55,20,true,[]);
traj = mean(traj, 1);
traj = traj';
[sorted, order] = sort(traj);
order = fliplr(order')';
fileID = fopen('wanderlust/output/qNSC.txt','w');
fprintf(fileID,'%i\n',order);
fclose(fileID);