Comments (6)
1.6.1 should be available tomorrow from pypi, if you don't mind waiting
from dysgu.
Hi @tbenavi1,
Thanks for reporting this. It looks like a simple index error which should be easy for me to fix. I will take a look today. Would you mind sharing the upstream commands you used for calling and filtering, just for me to check if there it anything else in it? Also could you confirm which version of dysgu you are using, thanks!
from dysgu.
Ive added a fix to the dysgu_dev branch on github https://github.com/kcleal/dysgu/tree/dysgu_dev. You will have to build dysgu from source whilst I finish some other changes being made to version 1.6.1. This can be done by cloning the dev_branch and running the INSTALL.sh script.
from dysgu.
Thank you. I will take a look and see if this fixes my issue.
from dysgu.
Hello, I installed the dev branch (commit 04eb5d1), but I still have the issue. I ran with the same file and got:
Traceback (most recent call last):
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/bin/dysgu", line 33, in <module>
sys.exit(load_entry_point('dysgu==1.6.1', 'console_scripts', 'dysgu')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/dysgu/main.py", line 467, in filter_normal
filter_normals.run_filtering(ctx.obj)
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/dysgu/filter_normals.py", line 907, in run_filtering
good = process_intra(r, posB, bams, infile, bam_is_paired_end, support_fraction, pad=pad, sample=sample_name, keep_all=keep_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/dysgu/filter_normals.py", line 829, in process_intra
if cached and matching_soft_clips(r, cached, is_paired_end):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/dysgu/filter_normals.py", line 594, in matching_soft_clips
break_seqs = BreakSeqs(r)
^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/dysgu/filter_normals.py", line 287, in __init__
left_clip, right_clip = get_contig_clipped_bases(r.info["CONTIGA"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rranallo-benavidez/mambaforge/envs/snakemake/lib/python3.11/site-packages/dysgu/filter_normals.py", line 264, in get_contig_clipped_bases
while cont[i].islower():
~~~~^^^
IndexError: string index out of range
For reference, the filter command I ran was
dysgu filter --normal-vcf results/dysgu/NHA_p1/NHA_p1.svs.vcf -p 32 results/dysgu/NHA_E6E7_D12_PDL50/NHA_E6E7_D12_PDL50.svs.vcf results/BAMS/NHA_p1/T2T.NHA_p1.sorted.bam > results/dysgu/NHA_E6E7_D12_PDL50/NHA_E6E7_D12_PDL50.somatic.vcf
And the call command I ran was:
dysgu call --mode nanopore --mq 20 --overwrite -p 32 {input.ref} {params.tmp} {input.bam} > results/dysgu/NHA_E6E7_D12_PDL50/NHA_E6E7_D12_PDL50.svs.vcf
from dysgu.
Hi @tbenavi1,
I think you might be accidentally using the master branch still. Line 264 in filter_normals.py has been changed on the Dev branch. https://github.com/kcleal/dysgu/blob/dysgu_dev/dysgu/filter_normals.py#L264
from dysgu.
Related Issues (20)
- Generating Alternative Reference HOT 16
- Run OSError: [Errno 24] Too many open files Mac OS M HOT 4
- OverflowError: can't convert negative value to size_t HOT 2
- long reads default mapq lowered to 1: help text for dysgu call still says pacbio and nanopore mode has --mq 20 HOT 1
- When will docker image with new release be available? HOT 1
- Got an warning when Loading Model in "dysgu run" HOT 1
- problems genotyping, dysgu run --sites HOT 3
- clarification needed on RG and samples HOT 4
- Getting SV length in dysgu output vcf HOT 3
- _pickle.UnpicklingError: invalid load key, 'A'. Failed to read from standard input: unknown file type HOT 2
- Subject: Inquiry on Benchmarking DEL and INS Events with dysgu Pipelines. HOT 35
- TypeError: an integer is required when using --sites option and manta.vcf HOT 6
- When combining a large number of samples, the speed is very slow HOT 13
- When merging a large number of samples, the process is very slow
- Long run time HOT 13
- Parameters for R9 Guppy2, 4, 6 HOT 4
- Process_KILLED HOT 7
- Paired-end reads calling sv HOT 6
- Error installing with conda HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dysgu.