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

Illegals storage access. (Attempt to read from nil) #53

Closed
vdejager opened this issue May 13, 2020 · 6 comments
Closed

Illegals storage access. (Attempt to read from nil) #53

vdejager opened this issue May 13, 2020 · 6 comments

Comments

@vdejager
Copy link

Hi Brent,

I'm trying to compare two VCFs (hg19) for relatedness and stumbled on your tool.

somalier extract -d extracted/ --sites /home/victor/commondata/sites.hg19.vcf.gz -f /home/victor/commondata/human_g1k_v37_decoy.fasta 071181/071181_xAtlas.recode.sorted.vcf.gz
somalier version: 0.2.10
[W::bcf_hdr_check_sanity] PL should be declared as Number=G
[somalier] FORMAT field 'AD' not found for depth information. using genotype only
[somalier] found 10531 sites
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

any ideas how to resolve this? its probably a file that cannot be accessed similar to one ticked reported for slivar

@vdejager
Copy link
Author

vdejager commented May 13, 2020

Hi Brent, the problem seems to be in the VCF file. If I run somalier with GATK3 VCF files it works perfectly. the xAtlas VCF file shows the above issue (tested with a variety of xAtlas files and GATK3 & 4 files. The same occurs with multisample VCF files, GATK derived multisample files work fine, xAtlas multisample files crash somalier).

@brentp
Copy link
Owner

brentp commented May 13, 2020

Hi, can you share the input VCF file?

@vdejager
Copy link
Author

I've send the link through your gmail account

@brentp
Copy link
Owner

brentp commented May 13, 2020

Got it. Thanks for sending.
Your sample name is a long path, e.g. /path/to/SNVCalling_20190403_xatlas/071180. somalier tries to use that as part of a file to open (assuming it would be something like sample_0711801). I'll try to give a better error message for this, but even then you'll have to change your sample name to something that's not path-like.

@vdejager
Copy link
Author

ah OK I see, i'll rename the samples and try again

@brentp
Copy link
Owner

brentp commented May 13, 2020

I am making a change so you'll see:

Error: unhandled exception: somalier: error opening file: extracted///path/to/xatlas/071180.somalier [IOError]

which will at least give a little more insight into what is going on.

brentp added a commit that referenced this issue May 13, 2020
brentp added a commit that referenced this issue May 13, 2020
@brentp brentp closed this as completed Jun 18, 2020
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