Entering edit mode
15 months ago
John
•
0
I'm utilizing this site's guidelines to run PANDA through Matlab (but I also had to make a couple edits because I don't have ppi to use; I was told, though, that ppi isn't required and Matlab should be simple to use for that purpose). Here is the link: https://github.com/netZoo/netZooM/blob/master/tutorials/panda/panda.pdf
But I'm finding that some of the basic Matlab functions (like readtable, textscan, and fopen) don't seem to work properly. Could someone help me guide through this, please? Thanks.
addpath(genpath('path/to/netZooM'))
exp_file = 'path to file here';
motif_file = 'path to file here';
panda_out = '';
lib_path = 'path to lib path here';
save_temp = '';
alpha = 0.1;
save_pairs = 0;
expressionData = readtable(exp_file);
size(expressionData)
[TF] = textscan(motif_file, '%s%s%f');%textscan also doesn't work for motif_file
[TF] = readtable(motif_file);%to fix, readtable isn't working for TF, but it's working for exp_file
TFNames = unique(TF); %problem
disp('Reading in expression data!');
fid = fopen(exp_file, 'r'); %problem, fopen isn't working
headings = fgetl(fid); %problem fget1 isn't working bc above isn't working