seguid / seguid-tcl

SEGUID v2: Checksums for Linear, Circular, Single- and Double-Stranded Biological Sequences
0 stars 0 forks source link

API: Align the Tcl API with that of JavaScript, Python, R #11

Open HenrikBengtsson opened 2 months ago

HenrikBengtsson commented 2 months ago

The JavaScript, Python, and R APIs all have functions like seguid(), lsseguid(), csseguid(), ldseguid(), and cdseguid(). We should update the Tcl script to provide the same functions.

HenrikBengtsson commented 2 months ago

I've made a bug fix to the new proc(edure) definitions, cf. commit 8ccc314. Here is a first proof of concept that these new functions exist:

$ $ tclsh <<< 'source src/base64.tcl; source src/sha1.tcl; source src/seguid.tcl; set ans [seguid "ACGT" "long"]; puts stdout $ans'  
seguid=IQiZThf2zKn/I1KtqStlEdsHYDQ

which is the same checksum as:

$ ./seguid <<< "ACGT"
seguid=IQiZThf2zKn/I1KtqStlEdsHYDQ