iossifovlab / gpf

GPF: Genotypes and Phenotypes in Families
MIT License
2 stars 0 forks source link

Fix pheno classification #704

Closed IvoTod closed 3 weeks ago

IvoTod commented 3 weeks ago

Background

Pheno classification was mistakenly merged and not reverted while it was a WIP.

Aim

Finish up whatever work was left.

Implementation

A new option has been added to the pheno import tool. --inference-config points to a yaml file containing a dict of wildcards to inference configurations. The inference configurations have been given a pydantic class for verification. When performing classification for a measure, the multiple wildcard configurations get merged, with measure name specifications taking priority over instrument. The skip option has been reimplemented this way into the inference configurations. Inference configurations can also directly specify a measure's type as a string to skip most of the classification work.