Skip to content

Allow --mask to lower-case regions instead of only replacing them with a character #1382

Closed
@kpj

Description

The new implementation of the --mark-snv parameter (see #1381) is very close to another feature which would be useful for us.
Would it be possible to also use it like the --mask parameter, i.e. with a bed file which specifies regions to convert to lower/upper case?

An elegant solution might be to allow multiple masking parameters with different "actions". That way, the call bcftools consensus --mask low_coverage.bed N --mask special_regions.bed lc ... would replace regions of low coverage with N and convert interesting regions to lower case.

Our use case is that we like to mark bases within certain coverage ranges in the output consensus file with lower case letters, while all other bases are in upper case.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions