VariantAnnotation quality filter
0
1
Entering edit mode
ribioinfo ▴ 100
@ribioinfo-9434
Last seen 3.7 years ago

Hi I would like to filter my vcf file for MQRankSum and MQ parameters. I have found the function filterVcf() but I can not understand how to use it for this type of filtering. E.g. if I wanted to filter for MQRankSum > -12.5 and MQ > 40 I could use this function?:

filt_vcf=function(vcf, MQRankSum, MQ) {
  info = info(vcf)
  info_filt = !is.na(info(vcf)$MQRankSum) & info(vcf)$MQ>MQ
  return(vcf[info_filt])
}

Thank you.

Riccardo

variantannotation • 806 views
ADD COMMENT
0
Entering edit mode

Can you edit your question to include what you've done, and then post a comment indicating that you've done so? You mention 'manual' but just in case there is both a vignette and standard help page ?filterVcf.

ADD REPLY

Login before adding your answer.

Traffic: 661 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6