diff --git a/tools/fair_bioheaders/fair_bioheaders_verify.xml b/tools/fair_bioheaders/fair_bioheaders_verify.xml index 5244f25289f..c27b96fec95 100644 --- a/tools/fair_bioheaders/fair_bioheaders_verify.xml +++ b/tools/fair_bioheaders/fair_bioheaders_verify.xml @@ -21,10 +21,10 @@ ## bioheaders exits 1 both when the check fails and when the file cannot be read; ## the messages tell them apart. The status is kept so that the report can be written. #if $type in ['yaml', 'json', 'jsonld'] - #set $check = 'metadata validated against the schema' + #set $check = 'schema validation of the metadata' bioheaders validate --from '$type' '$input' > messages.txt 2>&1 && status=0 || status=\$? ; #else - #set $check = 'header validated against the schema and checksum verified' + #set $check = 'schema validation of the header and checksum verification' bioheaders verify --type '$type' '$input' > messages.txt 2>&1 && status=0 || status=\$? ; #end if cat messages.txt && @@ -102,7 +102,7 @@ fi && - + @@ -114,6 +114,8 @@ fi && + + @@ -188,7 +190,7 @@ fi && - + @@ -212,6 +214,17 @@ fi && + + + + + + + + + + 0.13.1 - 0 + 1 25.0 fasta,fasta.gz,gfa1,gfa1.gz,gfa2,gfa2.gz,gff3,gff3.gz diff --git a/tools/fair_bioheaders/test-data/header-invalid.fhgff3.gff3 b/tools/fair_bioheaders/test-data/header-invalid.fhgff3.gff3 new file mode 100644 index 00000000000..6b9b723c059 --- /dev/null +++ b/tools/fair_bioheaders/test-data/header-invalid.fhgff3.gff3 @@ -0,0 +1,20 @@ +##gff-version 3 +#~schema: https://w3id.org/fair-bioheaders/fhgff3/v0.6.0 +#~schemaVersion: '1.2' +#~annotation: Synthetic FHGFF3 example annotation +#~taxon: +#~ name: Homo sapiens +#~ uri: https://identifiers.org/taxonomy:9606 +#~version: 1.0.0 +#~metadataAuthor: +#~- name: Synthetic metadata author (placeholder) +#~dateCreated: '2026-10-13' +#~documentation: Synthetic header with no genome link; it fails rule G2. +#~checksum: VT+AD3owBjHlTRVflqZ1ZiIgatjjpwAEOc13zt/n7WE= +##sequence-region ctg1 1 20 +##species https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=9606 +#!genome-build Synthetic SyntheticAssembly1 +ctg1 synthetic gene 1 20 . + . ID=gene1 +ctg1 synthetic mRNA 1 20 . + . ID=mrna1;Parent=gene1 +ctg1 synthetic exon 1 20 . + . ID=exon1;Parent=mrna1 +ctg1 synthetic CDS 1 18 . + 0 ID=cds1;Parent=mrna1