phenopackets / phenopacket-tools

An app and library for building, conversion, and validation of GA4GH Phenopackets.
http://phenopackets.org/phenopacket-tools/stable/
GNU General Public License v3.0
12 stars 5 forks source link

Implement element sniffing #111

Closed ielis closed 1 year ago

ielis commented 1 year ago

Implement functionality for top-level element sniffing, to detect if the input is phenopacket, family, or cohort. The functionality is used in all I/O CLI commands if the user does not provide the -e | --element option.

The stubs are present in phenopacket-tools-util at org/phenopackets/phenopackettools/util/format/ElementSniffer.java.