Skip to content
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

vcf file contains two sample #6

Open
wangdepin opened this issue Apr 10, 2021 · 2 comments
Open

vcf file contains two sample #6

wangdepin opened this issue Apr 10, 2021 · 2 comments

Comments

@wangdepin
Copy link

Dear Sir,
When I used the command below to calculate TMB, it happens to some error:
python ../../bin/pyTMB.py
-i ./629066_190229.snp_indel.filter.vcf
--effGenomeSize 33280000
--vaf 0.05 --maf 0.001 --minDepth 20 --minAltDepth 2
--filterLowQual --filterNonCoding --filterSyn --filterPolym
--polymDb 1k,gnomad
--dbConfig ../../config/annovar_102015.yml
--varConfig ../../config/mutect2.yml
Error: 2 sample detected. This version is designed for a single sample !
So, how to calculate TMB for vcf file which contains more sample? Thank you so much!

Depin.

@tomgutman
Copy link
Collaborator

Hello,

to compute TMB score from multisample vcf, you could specify the argument --sample with the sample ID to focus on on the command line.

Another more complex solution would be to split your vcf in mono-sample vcfs with
bcftools view -c1 -Oz -s $sample -o sample.vcf.gz multisample.vcf

Tom

@wangdepin
Copy link
Author

thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants