Skip to content

Commit

Permalink
Merge pull request #314 from ncihtan/294-refine-validation-rule-for-h…
Browse files Browse the repository at this point in the history
…tan-filenames

Update regex validation for Filename
  • Loading branch information
adamjtaylor authored Oct 26, 2023
2 parents 41561cc + 9fe1809 commit 04f4248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HTAN.model.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Sequencing,Module for next generation sequencing assays,,,,FALSE,Assay,,,
Component,"Category of metadata (e.g. Diagnosis, Biospecimen, scRNA-seq Level 1, etc.); provide the same one for all items/rows.",,,,TRUE,,,https://w3id.org/biolink/vocab/category,
Patient,HTAN patient,,"Component, HTAN Participant ID",,FALSE,Individual Organism,"Demographics, Family History, Exposure, Follow Up, Diagnosis, Therapy, Molecular Test",,
File,A type of Information Content Entity specific to OS,,,,FALSE,Information Content Entity,,https://w3id.org/biolink/vocab/DataFile,
Filename,Name of a file,,,,TRUE,,,,regex search ^.+\/\S*$
Filename,Name of a file,,,,TRUE,,,,regex search ^(([a-zA-Z0-9\_\-\.\+\(\'\)\ ]+\/)+[a-zA-Z0-9\_\-\.\+\(\'\)]+)$
File Format,"Format of a file (e.g. txt, csv, fastq, bam, etc.)","hdf5, bedgraph, idx, idat, bam, bai, excel, powerpoint, tif, tiff, OME-TIFF, png, doc, pdf, fasta, fastq, sam, vcf, bcf, maf, bed, chp, cel, sif, tsv, csv, txt, plink, bigwig, wiggle, gct, bgzip, zip, seg, html, mov, hyperlink, svs, md, flagstat, gtf, raw, msf, rmd, bed narrowPeak, bed broadPeak, bed gappedPeak, avi, pzfx, fig, xml, tar, R script, abf, bpm, dat, jpg, locs, Sentrix descriptor file, Python script, sav, gzip, sdf, RData, hic, ab1, 7z, gff3, json, sqlite, svg, sra, recal, tranches, mtx, tagAlign, dup, DICOM, czi, mex, cloupe, am, cell am, mpg, m, mzML,scn, dcc, rcc, pkc",,,TRUE,,,,
Checksum,MD5 checksum of the BAM file,,,,TRUE,Information Content Entity,,,
HTAN Data File ID,Self-identifier for this data file - HTAN ID of this file HTAN ID SOP (eg HTANx_yyy_zzz),,,,TRUE,File,,https://docs.google.com/document/d/1podtPP8L1UNvVxx9_c_szlDcU1f8n7bige6XA_GoRVM/edit?usp=sharing,
Expand Down
2 changes: 1 addition & 1 deletion HTAN.model.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,7 @@
"sms:displayName": "Filename",
"sms:required": "sms:true",
"sms:validationRules": [
"regex search ^.+\\/\\S*$"
"regex search ^(([a-zA-Z0-9\\_\\-\\.\\+\\(\\'\\)\\ ]+\\/)+[a-zA-Z0-9\\_\\-\\.\\+\\(\\'\\)]+)$"
]
},
{
Expand Down

0 comments on commit 04f4248

Please sign in to comment.