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

"segmentation fault" using spitted vcf files #15

Open
liangjiaoxue opened this issue Jan 27, 2017 · 6 comments
Open

"segmentation fault" using spitted vcf files #15

liangjiaoxue opened this issue Jan 27, 2017 · 6 comments

Comments

@liangjiaoxue
Copy link

liangjiaoxue commented Jan 27, 2017

Hi Peter,
I am trying to split one large vcf file into smaller files so that I could run the jobs parallelly. I always get the "segmentation fault" error for some of the small files(7 of 22 total files). However, the HapCUT2 works well on the original file.
Could you please give some suggestion to fix this? Thanks!

Liangjiao

@nh13
Copy link
Contributor

nh13 commented Jan 27, 2017

Could you post an example invocation and an original file to debug?

@liangjiaoxue
Copy link
Author

liangjiaoxue commented Jan 27, 2017

Here it the command line:
module load hapcut2
HAPCUT2 --fragments fragment_two_Chr01_P22.txt
--vcf P717_Chr01_part_P22.vcf
--output haplotype_Chr01_22.txt 1>Chr01_22_log.txt 2>Chr01_22_err.txt

The (zipped) input files are here
(deleted)

Thanks

@liangjiaoxue
Copy link
Author

Hello Peter,
Please hold this issue. There is an error in the VCF file at the junction between headlines and content lines.
I will rerun the jobs and let you know whether the problem will be gone. Sorry for the confusing information.

@nh13
Copy link
Contributor

nh13 commented Jan 27, 2017

@liangjiaoxue not Peter, but good luck!

@pjedge
Copy link
Owner

pjedge commented Jan 27, 2017 via email

@liangjiaoxue
Copy link
Author

Hello Nils and Peter,

I think I can repeat the error now. This was caused by an error in the VCF file. If there is no "\n" at the end of the last line (as in my manually generated testing file), HapCUT2 will report "segmentation fault".
Thank you for writing this great tool for haplotype assembly.
Best,

Liangjiao

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

3 participants