maftools icon indicating copy to clipboard operation
maftools copied to clipboard

can "is.na" expression be part of a query for subsetMaf?

Open xguijarro opened this issue 1 year ago • 0 comments

Hello, I am trying to filter my variants based on population allele frequency with subsetMaf, but I cannot figure out how to keep all those variants without a value for gnomAD_AF . If I try: subsetMaf(maf = aml, query = (is.na("gnomAD_AF") | "gnomAD_AF < 0.1")) And get this error: Error in is.na("gnomAD_AF") | "gnomAD_AF < 0.1" : operations are possible only for numeric, logical or complex types

Any ideas will be really appreciated :)

R version 4.3.1 maftools_2.18.0

xguijarro avatar Jan 22 '24 08:01 xguijarro