phenopacket_dir=Path(testdata_dir).joinpath(
[
directory
for directory in os.listdir(str(testdata_dir))
if "phenopackets" in str(directory)
][0]
),
Raises an out-of-index error when there's no phenopackets folder inside passed by test_dir parameter.
Following the pheval's new corpora directory structure, this scenario can be prevented by using a strategy similar to this one:
This code in
run.py
file:Raises an out-of-index error when there's no phenopackets folder inside passed by
test_dir
parameter. Following the pheval's new corpora directory structure, this scenario can be prevented by using a strategy similar to this one: