-
Notifications
You must be signed in to change notification settings - Fork 71
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 when running gridss_somatic_filter #635
Comments
The script only supports gridss vcfs. These vcfs have one ALT allele per
record.
Alternatively, it could be a R/bioconductor version issue on your
environment.
…On Tue, 25 July 2023, 12:28 am Kez Cleal, ***@***.***> wrote:
Hi,
Ive run in to an error running the somatic filter:
Rscript ./GRIDSS/gridss_somatic_filter --input ERR2752450.gridss.vcf --output gridss_hq_somatic.vcf.gz --scriptdir ./GRIDSS/
No reference genome supplied using --ref. Not performing variant equivalence checks.
2023-07-24 13:50:28 Reading ERR2752450.gridss.vcf
Tumour samples: ERR2752450.cram
Matched normals: ERR2752449.cram
Error in `str_detect()`:
! `string` must be a vector, not a <CompressedCharacterList> object.
Backtrace:
▆
1. ├─global align_breakpoints(full_vcf)
2. │ └─stringr::str_detect(VariantAnnotation::fixed(vcf)$ALT, "[\\]\\[]")
3. │ └─stringr:::check_lengths(string, pattern)
4. │ └─vctrs::vec_size_common(...)
5. └─vctrs:::stop_scalar_type(`<fn>`(`<CmprssCL>`), "string", `<env>`)
6. └─vctrs:::stop_vctrs(...)
7. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call)
Execution halted
Any ideas about how to fix this, thanks?
—
Reply to this email directly, view it on GitHub
<#635>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOBYOEYGKYWF2II7MJ4HWTXR2BAXANCNFSM6AAAAAA2VVRHIA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks @d-cameron for the quick reply. The vcf was generated by gridss. I will make a new environment and try re-installing, thanks! |
Hello, I produced tumor/normal vcfs with gridss and would now like to postprocess with 'gridss_somatic_filter'. I ran into the exact issue/error as above and would need advise what to try next. Any help is greatly appreciated! ------>8---------------------
Execution halted Details: ... Error in .TwoBits_export(mapply(.DNAString_to_twoBit, object, seqnames), : It builds fine with Biocoductor BSgenome library version 1.70 on my system R 4.3, and I am using this BSgenomes package (BSgenome.xxx.yyy.zzz). |
Update: The bioconductor R-library BSgenome version 1.68 from gridss conda install fails to produce a BSgenome package. It was apparently built (R CMD build) without the --keep-empty-dirs flag, so the necessary directories /inst/extdata/ were missing. Creating them solved the issue. See https://support.bioconductor.org/p/124169/ |
and I can confirm that my gridss produced vcf has only one REF and one ALT allele per locus. Example entries. Some do contain ".", though. bcftools query -f '%CHROM %POS %REF %ALT\n' xxx.vcf |
Hello, I have been having the same error as warthmann above. Has there been any solution to this? |
A quick fix that worked for me:
Original:
New:
Then rerun gridss_somatic_filter. Note: this assumes that the ALT fields contain a single allele per line, which seems to be the case in my GRIDSS output VCF files. |
Great! thanks @hberger, your fix worked for me as well. I.e., the script now ran through. |
Changed line 780 per PapenfussLab#635 Original: isbp = str_detect(VariantAnnotation::fixed(vcf)$ALT, "[\\]\\[]") New: isbp = str_detect(as.character(VariantAnnotation::fixed(vcf)$ALT), "[\\]\\[]")
Hi,
Ive run in to an error running the somatic filter:
Any ideas about how to fix this, thanks?
The text was updated successfully, but these errors were encountered: