-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error during MAVIS setup #246
Comments
@sarahdada could you include the vcf header and variant line in question? Which file did the error occur on (should have a log message for which one it was converting above the error) To get the relevant lines you can use grep grep 'chr19:27302623' diploidSV.de_novo.vcf and the header grep '^##' diploidSV.de_novo.vcf Make sure to remove any identifiers before posting (library names, patient names, etc) |
For grep chr19, it doesn't seem to come up with anything- so maybe the SV caller format is off
|
The error comes when: (base) [sdada@gphost14 MAVIS]$ mavis setup file.cfg -o /path/MAVIS Header for DELLY (base) [sdada@gphost14 hg38_PG0003514_3838_4859_fastq_SV]$ grep '^#' file.vcf DELLY vcf grep chr19 does get a result. I can't scroll up on error but can just quickly rerun
|
ok so I actually might know what's going on here. It looks like the DELLY is using an alt format that is close but doesn't match the vcf 4.2 specification (despite the header)
They have |
What version of delly are you using? |
/gsc/software/linux-x86_64-centos7/delly-0.8.7/bin/delly is what i am using thanks cara!! |
I used delly-0.8.1 , am clearly making an error here
|
This sounds like you didn't add a reference file you need? or you set it to None. What does the reference section of your mavis config look like? |
Hi Cara, (Un)Shockingly you are right; I didnt have the right masking etc for my ref. Changed Ref. THANKS |
|
|
ok, looks like this is an input issue rather than a bug so I am going to remove the bug label for now. If you are able to determine whether it is a problem with DELLY or BCFtools then you can reference this issue when you create one in the corresponding repo for the bug. In the meantime if we are |
Describe the bug
This bug shows the following error during setup, it might be an issue with parsing. I am running manta-1.4.0 , the data might be in the wrong format.
To Reproduce
Steps to reproduce the behavior: .cfg file was made using the commands
mavis config
--library PG00038 genome normal False hg38_PG1.bam
--library PG00037 genome normal False hg38_PG2.bam
--library PG00048 genome diseased False hg38_PG3.bam
--convert delly PG_dellysomatic_hg38.vcf delly
--convert manta diploidSV.de_novo.vcf manta
--assign PG1 delly manta
--assign PG2 delly manta
--assign PG3 delly manta
-w PG0001_2_3.cfg
The problem
File "/home/user/miniconda3/bin/mavis", line 8, in
sys.exit(main())
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/main.py", line 600, in main
raise err
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/main.py", line 582, in main
pipeline = _pipeline.Pipeline.build(config)
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/schedule/pipeline.py", line 350, in build
libconf.inputs = run_conversion(config, libconf, conversion_dir)
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/schedule/pipeline.py", line 81, in run_conversion
convert_tool_output(
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/tools/init.py", line 34, in convert_tool_output
_convert_tool_output(
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/tools/init.py", line 276, in _convert_tool_output
rows = read_vcf(input_file, file_type, log)
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/tools/vcf.py", line 197, in convert_file
raise err
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/tools/vcf.py", line 194, in convert_file
rows.extend(convert_record(vcf_record, log=log))
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/tools/vcf.py", line 110, in convert_record
chr2, end, orient1, orient2, ref, alt = parse_bnd_alt(alt)
File "/home/user/miniconda3/lib/python3.8/site-packages/mavis/tools/vcf.py", line 74, in parse_bnd_alt
raise NotImplementedError('alt specification in unexpected format', alt)
NotImplementedError: ('alt specification in unexpected format', ']chr19:27302623]')
Expected behavior
Consolidation of SV data
Versions (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: