Open mugpeng opened 2 years ago
I also confronted this fatal error. Even I try to install the latest MCR version, the gistic 2.23 version is not compatible and could not be installed successfully. Then I downloaded the MCR 2014a from https://ww2.mathworks.cn/products/compiler/matlab-runtime.html to replace the tar.gz file version (ftp://ftp.broadinstitute.org/pub/GISTIC2.0/), gistic could not be installed successfully. I search the google and MCR forum, but none of the solution worked. I think the biggest problem was from the gp_gistic2_from_seg file which had been compiled via MATLAB.
Here is my gistic setting FOLLOW the guideline:
MCR_ROOT=$HOME/MATLAB_Compiler_Runtime MCR_VER=v83 echo Setting Matlab MCR root to $MCR_ROOT
LD_LIBRARY_PATH=$MCR_ROOT/$MCR_VER/runtime/glnxa64:$LD_LIBRARY_PATH LD_LIBRARY_PATH=$MCR_ROOT/$MCR_VER/bin/glnxa64:$LD_LIBRARY_PATH LD_LIBRARY_PATH=$MCR_ROOT/$MCR_VER/sys/os/glnxa64:$LD_LIBRARY_PATH export LD_LIBRARY_PATH XAPPLRESDIR=$MCR_ROOT/$MCR_VER/v83/X11/app-defaults export XAPPLRESDIR
$HOME/gistic/gp_gistic2_from_seg $@
When I execute the run_gistic_example script, this fatal error is reproducible.
Here I post my crash report: matlab_crash_dump.41081-1.txt matlab_crash_dump.41081-2.txt
Hi, mugpeng
When I debugged these fatal error occurred, I found a solution to solve these bug.
Since MCR version is different from the entire MATLAB version installation, there is no graphical user interface (GUI) instead of command line operation. Thus, after finishing the installation, we should set the DISPLAY off to inhibit the dynamic linking library activation.
You shall run the command firstly before executing GISTIC as listed below:
Terminal:
unset DISPLAY
or you can add the 'unset DISPLAY' command in the shell script file as illustrated below:
#!/bin/sh
unset DISPLAY
basedir=$HOME/results
segfile=$HOME/biosoft/segment.seg
refgenefile=$HOME/biosoft/refgenefiles/hg19.mat
$HOME/biosoft/gistic2 -b $basedir -seg $segfile -refgene $refgenefile -genegistic 1 -smallmem 1 -broad 1 -brlen 0.5 -conf 0.90 -armpeel 1 -savegene 1 -gcm extreme -rx 0
Here I post my successful results:
Hope you succeed!
Hello! @mkfeng1988 @mugpeng
I was also experiencing this issue.
unset DISPLAY
did not help me.
However,
Lowering the number of CPU cores used in my docker run
command solved the issue. Here's how to do that.
😊
Hello @TylerMclaughlin Thanks for your experience sharing. As I am not good at MATLAB programming, GISTIC2 encoded via MATLAB complier does exit various problem depending on the environment of your operation Linux System setting. Hope We have a good luck and find the solution to fix the problem we confront.
Hi,
Recently, I wanna calculate gistics from the tcga, but the program was interrupted with below error info in my log:
And the output document only including:
The only difference of this file is the size, because this segment file is pretty bigger(combination of tcga data)
I saw this error was might be a bug that due to a matlab version problem.
But I am still puzzle, because the problem never happen when I handle other data in the past.
My os: 20.04.1-Ubuntu
My command:
Thanks.