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

Compound Hets issue #927

Closed
Phillip-a-richmond opened this issue Mar 29, 2019 · 3 comments
Closed

Compound Hets issue #927

Phillip-a-richmond opened this issue Mar 29, 2019 · 3 comments

Comments

@Phillip-a-richmond
Copy link

I'm getting this error when running compound het models:

Traceback (most recent call last):
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/bin/gemini", line 7, in
gemini_main.main()
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/anaconda/lib/python2.7/site-packages/gemini/gemini_main.py", line 1249, in main
args.func(parser, args)
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/anaconda/lib/python2.7/site-packages/gemini/gemini_main.py", line 711, in comp_hets_fn
CompoundHet(args).run()
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/anaconda/lib/python2.7/site-packages/gemini/gim.py", line 307, in run
for i, s in enumerate(self.report_candidates()):
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/anaconda/lib/python2.7/site-packages/gemini/gim.py", line 213, in report_candidates
for gene, li in self.candidates():
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/anaconda/lib/python2.7/site-packages/gemini/gim.py", line 464, in candidates
gt_types, gt_bases, gt_phases = row['gt_types'], row['gts'], row['gt_phases']
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/anaconda/lib/python2.7/site-packages/gemini/GeminiQuery.py", line 449, in getitem
self.cache[key] = self.unpack(self.row[key])
File "/mnt/causes-vnx1/DATABASES/GEMINI-2019/anaconda/lib/python2.7/site-packages/gemini/compression.py", line 99, in snappy_unpack_blob
arr.setflags(write=True)
ValueError: cannot set WRITEABLE flag to True of this array

This is my command:

Compound Het Variants

$GEMINI comp_hets
--columns "$COLUMNS"
--filter "$GNOMAD_GENOME_RARE AND $GNOMAD_EXOME_RARE AND $CONFIDENTREGION AND $SEGDUP AND $INHOUSE_RARE AND ($IMPACT_HIGH OR $IMPACT_MED) AND $FILTER"
-d $STRICT_MIN_DP
--min-gq $STRICT_MIN_GQ
$GEMINIDB > $COMPOUND_HET_OUT
python $TableAnnotator -i $COMPOUND_HET_OUT -o ${COMPOUND_HET_OUT}_annotated.txt

My pipeline is:
From Merged.vcf
SNPeff (GRCh37.75) / VT
bgzip/tabix
BCFTools
VCFAnno
VCF2DB
gemini

With the old gemini it works just fine, but with the update this issue arises. I can provide the database directly if it's not on GitHub (~200M for chr20 of NA12878 trio). Is this because there are no candidate compound het variants? Or is it perhaps because something has changed with the gemini load command specific to gene files that is different than my pipeline?

Thanks,
Phil

@brentp
Copy link
Collaborator

brentp commented Mar 30, 2019

it looks like you can resolve this with:

pip install numpy==1.15.4

or whatever your conda equivalent of that might be.

see: pandas-dev/pandas#24839

@Phillip-a-richmond
Copy link
Author

Fixed.

Thanks.

@snashraf
Copy link

snashraf commented Apr 5, 2021

Hi Philip,
Are you getting this issue with only vcf2db generated databases or even with Gemini generated DB as well?
Regards,
Najeeb

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