Closed hyjforesight closed 2 years ago
As the error states AssertionError: Found 7350 genes present in the network (adjacencies) output, but missing from the expression matrix. Is this a different gene expression matrix?
have you made sure that the gene expression matrix you use in the function modules_from_adjacencies
is the exact same matrix you use for generating the regulons? (most of the time this is the raw gene expression matrix on which no filtering is done).
You can also check this by looking which genes in adjacencies
are not present in exprMat
.
Closing due to inactivity, feel free to open again.
Hello @SeppeDeWinter , I wrote the response in a similar issue (https://github.com/aertslab/pySCENIC/issues/347). Thanks!
Hello pySCENIC, I run the pySCENIC following the cancer dataset tutorial (http://htmlpreview.github.io/?https://github.com/aertslab/SCENICprotocol/blob/master/notebooks/SCENIC%20Protocol%20-%20Case%20study%20-%20Cancer%20data%20sets.html) and successfully generated the integrated loom file. However, it generates errors when I want to pick out the module for a specific gene for iRegulon. Please check the coding below. The error is
AssertionError: Found 7350 genes present in the network (adjacencies) output, but missing from the expression matrix. Is this a different gene expression matrix?
I guess it may be because we filtered out the genes (weight>50.0%, len(r) >= 10, NES>3) when creating regulons by below coding? But when I try to include all regulons by changing arguments to weight>0%, len(r) >= 0, NES>0, the error keeps the same.
Thanks! Best, YJ