-
Notifications
You must be signed in to change notification settings - Fork 7
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
Segmentation fault #11
Comments
Hi XY In src/partition.cpp, there is a pragma statement in line 339. This statement has been known to cause a race condition. Could you try compiling the code after commenting this, and then run the Weaver PLOIDY and LITE options? |
Hi @ashokrajaraman , Thanks for your reply. I worked with the sys admin who helped me compile the program since then and we are now able to get rid of the Segmentation fault error for Weaver main program. The example command involving Weaver PLOIDY runs successfully. However, when I invoke Weaver LITE command from the example, the output files got created but none populated with data.
So I thought this maybe due to skipping the "solo_ploidy TARGET 2" command, but when I execute it I got Segmentation fault again:
and this cannot be solved by recompiling the program. Do you have any thought on this? Thanks! |
Hi @xtYao , Actually, you should not have to run |
@ashokrajaraman Thanks so much for the explanation! I see the Weaver LITE is running.
Unfortunately the example command is now halted at this error:
By any chance you have run into it before? Attached the stdout. Thanks! |
Could you set the -r option to 1 and try again? I think that might be the issue here. |
@ashokrajaraman Yes, you're right. I changed the '-r' to 1 and I realized we have gone through this in another thread. Thanks again! Next question is, the LITE command stopped at:
Maybe related to this, I noticed a error upstream that didn't cause the program to stop where it couldn't find the bedtools. The path '/../external_bin/bedtools' obviously is not correct since it searches for the root dir. I tried loading the bedtools explicitly in my $PATH before running the Weaver LITE command, and it still tried to find bedtools in that wrong path. Is there a way to make Weaver use the bedtools in environment variable?
Attached stdout again. |
No, the bedtools part should be different. In fact, I have not seen anyone have a problem with finding the bedtools binary, since the Weaver_pipeline.pl script explicitly uses the relative location of the binary in Weaver/external_bin/. We may change this later, but that's how it is for now. I would check if the path to this directory has not been modified in any of the perl or shell scripts in Weaver/bin and Weaver/Weaver_SV/bin/. The assertion for |
I have the same problem and it is not a user error. Uncommenting main.cpp:250 indicates that BIN is set to an empty string. Weaver is in fact attempting to call |
Hi @ashokrajaraman @leofountain ,
I tried running Weaver's example code again, nevertheless the "segmentation fault" error still persists. Below are the outputs of the command:
-- Weaver PLOIDY
$ Weaver PLOIDY -f $example/INPUT/SIMU.fa -S $example/INPUT/FINAL_SV -s $example/INPUT/SNP -g $example/INPUT/REGION -w $example/INPUT/X.bam.wig -r 0 -m $example/INPUT/map100mer.bd -p 64 -t 20 -n 0 RUN MODE PLOIDY THREAD was set to 64. FASTA was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/SIMU.fa. WIG was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/X.bam.wig. MAP was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/map100mer.bd. SV was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/FINAL_SV. SNP was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/SNP. GAP was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/REGION. RUNFLAG was set to 0. chrA 13388 chrB 9702 Getting coverage profile... Getting coverage profile done! Getting GC content done! Getting Mapability done! Segmentation fault
-- Weaver LITE
$ Weaver LITE -f $example/INPUT/SIMU.fa -S $example/INPUT/FINAL_SV -s $example/INPUT/SNP -g $example/INPUT/REGION -w $example/INPUT/X.bam.wig -r 0 -m $example/INPUT/map100mer.bd -p 64 -t 20 -n 0 RUN MODE LITE THREAD was set to 64. FASTA was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/SIMU.fa. WIG was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/X.bam.wig. MAP was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/map100mer.bd. SV was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/FINAL_SV. SNP was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/SNP. GAP was set to /gpfs/commons/home/yaox-934/tmp/weaverTest/Weaver_example/INPUT/REGION. RUNFLAG was set to 0. TUMOR coverage was set to 20. NORMAL was set to 0. chrA 13388 chrB 9702 Getting coverage profile... Getting coverage profile done! Getting GC content done! Getting Mapability done! Segmentation fault
These command gave me two temporary files (supposedly):
$ ls -l total 1071872 -rw-rw---- 1 yaox-934 milab 405 Oct 29 2014 cmd drwxrwx--- 2 yaox-934 milab 4096 Oct 29 2014 INPUT drwxrwx--- 2 yaox-934 milab 4096 Nov 3 2014 OUTPUT -rw-rw-r-- 1 yaox-934 milab 0 Mar 6 14:25 TARGET -rw-rw-r-- 1 yaox-934 milab 1609869 Mar 6 14:27 tempfile -rw-rw---- 1 yaox-934 milab 1097298665 Oct 29 2014 X.bam -rw-rw---- 1 yaox-934 milab 161816 Oct 29 2014 X.bam.bai
Have you seen this error before? What might be the cause for it?
Thanks,
XY
The text was updated successfully, but these errors were encountered: