Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to caculate the K module? #2

Open
zifeng9527 opened this issue Feb 9, 2021 · 1 comment
Open

how to caculate the K module? #2

zifeng9527 opened this issue Feb 9, 2021 · 1 comment

Comments

@zifeng9527
Copy link

Thanks for your software.

According to your Genome Research paper, I know that you caculated the K modules (subpopulation) using the script in "TFTG_co_module.m" and the TRS matrix. However, in your TimeReg manual, there is no item to tell us how to use this script. I'm a layman on matlab. Can you illustrate how to get the K using your script?

@Chloe-Thangavelu
Copy link

Chloe-Thangavelu commented Nov 3, 2022

##HELP SECTION##
I don't know how to set the K-value (it looks like in the paper they try several k-values and pick the best one)
But here is some info for those who can't read matlab or may need help.

For default settings:
Set Pre-processing to 1
Set K to above 1 to get all outputs

Here is the config file I used:
PECA_Module_dir = './.';
Expfile='./testData/Exp.txt';
sample_trs_files='./testData/test_trs_info1';
TFName_file='./testData/TFName.txt';
TGName_file='./testData/TGName.txt';
Outdir='./testData/out10312022';
pre_process_required=1;
species = 'mouse';
lambda=0.2;
K=[1,1,1,1,2];

otherwise you might get the following error or you might not get all your output files.

Error:
Error using nnmf>checkmatrices (line 353)
A must be a matrix of numeric values.

Error in nnmf (line 115)
checkmatrices(a,w0,h0,k);

Error in TFTG_co_module (line 20)
[W,H]=nnmf(ZZ,k,'algorithm','mult','replicates',10,'options',opt);

Error in timeCourse_PECA_module (line 6)
[TFCluster1{1,ii},TGCluster1{1,ii},W{1,ii},H{1,ii},p1{1,ii},p2{1,ii},FC1{1,ii},FC2{1,ii},ZZ{1,ii}]=TFTG_co_module(TRS_norm{1,ii},R,TFName,Symbol,K(ii),Exp2(:,ii));

Error in run_TCRA (line 71)
[TFCluster1,TGCluster1,DriverTF,match]=timeCourse_PECA_module(TRS_norm,Exp,Exp2,TGName,Sample,TFTG_corr_public,TFTG_corr_private,lambda,TFName,TFExp,K,Outdir);

Solution: Set Preprocessing to 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants