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

dumpSTR index error running HipSTR VCF output #143

Closed
limrock1 opened this issue Oct 20, 2021 · 4 comments
Closed

dumpSTR index error running HipSTR VCF output #143

limrock1 opened this issue Oct 20, 2021 · 4 comments

Comments

@limrock1
Copy link

Hi,

I ran HipSTR (v0.6.2) on a single TR region (HD on chr4) as follows

HipSTR --bams SAMP1.cram --fasta genome.fa --silent --regions HipSTR.HTT.bed --lib-from-samp
--def-stutter-model --max-str-len 1200 --min-reads 15 --output-filters --str-vcf SAMP1.vcf.gz ;

I then ran dumpSTR (v4.0.0) with the following command:

dumpSTR --vcf SAMP1.vcf.gz --vcftype hipstr --hipstr-max-call-DP 1000 --hipstr-min-supp-reads 1
--verbose --out SAMP1_L1_filter

and got the following error:

Overwriting the preexisting info AC field
Overwriting the preexisting info REFAC field
Traceback (most recent call last):
File "/software/miniconda3/bin/dumpSTR", line 8, in
sys.exit(run())
File "/software/miniconda3/lib/python3.8/site-packages/trtools/dumpSTR/dumpSTR.py", line 1245, in run
retcode = main(args)
File "/software/miniconda3/lib/python3.8/site-packages/trtools/dumpSTR/dumpSTR.py", line 1183, in main
record = ApplyCallFilters(record, call_filters, sample_info, invcf.samples)
File "/software/miniconda3/lib/python3.8/site-packages/trtools/dumpSTR/dumpSTR.py", line 569, in ApplyCallFilters
filt_output = filt(record)
File "/software/miniconda3/lib/python3.8/site-packages/trtools/dumpSTR/filters.py", line 505, in call
if "/" in record.format["GB"][samples_to_check][0]: delim = "/"
IndexError: index 0 is out of bounds for axis 0 with size 0

Any ideas what might be going on here?
Thanks,
Sean.

@LiterallyUniqueLogin
Copy link
Contributor

Yeah, I think I know the bug - I believe it's the same as what a teammember sent me recently. Let me try to get the change I'm intending out today and see if that fixes it for you.

@limrock1
Copy link
Author

K, thanks.

gymreklab added a commit that referenced this issue Oct 21, 2021
@LiterallyUniqueLogin
Copy link
Contributor

TRTools 4.0.1 is out on PyPI and is in the process of being released on bioconda, I'll ping when that's done. Please upgrade and let me know if that fixes the issue.

@LiterallyUniqueLogin
Copy link
Contributor

It is now published on bioconda as well. I'm closing this issue, feel free to post back if there are still problems.

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