Skip to content

Duplicated CYP2D6 diplotypes in matcher JSONs #184

@BinglanLi

Description

@BinglanLi
  • Do you want to request a feature or report a bug?

bug

  • What is the current behavior?

For some test samples, Matcher JSON has duplicate CYP2D6 diplotypes under the -research cyp2d6,combinations mode.

The duplicates can be found under CPIC-CYP2D6-diplotypes. The attached mock VCF will produce a Matcher JSON with two (2) *1/[*3 + *4 + *122]

  • If the current behavior is a bug, please provide the steps to reproduce and, if possible, your example input data via a Gist or similar.

This could be reproduced by running

docker run --rm -v ./:/pharmcat/data pgkb/pharmcat pharmcat -vcf data/mock_test.vcf -research combinations,cyp2d6
  • What is the expected behavior?

Only one unique diplotype should be reported.

  • What is the motivation / use case for changing the behavior?

The number of unique diplotypes from the Matcher JSON files helps determine the fields of the Phenotyper JSON I should process.

  • Please tell us about your environment:

    • PharmCAT Version: 2.13.0
    • JDK Version: openjdk 17.0.6
    • Environment: [ Windows | macOS | Linux distro | etc ]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, e.g. stackoverflow, gitter, etc.)
    test_file.zip

Metadata

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