Giter Club home page Giter Club logo

Comments (5)

lucasbrambrink avatar lucasbrambrink commented on August 19, 2024

Hi Eva,

Thanks for the question. This is convention for gVCF compression. If every depth change creates a new line, the gVCF files will get incredibly large, to the point that it would be larger than the BAM file itself. At that point, it is easier to calculate the read depth using the BAM file.

In case it is helpful, there is a boolean flag --include_med_dp you can pass to make_examples as make_examples_extra_args when calling run_deepvariant that will include the median DP observed within the GVCF block rounded to the nearest integer.

Hopefully that helps!

from deepvariant.

ESDeutekom avatar ESDeutekom commented on August 19, 2024

Thank you Lucas for your answer. I understand it is for compression. I think I was looking for a similar function to GATK BP resolution. When you use targets, the output would be reduced by a lot. The gvcf becomes rather useless, since you cannot look at or filter individual sites on depth. Some sites might have a depth well over my threshold, but is filtered because the minimum depth is well under my threshold. I am thinking the median DP will have similar issues.

from deepvariant.

kishwarshafin avatar kishwarshafin commented on August 19, 2024

@ESDeutekom ,

If the purpose of this is filtering, you can run something like https://github.com/brentp/mosdepth to get bp resolution coverage. Then create a bed file based on your requirement. Finally, intersect the VCF file with the bed and it should give you the variants you are looking for.

from deepvariant.

ESDeutekom avatar ESDeutekom commented on August 19, 2024

Dear @kishwarshafin, thank you for the information.

I opted for samtools depth. It also gives some option filter on base and mapping quality and such, next to target filtering.

from deepvariant.

kishwarshafin avatar kishwarshafin commented on August 19, 2024

@ESDeutekom , great, I will close the issue. Please feel free to reopen if you have further questions.

from deepvariant.

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.