GithubHelp home page GithubHelp logo

Comments (4)

davidroad avatar davidroad commented on August 20, 2024 1

Hi, I found vardict-java will have the same bug. I edited the pipeline myself via this thread.

from varca.

aryarm avatar aryarm commented on August 20, 2024

Hi @lindenb,
No need to apologize! Thank you for reporting this and tracking down the source of the problem!
I think this issue originates with varscan's mpileup2cns outputting REF alleles from the reference genome that GATK cannot handle. Based on this, it looks like the creators of VarScan have already identified this issue and are working on incorporating it into a new release of their software. There is also a Github issue for it here.
In the meantime, since there should be no call at these sites, one potential solution is to just discard records where this occurs. The VarCA pipeline will detect the absence of a variant at discarded sites and automatically label these sites as "no call", as they should be.
Here's a patch for the callers/varscan script. I just deleted the last line and replaced it with an awk command that should remove the problematic records.

--- a/callers/varscan
+++ b/callers/varscan
@@ -13,4 +13,4 @@ output_dir="$4"

 samtools mpileup -l "$peaks" -f "$genome" -B "$bam" | \
 varscan mpileup2cns --p-value 1 --strand-filter 0 --output-vcf > "$output_dir/varscan.vcf" && \
-bgzip -f "$output_dir/varscan.vcf" && tabix -p vcf -f "$output_dir/varscan.vcf.gz"
+awk -F $"\t" -v 'OFS=\t' '/^#/ || $4 !~ /^(R|Y|M|W|S|K|V|H|D|B|N)$/' "$output_dir/varscan.vcf" | \
+bgzip > "$output_dir/varscan.vcf.gz" && tabix -p vcf -f "$output_dir/varscan.vcf.gz"

If you have a chance, can you try this out and let me know if it resolves the problem?

from varca.

aryarm avatar aryarm commented on August 20, 2024

I've created pull request #26 for this patch. I can merge it into master and publish a new release once we are sure that it fixes the problem.
In the meantime, if anybody else runs into this issue, feel free to clone the patch/varscan-iupac branch instead of master. Please also leave a comment if this solves your problem!

from varca.

aryarm avatar aryarm commented on August 20, 2024

Personal correspondence with another VarCA user who ran into the same problem has indicated that the patch successfully resolves this issue. So I'll be merging this into master soon.

from varca.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.