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

How to combine delly,lumpy,manta and tiddit result? #60

Closed
ld9866 opened this issue Oct 18, 2022 · 5 comments
Closed

How to combine delly,lumpy,manta and tiddit result? #60

ld9866 opened this issue Oct 18, 2022 · 5 comments

Comments

@ld9866
Copy link

ld9866 commented Oct 18, 2022

Dear developer:
Now we have used four methods to detect the structural variation of individuals, but we found that it can not well combined. We used the following code, but soon got an error report. How do you solve this problem?
svdb --merge --vcf ERS177302.delly.vcf ERS177302.lumpy.vcf ERS177302.manta.vcf ERS177302.tiddit.vcf > ERS177302.combine.vcf

Traceback (most recent call last):
File "/home/ld/anaconda3/bin/svdb", line 33, in
sys.exit(load_entry_point('svdb', 'console_scripts', 'svdb')())
File "/home/ld/Software/SVDB-2.6.4/svdb/main.py", line 187, in main
merge_vcf_module.main(args)
File "/home/ld/Software/SVDB-2.6.4/svdb/merge_vcf_module.py", line 171, in main
chrA, posA, chrB, posB, event_type, INFO, FORMAT = readVCF.readVCFLine(line)
File "svdb/readVCF.py", line 12, in svdb.readVCF.readVCFLine
IndexError: list index out of range

@ld9866
Copy link
Author

ld9866 commented Oct 18, 2022

Addtionally, svdb --merge --vcf ERS177302.lumpy.vcf ERS177302.tiddit.vcf > ERS177302.combine.vcf work well.

@ld9866
Copy link
Author

ld9866 commented Oct 18, 2022

We found when we add the delly result "ERS177302.delly.vcf" the error occurred.
Could SVDB solve the delly result?

1 similar comment
@ld9866
Copy link
Author

ld9866 commented Oct 18, 2022

We found when we add the delly result "ERS177302.delly.vcf" the error occurred.
Could SVDB solve the delly result?

@J35P312
Copy link
Owner

J35P312 commented Oct 19, 2022

Hello!
And thanks for the detailed information!

SVDB crashes on line 12, while reading the delly vcf:

File "svdb/readVCF.py", line 12, in svdb.readVCF.readVCFLine

here SVDB tries to access the position of the variant (column 2 in the vcf):

posA = int(variation[1])

Column 2 is not present:

IndexError: list index out of range

Delly VCF files are usually fine, they should have all mandatory columns. Maybe the vcf is broken? Have you checked the last lines of it (using tail for instance). Or could it be that the vcf is compressed? I would double check that the file is not compressed, then I would run it through gatk ValidateVariants or similar.

Good luck!

@ld9866
Copy link
Author

ld9866 commented Oct 19, 2022

Thank you for your prompt reply!
We found errors in this vcf. Some of the first and last lines did not start with #. After deletion, it runs perfectly.
thank you!

@ld9866 ld9866 closed this as completed Oct 19, 2022
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