eastgenomics / eggd_generate_variant_workbook

DNAnexus app for generating xlsx variant workbooks
3 stars 0 forks source link

Allow removal of combined variant consequences by specifiying only singular terms in the UI #105

Open spaul91 opened 2 years ago

spaul91 commented 2 years ago

Currently, removing variant consequences with multiple combinations of terms requires the user knows in advance what combinations they'll need to remove.

E.g., bcftools filter -e "CSQ_Consequence==\"intron_variant\" | CSQ_Consequence==\"non_coding_transcript_variant\"" will remove entries with either of the terms, but won't match them in combination (intron_variant&non_coding_transcript_variant will remain).

Could we change the way this works so that if a variant matches all of the specified terms, it gets removed? It'd remove the need to know the combinations up front, and make the commands easier to deal with.

One caveat I can think of are cases where the user wants to remove all cases matching one term - e.g., remove all variants with intron_variant, ignoring what else is present.