Giter Site home page Giter Site logo

Comments (7)

btmartin721 avatar btmartin721 commented on July 3, 2024

Hi.

The error is occurring because the ipyrad and stacks VCF files have a field that has the allele depths in it, but your GATK 4 file seems to either not have the allele depths (AD) field or it might be in a different location or have a different format than ipyrad and stacks. vcf2bgc.py hasn't been tested with GATK 4 VCF files, and VCF files have a lot of variant formats.

If you could send me your VCF file, I can see if it would be possible to add support for GATK 4 VCF files. If it has the Allele Depth (AD) field in the FORMAT tag, then it should be possible to add it. See the example record below to see where you can find the AD field. You can email me your VCF file if you want and I'll see if I can add support for that format.

#CHROM  POS  ID  REF  ALT  QUAL  FILTER  INFO  FORMAT  NA12878 [other samples...]
20  10001019   .  T  G  364.77  .  [CLIPPED]  GT:AD:DP:GQ:PL  0/1:18,15:33:99:393,0,480

from clinehelpr.

glaudelrio avatar glaudelrio commented on July 3, 2024

from clinehelpr.

btmartin721 avatar btmartin721 commented on July 3, 2024

Hi,

I was not able to reproduce the error you received with the VCF file you sent me. Note that I subset the number of sites to the same number that it printed above, and I am not 100% sure that I assigned the same individuals to P1, P2, and admixed populations. But it seemed to run all the way through. Is the VCF file you ran above any different than the one you sent me?

-Bradley

from clinehelpr.

glaudelrio avatar glaudelrio commented on July 3, 2024

Hi Bradley, I tried running absolutely the same vcf (I prefer working with the vcf to bgc instead of geeing) and I have the same problem again. Do you think there is anything wrong with my installation? I am not familiar with docker.

image

Thank you so much!

from clinehelpr.

btmartin721 avatar btmartin721 commented on July 3, 2024

Again, I apologize for my delayed reply. I think I know what the issue is. I added support for stacks recently, and I think I need to rebuild the docker image. So in other words, the vcf2bgc.py file in the ClineHelpR/scripts directory is correct, but I haven't added the updated file to the docker image.

from clinehelpr.

btmartin721 avatar btmartin721 commented on July 3, 2024

the reason I mentioned stacks is because I think that format also works with the VCF file generated by GATK4.

from clinehelpr.

btmartin721 avatar btmartin721 commented on July 3, 2024

Hi. I fixed the issue with the Docker version of the vcf2bgc.py script. It should work now. I'm closing the issue, but if it still doesn't work let me know.

You should run:

sudo docker pull btmartin721/clinehelpr:latest

to pull the new docker image.

from clinehelpr.

Related Issues (17)

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.