Skip to content

Commit

Permalink
doc comment for filter_list in pydantic model for somatic_variant_fil…
Browse files Browse the repository at this point in the history
…tration
  • Loading branch information
tedil committed May 23, 2024
1 parent ad066b3 commit 000f478
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions snappy_pipeline/workflows/somatic_variant_filtration/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,23 @@ class SomaticVariantFiltration(SnappyStepModel):
eb_filter: Annotated[EbfilterSet | None, Field(deprecated="use filter_list instead")] = None

filter_list: list[Filter] = []
"""
Available filters
dkfz: {} # Not parametrisable
ebfilter:
ebfilter_threshold: 2.4
shuffle_seed: 1
panel_of_normals_size: 25
min_mapq: 20
min_baseq: 15
bcftools:
include: "" # Expression to be used in bcftools view --include
exclude: "" # Expression to be used in bcftools view --exclude
regions:
path_bed: REQUIRED # Bed file of regions to be considered (variants outside are filtered out)
protected:
path_bed: REQUIRED # Bed file of regions that should not be filtered out at all.
"""

@model_validator(mode="after")
def ensure_filter_list_is_configured_correctly(self: Self) -> Self:
Expand Down

0 comments on commit 000f478

Please sign in to comment.