{"text_format":"1","workbook":"xlsx","n_sheets":10,"sheets":["ControlPanel","Mac_SCF","InData","OutCmp","OutStd","Introduction","ReadMe","Ambiguities","SortOrder","DateTime"],"not_rendered":{"charts":0,"images":0,"macros":1,"external_links":0,"defined_names":3727,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"ControlPanel","index":0,"n_rows":52,"n_cols":5,"rows_kept":52,"cut":false,"hidden":false,"merged":[[0,0,2,1],[4,1,5,1],[7,1,8,1],[10,1,11,1],[36,1,37,1],[19,1,20,1],[16,1,17,1],[13,1,14,1],[22,1,23,1],[58,0,59,0],[25,1,26,1],[29,0,30,1],[51,0,51,1],[52,0,53,0],[55,0,56,0],[33,1,34,1]]}
[null,null,null,"Parameter","Value"]
[null,"#Alle",null,"System: ","STR_ConvertFormats <5-Oct-2017> "]
[null,2,null,"Directory: "]
[null,null,null,"Workbook: "]
[null,null,null,"Worksheet: "]
[]
[null,null,null,"Format: "]
[]
[null,2,null,"Operation","Status"]
[null,null,null,"Clear: ","Cleared"]
[null,null,null,"Fetch: "]
[null,2,null,"Convert: "]
[null,null,null,"Locus Sort: "]
[null,null,null,"Check: "]
[null,2,null,"Compact: "]
[null,null,null,"Store Std: "]
[null,null,null,"Store Cmp: "]
[null,2]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[null,null,null,"Locus sort-order: ","YfilerPlus"]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
["** **","* ** button ****"]
[]
[]
[]
[]
[]
["Engineering"]

{"sheet":"Mac_SCF","index":1,"n_rows":277,"n_cols":43,"rows_kept":277,"cut":false,"hidden":false,"merged":[]}
["SCF_Globals","Parameter","Value","SCF_Exit","SCF_DoItAll","SCF_ClearUser","SCF_FetchUser","SCF_ConvertUser","SCF_SortUser","SCF_SortCheck","SCF_SortSpecify","SCF_CheckUser","SCF_Compact","SCF_StoreStandard","SCF_Store","SCF_FormatHeader","SCF_CODIS","SCF_FSSi","SCF_GMlong","SCF_GMwide","SCF_StructureDataVeryLong","SCF_StructureLong","SCF_DataLong","SCF_StructureWide","SCF_StructureNIST","SCF_DataWide","SCF_Bode","SCF_XML","SCF_Rules","SCF_UniquifySampleNames","SCF_ReadMe","SCF_AmbigClear","SCF_AmbigRecord","SCF_AmbigDisplay","Utility_DateTimeDependencies","Utility_ShowMacro","Utility_ResetHeaders","Utility_AlignControls","Utility_CleanUpNames","Atmp1","Utility_Colors",1,1]
["! In the normal course of events, this is ONLY run by the Auto_Open VBA Macro","R1C1 mode",true,"! Restore baseline system just prior to quiting","! Driver for the entire Convert function","! User access","! User access","! User access","! User access","! Check if current sort-order compatible with the loci that are present","! Get a locus-name sort order","! User access","! Restructure 'Standard' format to 'Compact'","! User access","! Store the converted file","! Make summary output headers","! CODIS conversion","! FSSi conversion","! GeneMapper long-format/Fragment Profiler/Vertical conversion","! GeneMapper wide-format conversion","! Get the structure of \"long\" format files","! Get the structure of \"long\" format files","! Make the data file from \"long\" format files","! Horizontal wide-format conversion","! NIST-compact conversion","! Make the data file from \"wide\" format files","! Bode conversion","! XML (CODIS version) conversion","! If possible, make the rule summary","! Uniquify sample names for one-row/sample structures","! Take a new user to the ReadMe file","! Clear any \"Ambiguity\" infor","! Record an \"Ambiguity\"","! Display the \"Ambiguity\" summary","! Check the DateTime format setting","! Unide all hidden sheets","! Reset Page Headers of visible files","! Make sure the buttons are in the right spot","! Get rid of all the transcients","Atmp2","! List the colors",2,2]
["! If you diddle any of the constants, make sure you re-run it yourself before you evaluate the diddle","Calculation mode",1,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\"  \"&D$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\"  \"&E$1)","v":true},null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&J$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&K$1)","v":true},null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&M$1)","v":true},null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&P$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Q$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&R$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&S$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&T$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&U$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&V$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&W$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&X$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Y$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Z$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AA$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AB$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AC$1)","v":false},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AD$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&AE$1)","v":true},"!=MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&R1C)","!=MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&R1C)",{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&AH$1)","v":true},{"$f":"MESSAGE(TRUE,AI$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&AJ$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\"  \"&AK$1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\"  \"&AL$1)","v":true},null,"Atmp3",{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&AO$1)","v":true},3,3]
[{"$f":"SET.NAME(\"Asyst\",\"STR_ConvertFormats\")","v":true},"Start datetime","2017-10-10T10:36:18",{"$f":"ECHO(FALSE)","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},"! Null the message display flag","! Null the message display flag","! Null the message display flag","! Null the message display flag",{"$f":"ECHO(FALSE)","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},"! Null the message display flag",{"$f":"ECHO(FALSE)","v":true},"! Setup for standard output",{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"SET.NAME(\"Atmp1\",COUNTA(NAMES()))","v":true},"SCF_AmbigClear",null,4,4]
[{"$f":"SET.NAME(\"Adate\",\"5-Oct-2017\")","v":true},"Stop datetime",43018.442006018522,null,{"$f":"ECHO(TRUE)","v":true},{"$f":"SET.NAME(\"Msub0\",\"  \")","v":true},{"$f":"SET.NAME(\"Msub0\",\"  \")","v":true},{"$f":"SET.NAME(\"Msub0\",\"  \")","v":true},{"$f":"SET.NAME(\"Msub0\",\"  \")","v":true},null,null,{"$f":"SET.NAME(\"Msub0\",\"  \")","v":true},null,{"$f":"SET.NAME(\"Msub0\",\"  \")","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"RUN($A$1,FALSE)","v":{"$error":"#N/A"}},{"$f":"RUN($A$1,FALSE)","v":{"$error":"#N/A"}},{"$f":"FOR(\"Atmp2\",Atmp1,1,-1)","v":true},"SCF_AmbigDisplay",{"$f":"DLD_ActivateSheet(S0mac)","v":false},5,5]
[{"$f":"MESSAGE(FALSE)","v":true},"User","Duewer, David L. Dr.","! Clear",{"$f":"DLD_Selectcell(1,1)","v":0},null,null,null,null,"! Get the current setting","! Get current order",null,"Check if requisite procedures compete",{"$f":"SET.NAME(\"S0dou\",S0dst)","v":true},"! Raise the conflicting data issue?","! Clear lists","! Get basic parameters","! Get basic parameters","! Get basic parameters","! Get basic parameters","! Get the basic sample and loci info","! Get the sample and loci info","! Clear the datasheets","! Get basic parameters","! Get basic parameters","! Clear the datasheets","! Get the number of alleles","! Clear the assembly area","! Clear the output file","! Count & clean sample names","! Make sure Intro is in right format","! Sero the count","! Update the count","! Unhide the sheet","! Make sure that the chart isn't active","! Unhide",null,null,{"$f":"  SET.NAME(\"Atmp3\",INDEX(NAMES(),Atmp2))","v":true},"SCF_AmbigRecord",{"$f":"FOR(\"Itmp\",1,56,1)","v":true},6,6]
[{"$f":"ECHO(FALSE)","v":true},"Number invocations",10,{"$f":"RUN(SCF_Clear,FALSE)","v":{"$error":"#N/A"}},null,"SCF_Clear","SCF_Fetch","SCF_Convert","SCF_Sort",{"$f":"SET.NAME(\"Isok\",TRUE)","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSrt&Acol&Cpara+1,FALSE)))","v":true},"SCF_Check",{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"SET.NAME(\"NanSto\",NanSt1)","v":true},{"$f":"SET.NAME(\"Ntmp\",SUM(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci+4,FALSE)))","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0dst)","v":false},{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"DLD_ActivateSheet(S0int)","v":false},{"$f":"SET.NAME(\"Nodd\",0)","v":true},{"$f":"SET.NAME(\"Nodd\",Nodd+1)","v":true},{"$f":"ERROR(FALSE)","v":true},{"$f":"DLD_ActivateSheet(S0dti)","v":0},{"$f":"ERROR(FALSE)","v":true},{"$f":"SET.NAME(\"Atmp\",\"An STR Profile Format Conversion Tool\")","v":true},"! Clear the sheets",{"$f":"  IF(ISERROR(MATCH(Atmp3,AN:AN,0)),DELETE.NAME(Atmp3))","v":false},"SCF_Bode",{"$f":"  FORMULA(Itmp,INDIRECT(\"'\"&S0mac&\"'!R\"&Itmp&\"C[1]\",FALSE))","v":true},7,7]
[null,null,null,null,"! Set the message display flag for the subroutine calls","! Clear the decks","! Get the input data","! Get the input data","! Sort the loci",{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"IF(LEN(Atmp)<1.5,SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE))))","v":true},"! Count up the number of \"odd\" alleles",{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCom&Acol&Cpara+1,FALSE))","v":true},{"$f":"SET.NAME(\"RowTmp\",RowSt1)","v":true},{"$f":"IF(Ntmp>0.5)","v":true},{"$f":"SET.NAME(\"Nchg\",0)","v":true},{"$f":"SET.NAME(\"RowFst\",GET.DOCUMENT(9))","v":true},{"$f":"SET.NAME(\"RowFst\",GET.DOCUMENT(9))","v":true},{"$f":"SET.NAME(\"RowFst\",GET.DOCUMENT(9))","v":true},{"$f":"SET.NAME(\"RowFst\",GET.DOCUMENT(9))","v":true},{"$f":"SELECT(Acol&1&Asep&Acol&256)","v":true},{"$f":"SET.NAME(\"Nloc\",0)","v":true},{"$f":"SELECT(Acol&1&Asep&Acol&256)","v":true},{"$f":"SET.NAME(\"RowFst\",GET.DOCUMENT(9))","v":true},{"$f":"SET.NAME(\"RowFst\",GET.DOCUMENT(9))","v":true},{"$f":"SELECT(Acol&2&Asep&Acol&256)","v":true},{"$f":"SET.NAME(\"RowHed\",1)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Acol&2&Asep&Acol&10,FALSE))","v":true},{"$f":"SELECT(Acol&Coffs+1+Nloc&Asep&Acol&256)","v":false},{"$f":"SET.NAME(\"Nsam\",0)","v":true},{"$f":"DLD_Selectcell(26,4)","v":false},null,null,{"$f":"  WORKBOOK.UNHIDE(MID(S0err,FIND(\"]\",S0err)+1,100))","v":true},{"$f":"ERROR(FALSE)","v":true},{"$f":"  WORKBOOK.UNHIDE(MID(S0dti,FIND(\"]\",S0dti)+1,100))","v":true},null,{"$f":"RUN(SCF_Clear,FALSE)","v":{"$error":"#N/A"}},{"$f":"NEXT()","v":true},"SCF_Check",{"$f":"  SELECT(INDIRECT(\"'\"&S0mac&\"'!R\"&Itmp&\"C[1]\",FALSE))","v":true},8,8]
["! Make sheetnames",null,null,"! Restore calculation and RC states",{"$f":"SET.NAME(\"Msub0\",\" \"&E$1&\" > \")","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&F$7)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&H$7)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&I$7)","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE)))","v":true},{"$f":"IF(LEN(Atmp)<1.5,SET.NAME(\"Atmp\",\": Alphabetical\"))","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&L$7)","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"SET.NAME(\"Fadd\",\"NISTs\")","v":true},{"$f":"  DLD_ActivateSheet(S0con)","v":false},null,{"$f":"SET.NAME(\"RowLst\",GET.DOCUMENT(10))","v":true},{"$f":"SET.NAME(\"RowLst\",GET.DOCUMENT(10))","v":true},{"$f":"SET.NAME(\"RowLst\",GET.DOCUMENT(10))","v":true},{"$f":"SET.NAME(\"RowLst\",GET.DOCUMENT(10))","v":true},{"$f":"PATTERNS(0)","v":true},{"$f":"SET.NAME(\"Nsam\",0)","v":true},{"$f":"PATTERNS(0)","v":true},{"$f":"SET.NAME(\"RowLst\",GET.DOCUMENT(10))","v":true},{"$f":"SET.NAME(\"RowLst\",GET.DOCUMENT(10))","v":true},{"$f":"PATTERNS(0)","v":true},{"$f":"SET.NAME(\"RowLst\",MATCH(\"Generate CMF\",INDIRECT(\"'\"&S0din&\"'!\"&Acol&1,FALSE),0)-1)","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"FOR(\"Irow\",RowHed+1,RowLst,1)","v":true},null,"! Clear the sheet","! Record in locus and sample lists on the ControlPanel",{"$f":"ERROR(TRUE)","v":true},{"$f":"  WORKBOOK.UNHIDE(MID(S0dti,FIND(\"]\",S0dti)+1,100))","v":true},{"$f":"  WORKBOOK.UNHIDE(MID(S0err,FIND(\"]\",S0err)+1,100))","v":true},"! Reset Readme",null,null,"SCF_CheckUser",{"$f":"  PATTERNS(1,1,Itmp,TRUE)","v":true},9,9]
[{"$f":"SET.NAME(\"DirA\",GET.DOCUMENT(2))","v":true},null,null,{"$f":"SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S0mac&\"'!\"&Arow&2&Acol&3,FALSE)))","v":true},null,{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},null,{"$f":"IF(ISERROR(FIND(\":\",Atmp)),SET.NAME(\"Atmp\",\": \"&Atmp))","v":false},{"$f":"ECHO(FALSE)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSt2&Acol&Cpara+1,FALSE))","v":true},null,{"$f":"  DLD_Selectcell(RowBcom,2)","v":false},{"$f":"STR_FormatHeader(Cloci,Csamp)","v":0},{"$f":"SET.NAME(\"ColFst\",GET.DOCUMENT(11))","v":true},{"$f":"SET.NAME(\"ColFst\",GET.DOCUMENT(11))","v":true},{"$f":"SET.NAME(\"ColFst\",GET.DOCUMENT(11))","v":true},{"$f":"SET.NAME(\"ColFst\",GET.DOCUMENT(11))","v":true},null,{"$f":"FOR(\"Irow\",RowHed+1,RowLst,1)","v":true},{"$f":"DLD_ActivateSheet(S0dst)","v":0},{"$f":"SET.NAME(\"ColFst\",GET.DOCUMENT(11))","v":true},{"$f":"SET.NAME(\"ColFst\",GET.DOCUMENT(11))","v":true},{"$f":"DLD_ActivateSheet(S0dst)","v":0},{"$f":"IF(ISERROR(RowLst),SET.NAME(\"RowLst\",1))","v":false},null,null,{"$f":"  SET.NAME(\"Nval\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE)))","v":true},"! Go to ReadMe",{"$f":"ERROR(FALSE)","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+4,FALSE)))","v":true},{"$f":"DLD_ActivateSheet(S0err)","v":false},{"$f":"  SET.NAME(\"Itmp\",DLD_Selectcell(1,1))","v":true},{"$f":"  WORKBOOK.UNHIDE(MID(S0mac,FIND(\"]\",S0mac)+1,100))","v":{"$error":"#VALUE!"}},{"$f":"DLD_ActivateSheet(S0rme)","v":false},"! Format the Introduction",{"$f":"RUN($A$1,FALSE)","v":{"$error":"#N/A"}},"SCF_Clear",{"$f":"  SET.NAME(\"Jtmp\",GET.CELL(63,INDIRECT(\"'\"&S0mac&\"'!R\"&Itmp&\"C[1]\",FALSE)))","v":true},10,10]
[{"$f":"SET.NAME(\"WrkBk0\",GET.DOCUMENT(88))","v":true},null,null,{"$f":"IF(ISERROR(Atmp1),SET.NAME(\"Atmp1\",TRUE))","v":false},"! Clear things",null,null,null,null,"! Check for \"alphanumeric\"",{"$f":"SET.NAME(\"Acur\",MID(Atmp,FIND(\":\",Atmp)+2,100))","v":true},null,{"$f":"CLEAR(3)","v":true},"Check if requisite procedures compete",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > There are (\"&Ntmp&\") ambiguous alleles.\")","v":true},null,{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},"! Sort",{"$f":"  SET.NAME(\"Nval\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE)))","v":true},{"$f":"SELECT(Acol&1&Asep&Acol&256)","v":true},{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},{"$f":"SELECT(Acol&1&Asep&Acol&256)","v":true},{"$f":"IF(RowLst<1.5)","v":true},"! Loop over sample IDs","! Set up the Rule-report headers",{"$f":"  IF(Nval>0.5)","v":true},{"$f":"DLD_ActivateSheet(S0rme)","v":false},{"$f":"  WORKBOOK.UNHIDE(MID(S0err,FIND(\"]\",S0err)+1,100))","v":true},{"$f":"FORMULA(Atmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+4,FALSE))","v":true},null,{"$f":"  IF(ISERROR(Itmp))","v":true},{"$f":"ERROR(TRUE)","v":true},{"$f":"PAGE.SETUP(\"&L&\"\"Arial,Regular\"\"&8Built by: DL Duewer, NIST&C&\"\"Arial,Bold\"\"&16\"&Asyst&\" &\"\"Arial,Regular\"\"&12<\"&TEXT(Adate,\"dd-mmm-yy\")&\">\n\"&Atmp&\"&R&\"\"Arial,Regular\"\"&8Paid for, in part, by: NIJ\",\"&L&\"\"Arial,Regular\"\"&8&F!&A&C&\"\"Arial,Regular\"\"&8&D &T&R&\"\"Arial,Regular\"\"&8&P / &N\",0.5,0.25,1.1,0.5,FALSE,FALSE,TRUE,FALSE,2,1,{1,1},\"Auto\",1,FALSE,,0.7,0.3,FALSE,FALSE)","v":true},{"$f":"DLD_ActivateSheet(S0int)","v":false},{"$f":"RUN($A$111,FALSE)","v":{"$error":"#N/A"}},"SCF_ClearUser",{"$f":"  FORMULA(Jtmp,INDIRECT(\"'\"&S0mac&\"'!R\"&Itmp&\"C[2]\",FALSE))","v":true},11,11]
[{"$f":"SET.NAME(\"S0con\",\"[\"&WrkBk0&\"]ControlPanel\")","v":true},null,null,{"$f":"A1.R1C1(NOT(Atmp1))","v":true},{"$f":"RUN(SCF_Clear,FALSE)","v":{"$error":"#N/A"}},"! Format the input sheet","Check if requisite procedures compete","Check if requisite procedures compete","Check if requisite procedures compete",{"$f":"IF(LEFT(Atmp,5)=\"alpha\",GOTO(J$53))","v":false},{"$f":"FORMULA(Acur,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE))","v":true},"Check if requisite procedures compete",{"$f":"DLD_Selectcell(RowBcom,2)","v":0},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"  DLD_ActivateSheet(S0dou)","v":false},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&P$1&\" > Finished!\")","v":true},{"$f":"SET.NAME(\"RowHed\",-1)","v":true},{"$f":"SET.NAME(\"RowHed\",-1)","v":true},{"$f":"SET.NAME(\"RowHed\",-1)","v":true},{"$f":"SET.NAME(\"RowHed\",-1)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&1&Asep&Arow&65536&Acol&ColLst,FALSE))","v":true},{"$f":"  IF(Nval>0)","v":true},{"$f":"CLEAR(1)","v":true},{"$f":"SET.NAME(\"RowHed\",-1)","v":true},{"$f":"SET.NAME(\"ColSam\",1)","v":true},{"$f":"CLEAR(1)","v":true},{"$f":"  FORMULA(\"Invalid Bode format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"SET.NAME(\"Ntry\",0)","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":false},{"$f":"    SET.NAME(\"Nsam\",Nsam+1)","v":true},{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"ERROR(TRUE)","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+4,FALSE)))","v":true},"! Sort by row then column",{"$f":"  HIDE()","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"SELECT(Acol&1&Asep&Acol&256)","v":true},null,"SCF_Compact",{"$f":"NEXT()","v":true},12,12]
[{"$f":"SET.NAME(\"S0dcm\",\"[\"&WrkBk0&\"]OutCmp\")","v":true},null,null,{"$f":"SET.NAME(\"Atmp2\",DEREF(INDIRECT(\"'\"&S0mac&\"'!\"&Arow&3&Acol&3,FALSE)))","v":true},null,{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"DLD_ActivateSheet(S0con)","v":0},null,null,{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"ECHO(TRUE)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSt1&Acol&Cpara+1,FALSE))","v":true},{"$f":"  DLD_Selectcell(1,1)","v":false},{"$f":"RETURN()","v":true},{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},{"$f":"SORT(1,INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&ColSam,FALSE),1,INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&ColLoc,FALSE),1,INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&ColMaj,FALSE),1,1)","v":true},{"$f":"    IF(MOD(Irow,20)=1,MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&V$1&\" > Row \"&Irow-RowHed+1&\" of \"&RowLst-RowHed+1))","v":true},null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},{"$f":"SET.NAME(\"ColLoc\",ColSam+1)","v":true},null,{"$f":"  ECHO(TRUE)","v":true},{"$f":"SET.NAME(\"Nsam\",0)","v":true},{"$f":"SELECT(\"(\"&Acol&Cloci+5&Asep&Acol&Cloci+6&Alsp&Acol&Csamp+5&Asep&Acol&Csamp+6&Alsp&Acol&Crule&Asep&Acol&256&\")\")","v":false},{"$f":"    SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColSam,FALSE)))","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"DLD_ActivateSheet(S0err)","v":0},{"$f":"FORMULA(Atmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+4,FALSE))","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0err&\"'!\"&Acol&1&Asep&Acol&256,FALSE))","v":true},{"$f":"END.IF()","v":true},"! format",null,{"$f":"ROW.HEIGHT(,,,3)","v":true},null,"SCF_Convert",{"$f":"SELECT(\"C:C[1]\")","v":true},13,13]
[{"$f":"SET.NAME(\"S0din\",\"[\"&WrkBk0&\"]InData\")","v":true},null,null,{"$f":"IF(ISERROR(Atmp2),SET.NAME(\"Atmp2\",3))","v":false},"! Fetch the worksheet",{"$f":"STR_ClearSheet(ZoomSet)","v":0},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara+1&Asep&Arow&RowSt2&Acol&Cpara+1,FALSE))","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1&Asep&Arow&RowSt2&Acol&Cpara+1,FALSE))","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSrt&Acol&Cpara+1&Asep&Arow&RowSt2&Acol&Cpara+1,FALSE))","v":true},"! Does it match anything else?","! Make sure that \"New\" is an option",{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowChe&Acol&Cpara+1&Asep&Arow&RowSt2&Acol&Cpara+1,FALSE))","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowChe&Acol&Cpara+1,FALSE)))","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"  ECHO(TRUE)","v":true},null,{"$f":"  SET.NAME(\"ColSam\",MATCH(\"*SPECIMENID\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE),0))","v":true},{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample ID\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE),0))","v":true},{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample *\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE),0))","v":true},{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample Name\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,"! Header records",{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample Info\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE),0))","v":true},{"$f":"SET.NAME(\"ColMaj\",NA())","v":true},"! Header records",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AA$1&\" > This worksheet is NOT in the Bode format!\")","v":false},{"$f":"SET.NAME(\"Irow0\",RowFst)","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"    SET.NAME(\"Asam\",CLEAN(TRIM(Asam)))","v":true},{"$f":"ALERT(\"This worksheet is the 'Instruction Manual' for this system.\"&Acar&Acar&\"Click 'OK', survey the information, then go to the ControlPanel and get started.\"&Acar&\"When you encounter hassles, return here and read the relevant bits more thoroughly.\",2)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0err&\"'!\"&Acol&1&Asep&Acol&256,FALSE))","v":true},null,{"$f":"SORT(1,INDIRECT(\"'\"&S0err&\"'!\"&Arow&2&Acol&1,FALSE),1,INDIRECT(\"'\"&S0err&\"'!\"&Arow&2&Acol&1,FALSE),1,,,1)","v":true},{"$f":"ERROR(TRUE)","v":true},{"$f":"DLD_ActivateSheet(S0mac)","v":false},"! Reset Introduction",{"$f":"SELECT(\"Button 1\")","v":true},{"$f":"FORMULA.GOTO(Arow&1&Acol,TRUE)","v":true},"SCF_ConvertUser",{"$f":"COLUMN.WIDTH(5)","v":true},14,14]
[{"$f":"SET.NAME(\"S0dst\",\"[\"&WrkBk0&\"]OutStd\")","v":true},null,null,{"$f":"OPTIONS.CALCULATION(Atmp2)","v":true},{"$f":"RUN(SCF_Fetch,FALSE)","v":{"$error":"#N/A"}},null,{"$f":"CLEAR(3)","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"DLD_ActivateSheet(S0srt)","v":0},{"$f":"SET.NAME(\"Nsrt\",COUNTA(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&11&Asep&Arow&1&Acol&256,FALSE)))","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"IF(NOT(LEFT(Atmp,LEN(NanChe))=NanChe))","v":true},{"$f":"DLD_Selectcell(RowBst1,2)","v":0},{"$f":"  SET.NAME(\"Atmp\",ALERT(\"There are \"&Ntmp&\" ambiguities in these data: they are color-coded 'magenta'.\"&Acar&\"Do you really want to store these data without correcting things?\"&Acar&Acar&\"Click 'OK' if 'Yes', 'Cancel' for 'No'.\",1))","v":true},null,{"$f":"  IF(NOT(ISERROR(ColSam)))","v":true},{"$f":"  IF(NOT(ISERROR(ColSam)))","v":true},{"$f":"  IF(NOT(ISERROR(ColSam)))","v":true},{"$f":"  IF(NOT(ISERROR(ColSam)))","v":true},"! Loop over all the rows","! Samples",{"$f":"FORMULA(\"SampleCode\",INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&1,FALSE))","v":true},{"$f":"  IF(NOT(ISERROR(ColSam)))","v":true},{"$f":"SET.NAME(\"ColPro\",NA())","v":true},{"$f":"FORMULA(\"SampleCode\",INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&1,FALSE))","v":true},{"$f":"  ALERT(\"This worksheet is NOT in the expected Bode format!\"&Acar&Acar&\"'Generate CMF' could not be found in the first column or was found in second row.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"WHILE(Irow0<RowLst)","v":true},null,{"$f":"    SET.NAME(\"Asam\",SUBSTITUTE(Asam,\" \",\"_\"))","v":true},null,{"$f":"CLEAR(3)","v":true},"! Color the cell magenta",null,null,{"$f":"WINDOW.MAXIMIZE()","v":true},{"$f":"DLD_ActivateSheet(S0int)","v":false},{"$f":"FORMAT.SIZE(239,37)","v":true},{"$f":"HALT()","v":true},"SCF_DataLong",null,15,15]
[{"$f":"SET.NAME(\"S0dti\",\"[\"&WrkBk0&\"]DateTime\")","v":true},null,null,{"$f":"OPTIONS.VIEW(TRUE,TRUE)","v":true},null,"! Format the standard output sheet",{"$f":"DLD_Selectcell(RowBfet,2)","v":0},{"$f":"DLD_Selectcell(RowBcon,2)","v":0},{"$f":"DLD_Selectcell(RowBsrt,2)","v":0},{"$f":"SET.NAME(\"Nsrt\",COUNTA(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&11&Asep&Arow&1&Acol&256,FALSE)))","v":true},{"$f":"SET.NAME(\"Icol\",MATCH(\"New\",INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1,FALSE),0))","v":true},{"$f":"DLD_Selectcell(RowBche,2)","v":0},{"$f":"  RUN(SCF_Check,FALSE)","v":{"$error":"#N/A"}},{"$f":"ECHO(TRUE)","v":true},{"$f":"  IF(Atmp=FALSE)","v":true},null,{"$f":"    SET.NAME(\"RowHed\",Irow)","v":true},{"$f":"    SET.NAME(\"RowHed\",Irow)","v":true},{"$f":"    SET.NAME(\"RowHed\",Irow)","v":true},{"$f":"    SET.NAME(\"RowHed\",Irow)","v":true},{"$f":"SET.NAME(\"Nloc\",0)","v":true},{"$f":"    SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColSam,FALSE)))","v":true},{"$f":"IF(NOT(ISERROR(ColRul)),FORMULA(\"SampleCode\",INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&Coffs,FALSE)))","v":false},{"$f":"    SET.NAME(\"RowHed\",Irow)","v":true},{"$f":"SET.NAME(\"ColRul\",NA())","v":true},{"$f":"SET.NAME(\"Ncol\",1)","v":true},{"$f":"  HALT()","v":true},null,"! Augment locus header",{"$f":"    SET.NAME(\"Asam\",SUBSTITUTE(Asam,\"__\",\"_\"))","v":true},{"$f":"HALT()","v":true},null,{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Icol,FALSE))","v":true},null,"! Get the current formats",{"$f":"OPTIONS.VIEW(TRUE,TRUE,FALSE,TRUE,1,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE)","v":true},{"$f":"FORMULA(\"Welcome to \"&Asyst&\"!\",INDIRECT(\"'\"&S0int&\"'!R1C3\",FALSE))","v":true},{"$f":"FORMAT.MOVE(1,1,Arow&31&Acol&4)","v":true},null,"SCF_DataWide",{"$f":"FORMULA.GOTO(Arow&1&Acol&\"[-1]\",TRUE)","v":true},16,16]
[{"$f":"SET.NAME(\"S0err\",\"[\"&WrkBk0&\"]Ambiguities\")","v":true},"AlngDat","dd-mmm-yy",null,"! Convert the worksheet",{"$f":"DLD_ActivateSheet(S0dst)","v":0},{"$f":"ECHO(TRUE)","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"SET.NAME(\"Icol\",MATCH(Atmp,INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1,FALSE),0))","v":true},{"$f":"IF(ISERROR(Icol))","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"END.IF()","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowChe&Acol&Cpara+1,FALSE)))","v":true},{"$f":"    MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > Activate the desired sheet, save the file, and try again!\")","v":true},null,{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},{"$f":"SET.NAME(\"Nsam\",0)","v":true},{"$f":"    SET.NAME(\"Jrow\",MATCH(Asam,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Csamp,FALSE),0))","v":true},{"$f":"SET.NAME(\"Ncol\",1)","v":true},{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},{"$f":"SET.NAME(\"RowHed\",MATCH(\"SampleCode\",INDIRECT(\"'\"&S0din&\"'!\"&Acol&ColSam,FALSE),0))","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"END.IF()","v":false},"! Find the row containing the sample name",{"$f":"SELECT(Arow&1&Acol&Cloci&Asep&Arow&1&Acol&Cloci+6)","v":false},{"$f":"    FORMULA(Asam,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColSam,FALSE))","v":true},null,"! Restore header",{"$f":"PATTERNS(1,7,0)","v":true},"! Format",{"$f":"SET.NAME(\"Atmp\",NOW())","v":true},{"$f":"FREEZE.PANES(FALSE)","v":true},{"$f":"PAGE.SETUP(\"&L&\"\"Arial,Regular\"\"&8Built by: DL Duewer, NIST&C&\"\"Arial,Bold\"\"&16\"&Asyst&\" &\"\"Arial,Regular\"\"&12<\"&TEXT(Adate,\"dd-mmm-yy\")&\">\n\"&Atmp&\"&R&\"\"Arial,Regular\"\"&8Paid for, in part, by: NIJ\",\"&L&\"\"Arial,Regular\"\"&8&F!&A&C&\"\"Arial,Regular\"\"&8&D &T&R&\"\"Arial,Regular\"\"&8&P / &N\",0.5,0.25,1.3,0.5,FALSE,FALSE,TRUE,FALSE,2,1,{1,#N/A},\"Auto\",1,FALSE,,0.7,0.3,FALSE,FALSE)","v":true},{"$f":"SELECT(\"Button 2\")","v":true},null,"SCF_DoItAll",null,17,17]
[{"$f":"SET.NAME(\"S0int\",\"[\"&WrkBk0&\"]Introduction\")","v":true},"AlngTim","h:mm:ss","! Restore screensize",{"$f":"RUN(SCF_Convert,FALSE)","v":{"$error":"#N/A"}},{"$f":"STR_ClearSheet(ZoomSet)","v":0},{"$f":"IF(NOT(ISBLANK(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFmt&Acol&Cpara+1,FALSE))))","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara+1,FALSE)))","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE)))","v":true},{"$f":"IF(ISERROR(Icol))","v":true},{"$f":"  SET.NAME(\"Nsrt\",Nsrt+1)","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSrt&Acol&Cpara+1,FALSE)))","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"IF(NOT(LEFT(Atmp,LEN(NanChe))=NanChe))","v":true},null,null,{"$f":"  END.IF()","v":true},{"$f":"  END.IF()","v":true},{"$f":"  END.IF()","v":true},{"$f":"  END.IF()","v":true},{"$f":"FOR(\"Irow\",RowHed+1,RowLst,1)","v":true},{"$f":"    IF(ISERROR(Jrow))","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"  END.IF()","v":true},{"$f":"IF(ISERROR(RowHed))","v":true},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},null,{"$f":"  SET.NAME(\"Itmp\",MATCH(\"*<SPECIMENID>*\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow0&Acol&1&Asep&Arow&RowLst&Acol&1,FALSE),0))","v":true},{"$f":"ALIGNMENT(7,FALSE,3,0)","v":true},{"$f":"  END.IF()","v":true},null,{"$f":"FORMULA(\"Row\",INDIRECT(\"'\"&S0err&\"'!\"&Arow&1&Acol&1,FALSE))","v":true},null,{"$f":"DLD_ColumnAutofit(1,-1)","v":false},{"$f":"FOR(\"Irow\",2,4,1)","v":true},{"$f":"FREEZE.PANES(TRUE,0,1)","v":true},{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"FORMAT.SIZE(239,25)","v":true},null,"SCF_Exit",{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&AO$1&\" > Finished!\")","v":true},18,18]
[{"$f":"SET.NAME(\"S0mac\",\"[\"&WrkBk0&\"]Mac_SCF\")","v":true},"AlngDatTim","dd-mmm-yy h:mm:ss",{"$f":"FULL.SCREEN(FALSE)","v":true},null,null,{"$f":"  RUN(SCF_Clear,FALSE)","v":{"$error":"#N/A"}},{"$f":"IF(NOT(LEFT(Atmp,LEN(NanFet))=NanFet))","v":true},{"$f":"IF(NOT(LEFT(Atmp,LEN(NanCon))=NanCon))","v":true},{"$f":"  SET.NAME(\"Isok\",FALSE)","v":true},{"$f":"  FORMULA(\"New\",INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&10+Nsrt,FALSE))","v":true},{"$f":"IF(NOT(LEFT(Atmp,LEN(NanSrt))=NanSrt))","v":true},null,{"$f":"  RUN(SCF_Check,FALSE)","v":{"$error":"#N/A"}},"! Display the summary",null,{"$f":"NEXT()","v":true},{"$f":"NEXT()","v":true},{"$f":"NEXT()","v":true},{"$f":"NEXT()","v":true},{"$f":"  SET.NAME(\"Nval\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE)))","v":true},{"$f":"      SET.NAME(\"Nsam\",Nsam+1)","v":true},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},{"$f":"NEXT()","v":true},{"$f":"  FORMULA(\"Invalid NIST format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"  SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+3,FALSE)))","v":true},"! Get the number of samples",{"$f":"  IF(ISERROR(Itmp))","v":true},{"$f":"FORMULA(\"1rule\",Arow&2&Acol&Cloci+5)","v":false},{"$f":"NEXT()","v":true},null,{"$f":"FORMULA(\"Col\",INDIRECT(\"'\"&S0err&\"'!\"&Arow&1&Acol&2,FALSE))","v":true},"! Summarize on the ambiguity sheet",null,{"$f":"  FORMULA(Atmp,INDIRECT(\"'\"&S0dti&\"'!\"&Arow&Irow&Acol&2,FALSE))","v":true},null,null,{"$f":"FORMAT.MOVE(1,1,Arow&26&Acol&4)","v":true},null,"SCF_Fetch",{"$f":"HALT()","v":true},19,19]
[{"$f":"SET.NAME(\"S0rme\",\"[\"&WrkBk0&\"]ReadMe\")","v":true},"Acol","C",{"$f":"WINDOW.MAXIMIZE()","v":true},"! Sort the loci","! Format the compact output sheet",{"$f":"END.IF()","v":true},{"$f":"  RUN(SCF_Fetch,FALSE)","v":{"$error":"#N/A"}},{"$f":"  RUN(SCF_Convert,FALSE)","v":{"$error":"#N/A"}},{"$f":"  SET.NAME(\"Atmp\",\"?\")","v":true},{"$f":"END.IF()","v":true},{"$f":"  RUN(SCF_Sort,FALSE)","v":{"$error":"#N/A"}},"! Clear the compact output",{"$f":"END.IF()","v":true},{"$f":"    RUN(SCF_AmbigDisplay,FALSE)","v":{"$error":"#N/A"}},null,{"$f":"IF(RowHed<0)","v":true},{"$f":"IF(RowHed<0)","v":true},{"$f":"IF(RowHed<0)","v":true},{"$f":"IF(RowHed<0)","v":true},{"$f":"  IF(Nval>0)","v":false},{"$f":"      FORMULA(Asam,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp,FALSE))","v":true},{"$f":"  SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+3,FALSE)))","v":true},{"$f":"IF(RowHed<0)","v":true},{"$f":"  ECHO(TRUE)","v":true},{"$f":"  FOR(\"Iall\",1,Nall,1)","v":true},{"$f":"SET.NAME(\"ColLoc\",1)","v":true},{"$f":"    SET.NAME(\"Irow0\",RowLst+1)","v":true},{"$f":"FORMULA(\"2rule+\",Arow&2&Acol&Cloci+6)","v":false},null,null,{"$f":"FORMULA(\"SampleCode\",INDIRECT(\"'\"&S0err&\"'!\"&Arow&1&Acol&4,FALSE))","v":true},{"$f":"FORMULA(RowStd+Isam,INDIRECT(\"'\"&S0err&\"'!\"&Arow&1+Nodd&Acol&1,FALSE))","v":true},"! Display",{"$f":"  SET.NAME(\"Atmp1\",GET.CELL(7,INDIRECT(\"'\"&S0dti&\"'!\"&Arow&Irow&Acol&2,FALSE)))","v":true},{"$f":"FORMULA.GOTO(Utility_ShowMacro,TRUE)","v":true},null,{"$f":"DLD_Selectcell(31,4)","v":false},null,"SCF_FetchUser",null,20,20]
[{"$f":"SET.NAME(\"S0srt\",\"[\"&WrkBk0&\"]SortOrder\")","v":true},"Adcp",".",null,{"$f":"RUN(SCF_Sort,FALSE)","v":{"$error":"#N/A"}},{"$f":"DLD_ActivateSheet(S0dcm)","v":0},{"$f":"ECHO(FALSE)","v":true},{"$f":"END.IF()","v":true},{"$f":"END.IF()","v":true},{"$f":"  GOTO(J$51)","v":true},null,{"$f":"END.IF()","v":true},{"$f":"DLD_ActivateSheet(S0dcm)","v":0},null,{"$f":"    HALT()","v":true},null,{"$f":"  FORMULA(\"Invalid CODIS format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"  FORMULA(\"Invalid FSSi format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"  FORMULA(\"Invalid GeneMapper/Fragment Profiler/Vertical format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"  FORMULA(\"Invalid GeneMapper format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"    IF(MOD(Irow,20)=1,MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&U$1&\" > Row \"&Irow-RowHed+1&\" of \"&RowLst-RowHed+1))","v":false},{"$f":"      FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+1,FALSE))","v":true},{"$f":"  FOR(\"Iall\",1,Nall,1)","v":true},{"$f":"  FORMULA(\"Invalid Horizontal format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Y$1&\" > This worksheet is NOT in a NIST format!\")","v":false},{"$f":"    SET.NAME(\"Ncol\",Ncol+1)","v":true},{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},{"$f":"  ELSE()","v":true},{"$f":"SELECT(Arow&2&Acol&Cloci+5&Asep&Arow&2&Acol&Cloci+6)","v":false},"! Sort by sample name",null,{"$f":"FORMULA(\"Locus\",INDIRECT(\"'\"&S0err&\"'!\"&Arow&1&Acol&5,FALSE))","v":true},{"$f":"FORMULA(Icol,INDIRECT(\"'\"&S0err&\"'!\"&Arow&1+Nodd&Acol&2,FALSE))","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"  IF(NOT(ISERROR(FIND(\";\",Atmp1))),SET.NAME(\"Atmp1\",LEFT(Atmp1,FIND(\";\",Atmp1)-1)))","v":false},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\" \"&AJ$1&\" > Finished!\")","v":true},"! Reset ControlPanel",null,null,"SCF_FormatHeader",null,21,21]
[null,"Agnl","General","! Exit nicely",null,{"$f":"STR_ClearSheet(ZoomSet)","v":0},null,{"$f":"ECHO(FALSE)","v":true},{"$f":"ECHO(FALSE)","v":true},{"$f":"END.IF()","v":false},"! Build the list of possibles",{"$f":"ECHO(FALSE)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0dcm&\"'!\"&Acol&1&Asep&Acol&256,FALSE))","v":true},"! Store",{"$f":"  END.IF()","v":false},null,{"$f":"  ECHO(TRUE)","v":true},{"$f":"  ECHO(TRUE)","v":true},{"$f":"  ECHO(TRUE)","v":true},{"$f":"  ECHO(TRUE)","v":true},null,{"$f":"      FORMULA(Irow,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+2,FALSE))","v":true},{"$f":"    SET.NAME(\"Ncol\",Ncol+1)","v":true},{"$f":"  ECHO(TRUE)","v":true},{"$f":"  ALERT(\"This worksheet is NOT a NIST format!\"&Acar&Acar&\"The rowheader 'SampleCode' is not in column \"&ColSam&\".\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"    FORMULA(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&Ncol,FALSE))","v":true},{"$f":"FOR(\"Icol\",2,ColLst,1)","v":true},{"$f":"    SET.NAME(\"Irow\",Irow0+Itmp-1)","v":true},{"$f":"ALIGNMENT(3,FALSE,3,0)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&1&Asep&Arow&65536&Acol&ColLst,FALSE))","v":true},null,{"$f":"FORMULA(\"Allele\",INDIRECT(\"'\"&S0err&\"'!\"&Arow&1&Acol&6,FALSE))","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"  IF(NOT(ISERROR(FIND(\"]\",Atmp1))),SET.NAME(\"Atmp1\",MID(Atmp1,FIND(\"]\",Atmp1)+1,100)))","v":false},{"$f":"HALT()","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":false},"! Take care of the ReadMe",null,"SCF_FSSi",null,22,22]
["! Country-Version dependencies that can be automatically determined","Alsp",",",{"$f":"DLD_ActivateSheet(S0con)","v":0},"! Count the oddities",null,"! Try to get the file to inport",null,null,{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&Icol,FALSE)))","v":true},{"$f":"SET.NAME(\"Asort\",Acur)","v":true},null,{"$f":"CLEAR(3)","v":true},{"$f":"RUN(SCF_Store,FALSE)","v":{"$error":"#N/A"}},{"$f":"END.IF()","v":true},null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Q$1&\" > This worksheet is NOT in CODIS format!\")","v":false},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&R$1&\" > This worksheet is NOT in FSSi format!\")","v":false},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&S$1&\" > This worksheet is NOT in GeneMapper, Fragment Profiler, or Vertical format!\")","v":false},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&T$1&\" > This worksheet is NOT in GeneMapper format!\")","v":false},"! Samples",{"$f":"      FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+3,FALSE))","v":true},{"$f":"    FORMULA(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&Ncol,FALSE))","v":true},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&X$1&\" > This worksheet is NOT in Horizontal format!\")","v":false},{"$f":"  HALT()","v":true},{"$f":"  NEXT()","v":true},{"$f":"  SET.NAME(\"Ntmp\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&2&Acol&Icol&Asep&Arow&RowLst&Acol&Icol,FALSE)))","v":true},{"$f":"    SET.NAME(\"Irow0\",Irow+1)","v":true},{"$f":"BORDER(1)","v":true},{"$f":"SORT(1,INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&ColSam,FALSE),1,,,,,1)","v":true},null,{"$f":"FORMULA(\"Value\",INDIRECT(\"'\"&S0err&\"'!\"&Arow&1&Acol&7,FALSE))","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&1,FALSE)))","v":true},null,{"$f":"  FORMULA(Atmp1,INDIRECT(\"'\"&S0dti&\"'!\"&Arow&Irow&Acol&3,FALSE))","v":true},null,{"$f":"PAGE.SETUP(\"&L&\"\"Arial,Regular\"\"&8Built by: DL Duewer, NIST&C&\"\"Arial,Bold\"\"&16\"&Asyst&\" &\"\"Arial,Regular\"\"&12<\"&TEXT(Adate,\"dd-mmm-yy\")&\">\n\"&Atmp&\"&R&\"\"Arial,Regular\"\"&8Paid for, in part, by: NIJ\",\"&L&\"\"Arial,Regular\"\"&8&F!&A&C&\"\"Arial,Regular\"\"&8&D &T&R&\"\"Arial,Regular\"\"&8&P / &N\",0.5,0.25,1.3,0.5,FALSE,FALSE,FALSE,FALSE,2,1,{1,#N/A},\"Auto\",1,FALSE,,0.7,0.3,FALSE,FALSE)","v":true},{"$f":"DLD_ActivateSheet(S0rme)","v":false},null,"SCF_GMlong",null,23,23]
[{"$f":"SET.NAME(\"Acar\",CHAR(10))","v":true},"Arow","R",{"$f":"DLD_Selectcell(RowBall,2)","v":0},{"$f":"RUN(SCF_Check,FALSE)","v":{"$error":"#N/A"}},"! Format the Ambiguity sheet",{"$f":"SET.NAME(\"Afile\",OPEN.DIALOG(,,\"Please select the desired workbook.\"))","v":true},"! Do the known types","! Standarize locus names",null,{"$f":"SET.NAME(\"Afile\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&11,FALSE)))","v":true},"! Set up the Rule-report headers",{"$f":"BORDER(0,0,0,0,0)","v":true},{"$f":"DLD_Selectcell(RowBst2,2)","v":0},null,null,{"$f":"  ALERT(\"This worksheet is NOT in the expected CODIS format!\"&Acar&Acar&\"The column header 'SPECIMENID' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"  ALERT(\"This worksheet is NOT in the expected FSSi format!\"&Acar&Acar&\"The column header 'Sample ID' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"  ALERT(\"This worksheet is NOT in the expected GeneMapper, Fragment Profiler, or Vertical format!\"&Acar&Acar&\"The column header containing 'Sample ' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"  ALERT(\"This worksheet is NOT in the expected GeneMapper format!\"&Acar&Acar&\"The column header 'Sample Name' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"    SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColSam,FALSE)))","v":true},{"$f":"    ELSE()","v":true},{"$f":"    IF(NOT(ISERROR(ColRul)),FORMULA(\"R:\"&Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&Coffs+Iloc,FALSE)))","v":false},{"$f":"  ALERT(\"This worksheet is NOT in the expected Horizontal format!\"&Acar&Acar&\"The column header 'Sample Name' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"END.IF()","v":false},{"$f":"NEXT()","v":true},{"$f":"  IF(Ntmp<0.5,SET.NAME(\"ColLst\",Icol-1))","v":true},null,null,null,null,{"$f":"FORMULA(\"Diagnosis\",INDIRECT(\"'\"&S0err&\"'!\"&Arow&1&Acol&9,FALSE))","v":true},{"$f":"FORMULA(Atmp,INDIRECT(\"'\"&S0err&\"'!\"&Arow&1+Nodd&Acol&4,FALSE))","v":true},"! Tell user what to do",{"$f":"  FORMULA(\"?\",INDIRECT(\"'\"&S0dti&\"'!\"&Arow&Irow&Acol&4,FALSE))","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"DLD_Selectcell(1,1)","v":false},null,"SCF_GMwide",null,24,24]
[{"$f":"SET.NAME(\"Acol\",INDEX(GET.WORKSPACE(37),7))","v":true},"NumNew",0,{"$f":"ECHO(TRUE)","v":true},null,{"$f":"RUN(SCF_AmbigClear,FALSE)","v":{"$error":"#N/A"}},{"$f":"IF(ISERROR(Afile),SET.NAME(\"Afile\",FALSE))","v":false},{"$f":"SET.NAME(\"Ftype\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFmt&Acol&Cpara+1,FALSE)))","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},"! Check that all the loci in the file match the kit",{"$f":"FOR(\"Isrt\",2,Nsrt,1)","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"PATTERNS(0)","v":true},null,"! Get the input sheet info",null,{"$f":"  HALT()","v":true},{"$f":"  HALT()","v":true},{"$f":"  HALT()","v":true},{"$f":"  HALT()","v":true},{"$f":"    SET.NAME(\"Jrow\",MATCH(Asam,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Csamp,FALSE),0))","v":true},{"$f":"      SET.NAME(\"Itmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Csamp+1,FALSE)))","v":true},{"$f":"  NEXT()","v":true},{"$f":"  HALT()","v":true},null,{"$f":"FORMULA(Aprog&\" conversion of \"&S1dat&\" on: \"&TEXT(NOW(),AlngDatTim),INDIRECT(\"'\"&S0dst&\"'!\"&Arow&1&Acol&1,FALSE))","v":true},{"$f":"NEXT()","v":true},"! Find the last row of this sample","! Augment sample header","! Clear any exact duplicate rows",null,null,{"$f":"FORMULA(Aloc,INDIRECT(\"'\"&S0err&\"'!\"&Arow&1+Nodd&Acol&5,FALSE))","v":true},{"$f":"ALERT(\"The row and col designations in this summary refer to the 'OutStd' worksheet.\"&Acar&\"However, it might be best to correct your original data.\",2)","v":true},{"$f":"NEXT()","v":true},null,null,null,null,"SCF_ReadMe",null,25,25]
[{"$f":"SET.NAME(\"Adcp\",INDEX(GET.WORKSPACE(37),3))","v":true},null,null,{"$f":"SET.NAME(\"Atmp1\",NOW())","v":true},"! Compact it",null,{"$f":"IF(Afile=FALSE)","v":true},{"$f":"IF(Ftype=\"CODIS\")","v":true},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},{"$f":"SET.NAME(\"Ntmp\",COUNTA(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci&Asep&Arow&65536&Acol&Cloci,FALSE)))","v":true},{"$f":"  SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&Isrt+10,FALSE)))","v":true},{"$f":"SELECT(\"(\"&Arow&3&Acol&Cloci+4&Asep&Arow&2+Nloc&Acol&Cloci+4&Alsp&Arow&3&Acol&Csamp+4&Asep&Arow&2+Nsam&Acol&Csamp+4&\")\")","v":true},null,{"$f":"RETURN()","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},null,{"$f":"END.IF()","v":false},{"$f":"END.IF()","v":false},{"$f":"END.IF()","v":false},{"$f":"END.IF()","v":false},{"$f":"    IF(ISERROR(Jrow))","v":true},{"$f":"      FORMULA(Itmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+1,FALSE))","v":true},{"$f":"NEXT()","v":true},{"$f":"END.IF()","v":false},"! Loci",{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&1&Acol&1&Asep&Arow&1&Acol&Ncol,FALSE))","v":true},{"$f":"IF(ColLst<1.5)","v":true},{"$f":"    SET.NAME(\"Itmp\",MATCH(\"*</SPECIMEN>*\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&1&Asep&Arow&RowLst&Acol&1,FALSE),0))","v":true},{"$f":"SELECT(Arow&1&Acol&Csamp&Asep&Arow&1&Acol&Csamp+6)","v":false},{"$f":"SET.NAME(\"Nclr\",0)","v":true},null,"! Format",{"$f":"FORMULA(Iall,INDIRECT(\"'\"&S0err&\"'!\"&Arow&1+Nodd&Acol&6,FALSE))","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AH$1&\" > Finished!\")","v":true},null,null,"! Reset Data worksheets","! Format the ControlPanel",null,"SCF_Rules",null,26,26]
[{"$f":"SET.NAME(\"Agnl\",INDEX(GET.WORKSPACE(37),26))","v":true},null,null,{"$f":"FORMULA(Atmp1,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&5&Acol&3,FALSE))","v":true},{"$f":"RUN(SCF_Compact,FALSE)","v":{"$error":"#N/A"}},"! Get current sort-order",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7&\" > Browsing aborted by user.\")","v":true},{"$f":"  RUN(SCF_CODIS,FALSE)","v":{"$error":"#N/A"}},{"$f":"  SET.NAME(\"Acln\",TRIM(CLEAN(SUBSTITUTE(Aloc,\" \",\"\"))))","v":true},{"$f":"FOR(\"Iloc\",1,Ntmp,1)","v":true},{"$f":"  SET.NAME(\"Afile\",Afile&\", \"&Atmp)","v":true},{"$f":"CLEAR(3)","v":true},"! Header records",null,{"$f":"SET.NAME(\"DirB\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&3&Acol&Cpara+1,FALSE)))","v":true},null,null,null,null,null,{"$f":"      SET.NAME(\"Nsam\",Nsam+1)","v":true},{"$f":"      SET.NAME(\"Itmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Csamp+3,FALSE)))","v":true},{"$f":"FORMULA(Aprog&\" conversion of \"&S1dat&\" on: \"&TEXT(NOW(),AlngDatTim),INDIRECT(\"'\"&S0dst&\"'!\"&Arow&1&Acol&1,FALSE))","v":true},null,{"$f":"DLD_ActivateSheet(S0din)","v":0},{"$f":"ALIGNMENT(7,FALSE,3,0)","v":true},{"$f":"  FORMULA(\"Invalid Bode format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"    IF(ISERROR(Itmp))","v":true},{"$f":"ALIGNMENT(7,FALSE,3,0)","v":true},{"$f":"FOR(\"Irow\",RowHed+1,RowHed+Nsam,1)","v":true},null,{"$f":"DLD_ColumnAutofit(1,-1)","v":0},{"$f":"FORMULA(Xval,INDIRECT(\"'\"&S0err&\"'!\"&Arow&1+Nodd&Acol&7,FALSE))","v":true},{"$f":"RETURN()","v":true},"! Check the Date format",null,{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"DLD_ActivateSheet(S0con)","v":false},null,"SCF_Store",null,27,27]
[{"$f":"SET.NAME(\"Alsp\",INDEX(GET.WORKSPACE(37),5))","v":true},null,null,{"$f":"SET.NAME(\"Atmp2\",DEREF(INDIRECT(\"'\"&S0mac&\"'!\"&Arow&4&Acol&3,FALSE)))","v":true},null,{"$f":"SET.NAME(\"Asort\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE)))","v":true},{"$f":"  DLD_ActivateSheet(S0con)","v":0},{"$f":"  SET.NAME(\"Csamp\",Cloci+6+IF(ISERROR(ColRul),0,2))","v":true},null,{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},{"$f":"NEXT()","v":true},null,{"$f":"FORMULA(Aprog&\" conversion of \"&S1dat&\" on: \"&TEXT(NOW(),AlngDatTim),INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&1&Acol&1,FALSE))","v":true},null,{"$f":"SET.NAME(\"WrkBk1\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&4&Acol&Cpara+1,FALSE)))","v":true},null,"! Get the locus column","! Try to get the secondary parameters","! Check that there is only one match to \"Sample Name\" in the header","! Check that there are multiple matches to \"Sample Name\" in the header",{"$f":"      FORMULA(Asam,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp,FALSE))","v":true},{"$f":"      FORMULA(Itmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+3,FALSE))","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&1&Acol&1&Asep&Arow&1&Acol&Ncol,FALSE))","v":true},"! Set the other pointers",{"$f":"SET.NAME(\"Nloc\",0)","v":true},{"$f":"DLD_ColumnAutofit(1,-1)","v":0},{"$f":"  ECHO(TRUE)","v":true},{"$f":"      FORMULA(\"Invalid XML format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true},{"$f":"FORMULA(\"1rule\",Arow&2&Acol&Csamp+5)","v":false},{"$f":"  SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColSam,FALSE)))","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":0},null,null,{"$f":"SET.NAME(\"AlngDat\",DEREF(INDIRECT(\"'\"&S0dti&\"'!\"&Arow&2&Acol&3,FALSE)))","v":true},null,{"$f":"PAGE.SETUP(\"&L&\"\"Arial,Regular\"\"&8Built by: DL Duewer, NIST&C&\"\"Arial,Bold\"\"&16\"&Asyst&\" &\"\"Arial,Regular\"\"&12<\"&TEXT(Adate,\"dd-mmm-yy\")&\">\n\"&Atmp&\"&R&\"\"Arial,Regular\"\"&8Paid for, in part, by: NIJ\",\"&L&\"\"Arial,Regular\"\"&8&F!&A&C&\"\"Arial,Regular\"\"&8&D &T&R&\"\"Arial,Regular\"\"&8&P / &N\",0.5,0.25,1.3,0.5,FALSE,FALSE,TRUE,FALSE,2,1,{1,#N/A},\"Auto\",1,FALSE,,0.7,0.3,FALSE,FALSE)","v":true},{"$f":"SELECT(Acol&1&Asep&Acol&256)","v":true},null,"SCF_StoreCompact",null,28,28]
[{"$f":"SET.NAME(\"Arow\",INDEX(GET.WORKSPACE(37),6))","v":true},null,null,{"$f":"SET.NAME(\"Atmp3\",24*(Atmp1-Atmp2))","v":true},"! Store it in standard format",{"$f":"IF(ISERROR(Asort),SET.NAME(\"Asort\",\"\"))","v":false},{"$f":"  ALERT(\"No data file was specified.\",2)","v":true},{"$f":"  SET.NAME(\"Crule\",Csamp+6+IF(ISERROR(ColRul),0,2))","v":true},{"$f":"  FORMULA(99999,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+4,FALSE))","v":true},{"$f":"  SET.NAME(\"Itmp\",MATCH(Aloc,INDIRECT(\"'\"&S0srt&\"'!\"&Acol&Icol,FALSE),0))","v":true},null,"! Format the Ambiguity sheet",{"$f":"SELECT(INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&1&Acol&1&Asep&Arow&1&Acol&1+Nloc,FALSE))","v":true},null,{"$f":"SET.NAME(\"Bsht\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&5&Acol&Cpara+1,FALSE)))","v":true},null,{"$f":"SET.NAME(\"ColLoc\",MATCH(\"*LOCUSNAME\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"SET.NAME(\"ColLoc\",MATCH(\"Locus ID\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"SET.NAME(\"Itmp\",MATCH(\"Sample *\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&ColSam+1&Asep&Arow&RowHed&Acol&256,FALSE),0))","v":true},{"$f":"SET.NAME(\"Itmp\",MATCH(\"Sample Name\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&ColSam+1&Asep&Arow&RowHed&Acol&256,FALSE),0))","v":true},{"$f":"      FORMULA(Irow,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+2,FALSE))","v":true},{"$f":"    END.IF()","v":true},{"$f":"ALIGNMENT(7,FALSE,3,0)","v":true},{"$f":"SET.NAME(\"ColLoc\",ColSam+1)","v":true},{"$f":" FOR(\"Icol\",ColLoc,ColLst,1)","v":true},{"$f":"DLD_Selectcell(1,1)","v":0},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AA$1&\" > This worksheet is NOT in the Bode format!\")","v":false},{"$f":"      ECHO(TRUE)","v":true},{"$f":"FORMULA(\"2rule+\",Arow&2&Acol&Csamp+6)","v":false},{"$f":"  SET.NAME(\"Isam\",MATCH(Asam,INDIRECT(\"'\"&S0din&\"'!\"&Acol&ColSam,FALSE),1))","v":true},null,null,{"$f":"FORMULA(Etype,INDIRECT(\"'\"&S0err&\"'!\"&Arow&1+Nodd&Acol&9,FALSE))","v":true},null,{"$f":"SET.NAME(\"Itmp0\",TEXT(NOW(),AlngDat))","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"ROW.HEIGHT(,,,3)","v":true},null,"SCF_StoreStandard",null,29,29]
[{"$f":"SET.NAME(\"Asep\",\":\")","v":true},null,null,null,{"$f":"RUN(SCF_StoreStandard,FALSE)","v":{"$error":"#N/A"}},{"$f":"SET.NAME(\"Itmp\",MATCH(Asort,INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&11&Asep&Arow&1&Acol&256,FALSE),0))","v":true},{"$f":"  HALT()","v":true},{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":{"$error":"#N/A"}},{"$f":"  FOR(\"Icol\",1,10,1)","v":true},{"$f":"  IF(ISERROR(Itmp))","v":true},"! Ask which one",{"$f":"RUN(SCF_AmbigClear,FALSE)","v":{"$error":"#N/A"}},{"$f":"ALIGNMENT(7,FALSE,3,0)","v":true},"SCF_StoreCompact",{"$f":"IF(NOT(ISERROR(DirB)),DIRECTORY(DirB))","v":"D:\\Work\\DNA\\STR_Convert"},null,{"$f":"IF(ISERROR(ColLoc))","v":true},{"$f":"SET.NAME(\"ColMaj\",MATCH(\"Major Designation 1\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"IF(NOT(ISERROR(Itmp)))","v":true},{"$f":"IF(ISERROR(Itmp))","v":true},{"$f":"      FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+3,FALSE))","v":true},null,{"$f":"DLD_ColumnAutofit(1,-1)","v":0},{"$f":"SET.NAME(\"ColMaj\",NA())","v":true},{"$f":"   SET.NAME(\"Nval\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Icol&Asep&Arow&RowLst&Acol&Icol,FALSE)))","v":true},null,{"$f":"  ALERT(\"This worksheet is NOT in the expected Bode format!\"&Acar&Acar&\"'There are no samples with data.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"      MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AB$1&\" > Unbalanced SPECIMENID pair after row (\"&Irow&\")!\")","v":true},{"$f":"SELECT(Arow&2&Acol&Csamp+5&Asep&Arow&2&Acol&Csamp+6)","v":false},{"$f":"  IF(Isam>Irow)","v":true},null,"! make sure the worksheet is hidden",null,null,{"$f":"IF(Itmp0=AlngDat,SET.NAME(\"Itmp0\",NA()))","v":false},null,null,{"$f":"DLD_ColumnAutofit(1,2)","v":false},null,"SCF_StructureLong",null,30,30]
[null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\"  Wall-clock time this session of \"&WrkBk0&\": \"&TEXT(Atmp3,\"0\"&Adcp&\"000\")&\" hours.\")","v":true},null,{"$f":"SET.NAME(\"Itmp\",IF(ISERROR(Itmp),11,10+Itmp))","v":true},{"$f":"END.IF()","v":false},{"$f":"  RUN(SCF_StructureDataVeryLong,FALSE)","v":{"$error":"#N/A"}},{"$f":"    SET.NAME(\"Irow\",MATCH(Acln,INDIRECT(\"'\"&S0srt&\"'!\"&Acol&Icol,FALSE),0))","v":true},{"$f":"    SET.NAME(\"Isok\",FALSE)","v":true},{"$f":"SET.NAME(\"Atmp\",INPUT(\"Please specify sort-order from among:\"&Acar&Afile,2,\"Specify locus sort-order\",Asort))","v":true},null,{"$f":"FORMULA(\"SampleCode\",INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&RowStd&Acol&1,FALSE))","v":true},"! User access",{"$f":"IF(ISERROR(WrkBk1),SET.NAME(\"WrkBk1\",\"*.xlsx\"))","v":false},null,{"$f":"  FORMULA(\"Invalid CODIS format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"SET.NAME(\"ColPro\",MATCH(\"i-STRess Major\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"  FORMULA(\"Invalid GeneMapper/Fragment Profiler/Vertical format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"  FORMULA(\"Invalid GeneMapper format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"    ELSE()","v":true},"! Loci",{"$f":"DLD_Selectcell(1,1)","v":0},{"$f":"SET.NAME(\"ColPro\",NA())","v":true},{"$f":"   IF(Nval>0)","v":true},"! Loop over the samples",{"$f":"  HALT()","v":true},{"$f":"      ALERT(\"Error: Unbalanced SPECIMENID after row (\"&Irow&\").\"&Acar&Acar&\"There's something seriously wrong with the XML code.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":true},{"$f":"ALIGNMENT(3,FALSE,3,0)","v":true},{"$f":"    FOR(\"Jrow\",Irow+1,Isam,1)","v":true},null,{"$f":"WORKBOOK.HIDE()","v":true},"!=MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&R1C&\" > Finished!\")",null,{"$f":"IF(ISERROR(Itmp0*1),SET.NAME(\"Itmp0\",NA()))","v":false},null,{"$f":"DLD_ActivateSheet(S0dst)","v":false},null,null,"SCF_StructureNIST",null,31,31]
["! Store a few workspace parameters",null,null,{"$f":"RETURN()","v":true},"! Store it in compact format",{"$f":"SET.NAME(\"Asort\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&Itmp,FALSE)))","v":true},null,null,{"$f":"    IF(NOT(ISERROR(Irow)))","v":true},{"$f":"    SET.NAME(\"Atmp\",\"??\")","v":true},{"$f":"IF(Atmp=FALSE)","v":true},"! Clear any patterns",{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},null,{"$f":"IF(ISERROR(Bsht),SET.NAME(\"Bsht\",\"\"))","v":false},null,{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":false},{"$f":"SET.NAME(\"ColRul\",MATCH(\"Rules Fired\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":false},{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":false},{"$f":"      SET.NAME(\"Itmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Csamp+3,FALSE)))","v":true},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColLoc,FALSE)))","v":true},null,{"$f":"SET.NAME(\"ColRul\",NA())","v":true},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Icol,FALSE)))","v":true},{"$f":"FOR(\"Isam\",1,Nsam,1)","v":true},{"$f":"END.IF()","v":false},{"$f":"      HALT()","v":true},{"$f":"BORDER(1)","v":true},{"$f":"      SET.NAME(\"Ndif\",0)","v":true},null,null,{"$f":"RETURN()","v":true},null,{"$f":"IF(ISERROR(Itmp0))","v":true},null,{"$f":"PAGE.SETUP(\"&L&\"\"Arial,Regular\"\"&8Built by: DL Duewer, NIST&C&\"\"Arial,Bold\"\"&16\"&Asyst&\" &\"\"Arial,Regular\"\"&12<\"&TEXT(Adate,\"dd-mmm-yy\")&\">\n\"&Atmp&\"&R&\"\"Arial,Regular\"\"&8Paid for, in part, by: NIJ\",\"&L&\"\"Arial,Regular\"\"&8&F!&A&C&\"\"Arial,Regular\"\"&8&D &T&R&\"\"Arial,Regular\"\"&8&P / &N\",0.5,0.25,1.3,0.5,FALSE,FALSE,TRUE,FALSE,2,1,{1,#N/A},\"Auto\",1,FALSE,,0.7,0.3,FALSE,FALSE)","v":true},{"$f":"SELECT(\"Button 1\")","v":true},null,"SCF_StructureWide",null,32,32]
[{"$f":"FORMULA(GET.WORKSPACE(4),INDIRECT(\"'\"&S0mac&\"'!\"&Arow&2&Acol&3,FALSE))","v":true},null,null,null,{"$f":"RUN(SCF_StoreCompact,FALSE)","v":{"$error":"#N/A"}},null,"! Open the file",{"$f":"ELSE.IF(Ftype=\"FSSi\")","v":true},{"$f":"      SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&Irow&Acol&1,FALSE)))","v":true},{"$f":"    GOTO(J$51)","v":true},{"$f":"  SET.NAME(\"Asort\",Acur)","v":true},{"$f":"DLD_ActivateSheet(S0dst)","v":0},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},"!Setup for compact output",{"$f":"SET.NAME(\"Itmp\",FIND(\"_NIST\",Bsht))","v":true},null,{"$f":"  ECHO(TRUE)","v":true},null,{"$f":"  ECHO(TRUE)","v":true},{"$f":"  ECHO(TRUE)","v":true},{"$f":"      FORMULA(Itmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+3,FALSE))","v":true},{"$f":"    SET.NAME(\"Jrow\",MATCH(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci,FALSE),0))","v":true},"! Loop over the samples",null,null,{"$f":"   MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Z$1&\" > Sample \"&Isam&\" of \"&Nsam)","v":true},null,{"$f":"    END.IF()","v":false},null,{"$f":"      FOR(\"Icol\",ColSam+1,ColLst,1)","v":true},null,"!=MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&R1C&\" > Finished!\")",null,null,{"$f":"  SET.NAME(\"NumNew\",NumNew+1)","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"FORMAT.SIZE(86,36)","v":true},null,"Utility_AlignControls",null,33,33]
[{"$f":"FORMULA(GET.DOCUMENT(14),INDIRECT(\"'\"&S0mac&\"'!\"&Arow&3&Acol&3,FALSE))","v":true},null,null,null,null,null,{"$f":"ERROR(FALSE)","v":true},{"$f":"  RUN(SCF_FSSi,FALSE)","v":{"$error":"#N/A"}},{"$f":"      IF(NOT(Aloc=Atmp))","v":true},{"$f":"  END.IF()","v":false},null,{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Acol&1&Asep&Acol&256,FALSE))","v":true},{"$f":"  FORMULA(Aloc,INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&RowStd&Acol&1+Iloc,FALSE))","v":true},{"$f":"SET.NAME(\"Msub0\",\"  \")","v":true},{"$f":"IF(NOT(ISERROR(Itmp)),SET.NAME(\"Bsht\",MID(Bsht,1,Itmp-1)))","v":false},null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Q$1&\" > This worksheet is NOT in CODIS format!\")","v":false},"Check locus",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&S$1&\" > This worksheet is NOT in GeneMapper, Fragment Profiler, or Vertical long-format!\")","v":false},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&T$1&\" > This worksheet is NOT in GeneMapper wide-format!\")","v":false},{"$f":"    END.IF()","v":true},{"$f":"    IF(ISERROR(Jrow))","v":true},{"$f":"FOR(\"Isam\",1,Nsam,1)","v":true},"! Loci","! Count the number of columns",{"$f":"  SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp,FALSE)))","v":true},"! Get number of Loci",{"$f":"    SET.NAME(\"Irow1\",Irow+Itmp-1)","v":true},"! Rule header",{"$f":"        SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&Icol,FALSE)))","v":true},null,{"$f":"RETURN()","v":true},null,null,{"$f":"  FORMULA(\"Invalid!\",INDIRECT(\"'\"&S0dti&\"'!\"&Arow&2&Acol&4,FALSE))","v":true},null,null,{"$f":"FORMAT.MOVE(2,2,Arow&1&Acol&1)","v":true},null,"Utility_CleanUpNames",null,34,34]
[{"$f":"FORMULA(NOW(),INDIRECT(\"'\"&S0mac&\"'!\"&Arow&4&Acol&3,FALSE))","v":true},null,null,null,"! Format return","! Format the basic ControlPanel",{"$f":"  SET.NAME(\"Atmp1\",OPEN(Afile,0,FALSE,,,,,,,,1))","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6+IF(ISERROR(ColRul),0,2))","v":true},{"$f":"        FORMULA(Atmp,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE))","v":true},{"$f":"NEXT()","v":true},"! Try to match",{"$f":"PATTERNS(0)","v":true},{"$f":"NEXT()","v":true},{"$f":"SET.NAME(\"S0dou\",S0dcm)","v":true},{"$f":"SET.NAME(\"Afiles\",FILES(WrkBk1))","v":true},null,{"$f":"  ALERT(\"This worksheet is NOT in the expected CODIS format!\"&Acar&Acar&\"The column header 'LOCUSNAME' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"IF(ISERROR(ColLoc))","v":true},{"$f":"  ALERT(\"This worksheet is NOT in the expected GeneMapper,Fragment Proiler, or Vertical format!\"&Acar&Acar&\"A column header containing 'Sample ' occurs at least twice in the header.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"  ALERT(\"This worksheet is NOT in the expected GeneMapper wide-format!\"&Acar&Acar&\"'Sample Name' occurs only once in the header.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},null,{"$f":"      SET.NAME(\"Nloc\",Nloc+1)","v":true},{"$f":"   MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&W$1&\" > Sample \"&Isam&\" of \"&Nsam)","v":true},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"    IF(NOT(Ftype=\"NISTcompact\"))","v":true},{"$f":"  SET.NAME(\"Irow\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+2,FALSE)))","v":true},{"$f":"SET.NAME(\"Nloc\",0)","v":true},null,{"$f":"FORMULA(\"Rules\",Arow&1&Acol&Crule)","v":false},{"$f":"        SET.NAME(\"Adif\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Jrow&Acol&Icol,FALSE)))","v":true},null,null,null,null,{"$f":"  DLD_ColumnAutofit(1,4)","v":false},null,{"$f":"DLD_ActivateSheet(S0dcm)","v":false},{"$f":"FOR(\"Itmp\",2,6,1)","v":true},null,"Utility_DateTimeDependencies",null,35,35]
[null,null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"ERROR(TRUE)","v":true},{"$f":"  SET.NAME(\"Crule\",Csamp+6+IF(ISERROR(ColRul),0,2))","v":true},{"$f":"        SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+3,FALSE)))","v":true},null,{"$f":"ELSE()","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Acol&Coffs+1+Nloc&Asep&Acol&256,FALSE))","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&RowStd&Acol&2&Asep&Arow&RowStd&Acol&1+Nloc,FALSE))","v":true},{"$f":"SET.NAME(\"NanSto\",NanSt2)","v":true},{"$f":"SET.NAME(\"Nfile\",IF(ISERROR(Afiles),0,COLUMNS(Afiles)))","v":true},null,{"$f":"  HALT()","v":true},{"$f":"  FORMULA(\"Invalid FSSi format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"  HALT()","v":true},{"$f":"  HALT()","v":true},"! Loci",{"$f":"      FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci,FALSE))","v":true},{"$f":"  SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp,FALSE)))","v":true},{"$f":"SET.NAME(\"Nloc\",0)","v":true},{"$f":"       SET.NAME(\"Jrow\",MATCH(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci,FALSE),0))","v":true},{"$f":"  FORMULA(Asam,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&1,FALSE))","v":true},{"$f":"FOR(\"Irow\",RowHed+1,RowLst,1)","v":true},"! Get the sample name",{"$f":"SELECT(Arow&1&Acol&Crule&Asep&Arow&2&Acol&Crule+1)","v":false},{"$f":"        IF(NOT(Atmp=Adif),SET.NAME(\"Ndif\",Ndif+1))","v":false},null,null,null,null,{"$f":"  SELECT(Arow&2&Acol&2)","v":true},null,{"$f":"PAGE.SETUP(\"&L&\"\"Arial,Regular\"\"&6Built by: DL Duewer, NIST&C&\"\"Arial,Bold\"\"&14\"&Asyst&\"  &\"\"Arial,Regular\"\"&10<Version \"&TEXT(Adate,\"dd-mmm-yy\")&\">\n\"&Atmp&\"&R&\"\"Arial,Regular\"\"&6Paid for, in part, by: NIJ\",\"&L&\"\"Arial,Regular\"\"&6&F!&A&C&\"\"Arial,Regular\"\"&6&D &T&R&\"\"Arial,Regular\"\"&6&P / &N\",0.5,0.25,1.3,0.5,FALSE,FALSE,TRUE,FALSE,1,TRUE,{1,#N/A},\"Auto\",1,FALSE,,0.7,0.3,FALSE,FALSE)","v":true},{"$f":"  SELECT(\"Button \"&Itmp)","v":true},null,"Utility_ResetHeaders",null,36,36]
["! Is this the first time for a new user?",null,null,null,{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},{"$f":"STR_FormatControl(ZoomSet,Cpara,Csamp+4,RowFmt,RowClr)","v":0},{"$f":"IF(ISERROR(Atmp1),SET.NAME(\"Atmp1\",TRUE))","v":false},{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":{"$error":"#N/A"}},{"$f":"        SET.NAME(\"Jcol\",MATCH(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&3,FALSE),0))","v":true},"! Check that all the loci in the kit match those in the file",{"$f":"  SET.NAME(\"Nlen\",LEN(Atmp))","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"ALIGNMENT(3,FALSE,3,0)","v":true},{"$f":"SET.NAME(\"RowTmp\",RowSt2)","v":true},null,null,{"$f":"END.IF()","v":false},{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":false},{"$f":"END.IF()","v":false},{"$f":"END.IF()","v":false},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColLoc,FALSE)))","v":true},{"$f":"      FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+1,FALSE))","v":true},{"$f":"  SET.NAME(\"Irow1\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+2,FALSE)))","v":true},{"$f":" FOR(\"Icol\",ColLoc,ColLst,1)","v":true},{"$f":"       IF(ISERROR(Jrow))","v":true},null,{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColLoc,FALSE)))","v":true},{"$f":"    SET.NAME(\"Nsam\",Nsam+1)","v":true},{"$f":"ALIGNMENT(7,FALSE,3,0)","v":true},{"$f":"      NEXT()","v":true},null,null,null,null,{"$f":"  OPTIONS.VIEW(TRUE,TRUE)","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":false},{"$f":"  FORMAT.SIZE(65,24)","v":true},null,"Utility_ShowMacro",null,37,37]
[{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0mac&\"'!\"&Arow&6&Acol&3,FALSE)))","v":true},null,null,null,{"$f":"ECHO(TRUE)","v":true},null,{"$f":"IF(Atmp1=FALSE)","v":true},{"$f":"  RUN(SCF_StructureLong,FALSE)","v":{"$error":"#N/A"}},{"$f":"        FOR(\"Iall\",1,Nall,1)","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"  SET.NAME(\"Isok\",0)","v":true},null,{"$f":"BORDER(1)","v":true},{"$f":"SET.NAME(\"Fadd\",\"NISTc\")","v":true},"! No files of that kind found in the current directory",null,null,{"$f":"  ECHO(TRUE)","v":true},null,null,{"$f":"    SET.NAME(\"Jrow\",MATCH(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci,FALSE),0))","v":true},{"$f":"      FORMULA(IF(ISERROR(ColMaj),ColPro,IF(ISERROR(ColPro),ColMaj,ColMaj&\"&\"&ColPro)),INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+2,FALSE))","v":true},{"$f":"  SET.NAME(\"Ntmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+3,FALSE)))","v":true},{"$f":"   SET.NAME(\"Nval\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Icol&Asep&Arow&RowLst&Acol&Icol,FALSE)))","v":true},{"$f":"         SET.NAME(\"Nloc\",Nloc+1)","v":true},"! Loop over the loci for this sample",{"$f":"    SET.NAME(\"Jrow\",MATCH(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci,FALSE),0))","v":true},{"$f":"    SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&1,FALSE)))","v":true},{"$f":"FORMULA(\"Code\",Arow&2&Acol&Crule)","v":false},{"$f":"      IF(Ndif<0.5)","v":true},null,null,null,null,{"$f":"  ECHO(TRUE)","v":true},null,null,{"$f":"  FORMAT.MOVE(1,1,Arow&5+(Itmp-2)*3&Acol&2)","v":true},null,"SCF_StructureDataVeryLong",null,38,38]
[{"$f":"SET.NAME(\"Atmp1\",GET.WORKSPACE(26))","v":true},null,null,null,{"$f":"DLD_Selectcell(RowBext,2)","v":0},"! Parameters",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7&\" > File (\"&Afile&\") could not be opened.\")","v":false},{"$f":"  RUN(SCF_DataLong,FALSE)","v":{"$error":"#N/A"}},{"$f":"          FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&3&Acol&Jcol+Iall-1,FALSE))","v":true},{"$f":"SET.NAME(\"Ntmp\",COUNTA(INDIRECT(\"'\"&S0srt&\"'!\"&Acol&Icol,FALSE)))","v":true},{"$f":"  FOR(\"Isrt\",1,Nsrt,1)","v":true},"! Loop over all alleles for each sample",{"$f":"DLD_ColumnAutofit(1,-1)","v":0},null,{"$f":"IF(Nfile<0.5)","v":true},null,"! Get the allele column",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&R$1&\" > This worksheet is NOT in FSSi format!\")","v":false},"! Try to get the secondary parameters","! Loci",{"$f":"    IF(ISERROR(Jrow))","v":true},{"$f":"      FORMULA(2,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+3,FALSE))","v":true},{"$f":"  SET.NAME(\"Irow2\",Irow1+Ntmp-1)","v":true},{"$f":"   IF(Nval>0)","v":false},{"$f":"         FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci,FALSE))","v":true},{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"    IF(ISERROR(Jrow))","v":true},{"$f":"    SET.NAME(\"Atmp\",MID(Atmp,FIND(\">\",Atmp)+1,100))","v":true},{"$f":"FORMULA(\"#\",Arow&2&Acol&Crule+1)","v":false},{"$f":"        SET.NAME(\"Nclr\",Nclr+1)","v":true},null,null,null,null,{"$f":"  MESSAGE(TRUE,\"Missing a valid day, month, year format.\")","v":true},null,"! Reset Macro page as well",{"$f":"NEXT()","v":true},null,"SCF_CODIS",null,39,39]
[{"$f":"FORMULA(Atmp1,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&6&Acol&3,FALSE))","v":true},null,null,null,null,{"$f":"FORMULA(Asyst&\" <\"&Adate&\"> \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&2&Acol&Cpara+1,FALSE))","v":true},{"$f":"  DLD_ActivateSheet(S0con)","v":false},null,{"$f":"        NEXT()","v":true},{"$f":"FOR(\"Iloc\",2,Ntmp,1)","v":true},{"$f":"    SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&Isrt+10,FALSE)))","v":true},{"$f":"SET.NAME(\"Icol\",1)","v":true},{"$f":"DLD_Selectcell(1,1)","v":0},"Check if requisite procedures compete",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > Workbook (\"&WrkBk1&\") not found!\")","v":false},null,{"$f":"SET.NAME(\"ColMaj\",MATCH(\"*ALLELEVALUE\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"  ALERT(\"This worksheet is NOT in the expected FSSi format!\"&Acar&Acar&\"The column header 'Locus ID' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"SET.NAME(\"ColLoc\",MATCH(\"Marker\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"      SET.NAME(\"Nloc\",Nloc+1)","v":true},{"$f":"      SET.NAME(\"Jrow\",Nloc+2)","v":true},{"$f":"  FORMULA(Asam,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&1,FALSE))","v":true},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Icol,FALSE)))","v":true},{"$f":"         FORMULA(Icol,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+2,FALSE))","v":true},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci,FALSE)))","v":true},{"$f":"      SET.NAME(\"Nloc\",Nloc+1)","v":true},{"$f":"    SET.NAME(\"Asam\",LEFT(Atmp,FIND(\"<\",Atmp)-1))","v":true},{"$f":"SELECT(Arow&2&Acol&Crule&Asep&Arow&2&Acol&Crule+1)","v":false},{"$f":"        SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Jrow,FALSE))","v":true},null,null,null,null,{"$f":"  ALERT(\"Please format this as a valid date (day, month, year) with\"&Acar&\" Excel's standard cell format tool (Format > Cells… > Number > Date).\"&Acar&Acar&\"Then click 'Check It' to proceed.\")","v":true},null,{"$f":"DLD_ActivateSheet(S0mac)","v":false},{"$f":"FOR(\"Itmp\",10,11,1)","v":true},null,"SCF_Sort",null,40,40]
[{"$f":"IF(Atmp=Atmp1)","v":true},null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&\" > Finished!\")","v":true},{"$f":"FORMULA(NamClr&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowClr&Acol&Cpara,FALSE))","v":true},{"$f":"  ALERT(\"File (\"&Afile&\") could not be opened.\",2)","v":false},{"$f":"ELSE.IF(Ftype=\"GM-long\")","v":true},{"$f":"        FORMULA(Iloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+4,FALSE))","v":true},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&Iloc&Acol&Icol,FALSE)))","v":true},{"$f":"    IF(LEFT(Atmp1,Nlen)=Atmp)","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},null,{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"  ECHO(TRUE)","v":true},null,{"$f":"IF(ISERROR(ColMaj))","v":true},{"$f":"  HALT()","v":true},{"$f":"IF(ISERROR(ColLoc),SET.NAME(\"ColLoc\",MATCH(\"RangeName\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0)))","v":false},{"$f":"SET.NAME(\"Nloc\",0)","v":true},{"$f":"      FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci,FALSE))","v":true},{"$f":"    ELSE()","v":true},{"$f":"  IF(NOT(ISERROR(ColRul)),FORMULA(Asam,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs,FALSE)))","v":false},{"$f":"    IF(NOT(ISERROR(FIND(\" \",Aloc))),SET.NAME(\"Aloc\",LEFT(Aloc,FIND(\" \",Aloc)-1)))","v":false},{"$f":"         FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+3,FALSE))","v":true},{"$f":"    SET.NAME(\"Icol\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+2,FALSE)))","v":true},{"$f":"      FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci,FALSE))","v":true},null,{"$f":"ALIGNMENT(3,FALSE,3,0)","v":true},{"$f":"        CLEAR(3)","v":true},null,null,null,null,{"$f":"  HALT()","v":true},null,{"$f":"PAGE.SETUP(\"&L&\"\"Arial,Regular\"\"&8Built by: DL Duewer, NIST&C&\"\"Arial,Bold\"\"&16\"&Asyst&\" &\"\"Arial,Regular\"\"&12<\"&TEXT(Adate,\"dd-mmm-yy\")&\">\n\"&Atmp&\"&R&\"\"Arial,Regular\"\"&8Paid for, in part, by: NIJ\",\"&L&\"\"Arial,Regular\"\"&8&F!&A&C&\"\"Arial,Regular\"\"&8&D &T&R&\"\"Arial,Regular\"\"&8&P / &N\",0.5,0.25,1.3,0.5,FALSE,FALSE,FALSE,FALSE,2,1,{1,#N/A},\"Auto\",1,FALSE,,0.7,0.3,FALSE,FALSE)","v":true},{"$f":"  SELECT(\"Button \"&Itmp)","v":true},null,"SCF_SortUser",null,41,41]
[{"$f":"  SET.NAME(\"Atmp2\",DEREF(INDIRECT(\"'\"&S0mac&\"'!\"&Arow&7&Acol&3,FALSE)))","v":true},null,null,null,{"$f":"RETURN()","v":true},{"$f":"FORMULA(NamFet&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara,FALSE))","v":true},{"$f":"  HALT()","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},{"$f":"        SET.NAME(\"Icol\",99999)","v":true},{"$f":"  SET.NAME(\"Itmp\",MATCH(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci,FALSE),0))","v":true},{"$f":"      SET.NAME(\"Isok\",Isok+1)","v":true},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},"! Loop over the samples",{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSt2&Acol&Cpara+1&Asep&Arow&RowSt2&Acol&Cpara+1,FALSE))","v":true},{"$f":"  SET.NAME(\"Atmp\",ALERT(\"Workbook (\"&WrkBk1&\") is not in the current directory: \"&DIRECTORY()&\".\"&Acar&Acar&\"Click 'OK' to browse, 'Cancel' to abort.\",1))","v":false},null,{"$f":"  FORMULA(\"Invalid CODIS format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"END.IF()","v":false},{"$f":"SET.NAME(\"ColMaj\",MATCH(\"Allele 1\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0))","v":true},{"$f":"FOR(\"Icol\",ColFst,ColLst,1)","v":true},{"$f":"      FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2&Acol&Csamp+4+Nloc,FALSE))","v":true},{"$f":"      SET.NAME(\"Itmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+1,FALSE)))","v":true},null,null,{"$f":"         SET.NAME(\"Jrow\",Nloc+2)","v":true},{"$f":"    SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+3,FALSE)))","v":true},{"$f":"      FORMULA(0,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+1,FALSE))","v":true},"! Get all the loci within the Irow0 to Irow1 range",{"$f":"BORDER(1)","v":true},{"$f":"      END.IF()","v":true},null,null,null,null,{"$f":"ELSE()","v":true},null,{"$f":"SELECT(Arow&6&Acol&3&Asep&Arow&7&Acol&3)","v":true},{"$f":"  FORMAT.SIZE(65,24)","v":true},null,"SCF_SortSpecify",null,42,42]
[{"$f":"  IF(ISERROR(Atmp2),SET.NAME(\"Atmp2\",0))","v":false},null,null,null,null,{"$f":"FORMULA(NamCon&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara,FALSE))","v":true},{"$f":"END.IF()","v":false},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},{"$f":"      END.IF()","v":true},{"$f":"  IF(ISERROR(Itmp))","v":true},{"$f":"      SET.NAME(\"Asort\",Atmp1)","v":true},{"$f":"  SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+3,FALSE)))","v":true},{"$f":"SET.NAME(\"Nodd\",0)","v":true},{"$f":"CLEAR(3)","v":true},{"$f":"  IF(NOT(Atmp))","v":true},null,{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":false},null,{"$f":"IF(ISERROR(ColMaj),SET.NAME(\"ColMaj\",MATCH(\"Allele1\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE),0)))","v":false},{"$f":"  SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Icol,FALSE)))","v":true},{"$f":"    END.IF()","v":true},{"$f":"      FORMULA(Itmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+1,FALSE))","v":true},"! Loop over the loci for this sample","! Count the number of columns",{"$f":"       ELSE()","v":true},{"$f":"    SET.NAME(\"Jcol\",MATCH(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd,FALSE),0))","v":true},{"$f":"      FORMULA(Irow,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+2,FALSE))","v":true},{"$f":"    SET.NAME(\"Nloc\",0)","v":true},null,{"$f":"    NEXT()","v":true},null,null,null,null,{"$f":"  FORMULA(\"Valid\",INDIRECT(\"'\"&S0dti&\"'!\"&Arow&2&Acol&4,FALSE))","v":true},null,{"$f":"CLEAR(3)","v":true},{"$f":"  FORMAT.MOVE(2,2,Arow&20+(Itmp-10)*3&Acol&2)","v":true},null,"SCF_UniquifySampleNames",null,43,43]
[{"$f":"  SET.NAME(\"Atmp2\",Atmp2+1)","v":true},null,null,null,null,{"$f":"FORMULA(NamSrt&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSrt&Acol&Cpara,FALSE))","v":true},null,{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":{"$error":"#N/A"}},{"$f":"    END.IF()","v":true},{"$f":"    SET.NAME(\"Isok\",FALSE)","v":true},{"$f":"    END.IF()","v":true},{"$f":"  FOR(\"Iall\",1,Nall,1)","v":true},{"$f":"DLD_ActivateSheet(S0dst)","v":0},{"$f":"DLD_Selectcell(RowBst2,2)","v":0},{"$f":"    MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > Request to browse for workbook aborted by user.\")","v":false},null,{"$f":"  ECHO(TRUE)","v":true},"! Check for at least one of allele specs",{"$f":"SET.NAME(\"ColPro\",NA())","v":true},{"$f":"  IF(Atmp=\"Marker\")","v":true},{"$f":"  END.IF()","v":false},{"$f":"    END.IF()","v":true},{"$f":"  FOR(\"Irow\",Irow1,Irow2,1)","v":true},{"$f":"     SET.NAME(\"Jrow\",MATCH(Aloc&\"*\",INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci,FALSE),0))","v":true},{"$f":"         SET.NAME(\"Itmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE)))","v":true},{"$f":"    FORMULA.ARRAY(0,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol&Asep&Arow&RowStd+Isam&Acol&Jcol+1,FALSE))","v":true},{"$f":"      FORMULA(0,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+3,FALSE))","v":true},{"$f":"    SET.NAME(\"Jrow0\",Irow0)","v":true},"! Rules by Loci",{"$f":"    SET.NAME(\"Irow\",Isam)","v":true},null,null,null,null,{"$f":"  SELECT(INDIRECT(\"'\"&S0dti&\"'!\"&Arow&2&Acol&2,FALSE))","v":true},null,{"$f":"FORMULA.GOTO(Arow&1&Acol,TRUE)","v":true},{"$f":"NEXT()","v":true},null,"SCF_SortCheck",null,44,44]
[{"$f":"ELSE()","v":true},null,null,null,null,{"$f":"FORMULA(NamChe&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowChe&Acol&Cpara,FALSE))","v":true},"! Check that it is a .xlsx file",{"$f":"  RUN(SCF_GMlong,FALSE)","v":{"$error":"#N/A"}},{"$f":"  NEXT()","v":true},{"$f":"    SET.NAME(\"Atmp\",\"???\")","v":true},{"$f":"  NEXT()","v":true},{"$f":"    SET.NAME(\"Icol\",Icol+1)","v":true},{"$f":"FOR(\"Isam\",1,Nsam,1)","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"    DLD_Selectcell(RowBcom,2)","v":false},null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Q$1&\" > This worksheet is NOT in CODIS format!\")","v":false},{"$f":"IF(AND(ISERROR(ColMaj),ISERROR(ColPro)))","v":true},{"$f":"SET.NAME(\"ColRul\",NA())","v":true},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&Icol,FALSE)))","v":true},{"$f":"NEXT()","v":true},null,{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColLoc,FALSE)))","v":true},{"$f":"     IF(ISERROR(Jrow))","v":true},{"$f":"         FORMULA(Itmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE))","v":true},null,{"$f":"    END.IF()","v":true},{"$f":"    WHILE(Jrow0<Irow1)","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"  END.IF()","v":true},null,null,null,null,{"$f":"  FORMAT.NUMBER(AlngDat)","v":true},null,null,{"$f":"SELECT(\"Button 9\")","v":true},null,null,null,45,45]
[{"$f":"  SET.NAME(\"Atmp2\",1)","v":true},null,null,null,null,{"$f":"FORMULA(NamCom&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCom&Acol&Cpara,FALSE))","v":true},{"$f":"SET.NAME(\"DirB\",GET.DOCUMENT(2))","v":true},{"$f":"  RUN(SCF_StructureLong,FALSE)","v":{"$error":"#N/A"}},{"$f":"NEXT()","v":true},{"$f":"    GOTO(J$51)","v":true},null,{"$f":"    IF(COUNTA(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&Icol&Asep&Arow&RowStd+Nsam&Acol&Icol,FALSE))-COUNT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&Icol&Asep&Arow&RowStd+Nsam&Acol&Icol,FALSE))>0)","v":true},{"$f":"   MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&M$1&\" > Sample \"&Isam&\" of \"&Nsam)","v":true},{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCom&Acol&Cpara+1,FALSE)))","v":true},{"$f":"    HALT()","v":true},null,{"$f":"  ALERT(\"This worksheet is NOT in the expected CODIS format!\"&Acar&Acar&\"The column header 'ALLELEVALUE' was not found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"  FORMULA(\"Invalid FSSi format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},null,{"$f":"    SET.NAME(\"Nloc\",Nloc+1)","v":true},null,"! Get the number of alleles at this locus for this sample",{"$f":"    SET.NAME(\"Jcol\",MATCH(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd,FALSE),0))","v":true},{"$f":"       SET.NAME(\"Nloc\",Nloc+1)","v":true},{"$f":"       END.IF()","v":true},"! Get alleles by separate columns",{"$f":"NEXT()","v":true},{"$f":"      SET.NAME(\"Itmp\",MATCH(\"*<LocusName>*\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Jrow0&Acol&1&Asep&Arow&Irow1&Acol&1,FALSE),0))","v":true},{"$f":"  SET.NAME(\"Nrul1\",0)","v":true},{"$f":"NEXT()","v":true},null,null,null,null,{"$f":"END.IF()","v":true},null,{"$f":"HALT()","v":true},{"$f":"FORMAT.SIZE(86,24)","v":true},null,null,null,46,46]
[{"$f":"END.IF()","v":true},null,null,null,null,{"$f":"FORMULA(NamSt1&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSt1&Acol&Cpara,FALSE))","v":true},{"$f":"IF(RIGHT(DirB,1)<>\"\\\",SET.NAME(\"DirB\",DirB&\"\\\"))","v":true},{"$f":"  RUN(SCF_DataLong,FALSE)","v":{"$error":"#N/A"}},null,{"$f":"  END.IF()","v":false},"! Anything recognized?",{"$f":"      MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&L$7&\" > Locus \"&Aloc&\", Allele \"&Iall)","v":true},{"$f":"  SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&1,FALSE)))","v":true},{"$f":"IF(NOT(LEFT(Atmp,LEN(NanCom))=NanCom))","v":true},{"$f":"  END.IF()","v":false},null,{"$f":"  HALT()","v":true},{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":false},"Check locus",{"$f":"    FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci,FALSE))","v":true},"! Get the sample-specific locus stuff",{"$f":"    SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE)))","v":true},{"$f":"    SET.NAME(\"Jrow\",MATCH(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci,FALSE),0))","v":true},{"$f":"       FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci,FALSE))","v":true},null,{"$f":"    IF(NOT(Ftype=\"NISTcompact\"))","v":true},null,{"$f":"      IF(ISERROR(Itmp))","v":true},{"$f":"  SET.NAME(\"Nrul2\",0)","v":true},null,null,null,null,null,null,null,null,{"$f":"FORMAT.MOVE(2,2,Arow&27&Acol&1)","v":true},null,null,null,47,47]
[{"$f":"FORMULA(Atmp2,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&7&Acol&3,FALSE))","v":true},null,null,null,null,{"$f":"FORMULA(NamSt2&\": \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSt2&Acol&Cpara,FALSE))","v":true},{"$f":"SET.NAME(\"WrkBk1\",GET.DOCUMENT(88))","v":true},null,"! Get rid of any blanks",{"$f":"NEXT()","v":true},{"$f":"  IF(Isok<0.5)","v":true},{"$f":"      FOR(\"Isam\",1,Nsam,1)","v":true},{"$f":"  FORMULA(Asam,INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&RowStd+Isam&Acol&1,FALSE))","v":true},{"$f":"  RUN(SCF_Compact,FALSE)","v":{"$error":"#N/A"}},null,null,{"$f":"END.IF()","v":false},{"$f":"  ECHO(TRUE)","v":true},{"$f":"IF(ISERROR(ColLoc))","v":true},{"$f":"    FORMULA(Icol+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+2,FALSE))","v":true},{"$f":"FOR(\"Isam\",1,Nsam,1)","v":true},{"$f":"    IF(MaxAll>0)","v":true},{"$f":"    SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE)))","v":true},{"$f":"       FORMULA(Icol,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+2,FALSE))","v":true},"! Count the number of commas",{"$f":"      SET.NAME(\"Jall\",0)","v":true},"! Get number of samples",{"$f":"        SET.NAME(\"Jrow0\",Irow1+1)","v":true},{"$f":"  FOR(\"Isam\",1,Nsam,1)","v":true},"! Resort by name",null,null,null,null,"! Check the Time format",null,null,{"$f":"SELECT(\"Button 16\")","v":true},null,null,null,48,48]
[null,null,null,null,null,{"$f":"FORMULA(\"Locus sort-order: \",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara,FALSE))","v":true},{"$f":"SET.NAME(\"Itmp\",FIND(\".xlsx\",WrkBk1))","v":true},{"$f":"ELSE.IF(Ftype=\"GM-wide\")","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci&Asep&Arow&65536&Acol&Cloci+4,FALSE))","v":true},null,{"$f":"    MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&K$1&\" > Unrecognized sort-order specification.\")","v":true},{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Icol,FALSE)))","v":true},null,{"$f":"END.IF()","v":true},"! One file - open it and go on",null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&R$1&\" > This worksheet is NOT in FSSi format!\")","v":false},{"$f":"  FORMULA(\"Invalid GeneMapper/fragment Profiler/Vertical format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},null,{"$f":"  SET.NAME(\"Irow0\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+2,FALSE)))","v":true},{"$f":"      SET.NAME(\"Xval\",MAX(Xval,COUNT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColMaj&Asep&Arow&Irow&Acol&ColMaj+MaxAll-1,FALSE))))","v":true},{"$f":"    FORMULA.ARRAY(0,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol&Asep&Arow&RowStd+Isam&Acol&Jcol+1,FALSE))","v":true},{"$f":"       FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+3,FALSE))","v":true},{"$f":"      ELSE()","v":true},{"$f":"      FOR(\"Iall\",1,Nall,1)","v":true},{"$f":"SET.NAME(\"Nsam\",0)","v":true},{"$f":"      ELSE()","v":true},{"$f":"    IF(NOT(ISBLANK(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE))))","v":false},{"$f":"SET.NAME(\"Nsam\",Nsam-Nclr)","v":true},null,null,null,null,{"$f":"SET.NAME(\"AlngTim\",DEREF(INDIRECT(\"'\"&S0dti&\"'!\"&Arow&3&Acol&3,FALSE)))","v":true},null,null,{"$f":"FORMAT.SIZE(65,24)","v":true},null,null,null,49,49]
["! Turn calculation off and set to R1C1",null,null,null,null,{"$f":"FORMULA(Asort,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE))","v":true},{"$f":"IF(ISERROR(Itmp))","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},{"$f":"PATTERNS(0)","v":true},"! Finish Check",{"$f":"    ALERT(\"Sort-order (\"&Atmp&\") is not recognized:\"&Acar&Acar&\"Please try again, specifying among: \"&Afile,2)","v":true},null,"! Loop over the loci for this sample",null,{"$f":"ELSE.IF(Nfile<1.5)","v":true},null,"! Convert any numeric alleles to sort as numeric",{"$f":"  ALERT(\"This worksheet is NOT in the expected FSSi format!\"&Acar&Acar&\"Neither the column header 'Major Allele 1' nor 'i-STRess Major' could be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":true},"! Count the number of alleles",{"$f":"  SET.NAME(\"Ntmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+3,FALSE)))","v":true},{"$f":"    ELSE.IF(NOT(ISERROR(ColPro)))","v":true},{"$f":"    SELECT(Acol&255&Asep&Acol&256)","v":true},{"$f":"       SET.NAME(\"Jrow\",Nloc+2)","v":true},{"$f":"        SET.NAME(\"Ntmp\",2)","v":true},{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&Icol-1+Iall,FALSE)))","v":true},{"$f":"FOR(\"Icol\",ColLoc+1,ColLst,1)","v":true},{"$f":"        SET.NAME(\"Irow\",Jrow0+Itmp-1)","v":true},{"$f":"      SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE)))","v":false},{"$f":"SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&1&Asep&Arow&65536&Acol&ColLst,FALSE))","v":true},null,null,null,null,{"$f":"SET.NAME(\"Itmp0\",TEXT(NOW(),AlngTim))","v":true},null,null,{"$f":"FORMAT.MOVE(2,2,Arow&31&Acol&2)","v":true},null,null,null,50,50]
[{"$f":"OPTIONS.CALCULATION(1)","v":true},null,null,null,null,null,{"$f":"  WORKBOOK.DLD_ActivateSheet(WrkBk1)","v":{"$error":"#NAME?"}},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},{"$f":"SORT(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci+4,FALSE),1,,,,1)","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"    GOTO(K$31)","v":true},"! Is it non-zero numeric?",{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},"! Store",{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > Workbook (\"&WrkBk1&\") found!\")","v":true},null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},{"$f":"  HALT()","v":true},{"$f":"  ECHO(TRUE)","v":true},{"$f":"    SET.NAME(\"Nall\",0)","v":true},{"$f":"  SET.NAME(\"Irow1\",Irow0+Ntmp-1)","v":true},{"$f":"      SET.NAME(\"Aprof\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColPro,FALSE)))","v":false},{"$f":"    CLEAR(3)","v":true},{"$f":"     ELSE()","v":true},{"$f":"        FOR(\"Irow\",RowHed+1,RowLst,1)","v":true},{"$f":"        IF(ISERROR(Xval))","v":true},{"$f":"  SET.NAME(\"Nval\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&Icol&Asep&Arow&RowLst&Acol&Icol,FALSE)))","v":true},{"$f":"        SET.NAME(\"Jrow0\",Irow+1)","v":true},{"$f":"      IF(ISERROR(FIND(Alsp,Xval)),SET.NAME(\"Nrul1\",Nrul1+1),SET.NAME(\"Nrul2\",Nrul2+1))","v":false},{"$f":"SORT(1,INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&ColSam,FALSE),1,,,,,1)","v":true},null,null,null,null,{"$f":"IF(Itmp0=AlngTim,SET.NAME(\"Itmp0\",NA()))","v":false},null,null,{"$f":"DLD_Selectcell(1,1)","v":false},null,null,null,51,51]
[{"$f":"A1.R1C1(FALSE)","v":true},null,null,null,null,"! Set display format",{"$f":"  SET.NAME(\"WrkBk2\",LEFT(WrkBk1,FIND(\".\",WrkBk1)-1)&\".xlsx\")","v":true},{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":false},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci+4&Asep&Arow&65536&Acol&Cloci+4,FALSE))","v":true},{"$f":"FORMULA(Atmp,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE))","v":true},{"$f":"  END.IF()","v":false},{"$f":"        IF(ISERROR(1/Xval))","v":true},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci,FALSE)))","v":true},{"$f":"RUN(SCF_Store,FALSE)","v":{"$error":"#N/A"}},{"$f":"  OPEN(WrkBk1,0,FALSE,,,,,,,,1)","v":true},null,{"$f":"  SET.NAME(\"Aall\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColMaj,FALSE)))","v":true},{"$f":"END.IF()","v":false},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&S$1&\" > This worksheet is NOT in GeneMapper,Fragment Profiler, or Vertical format!\")","v":false},{"$f":"    FOR(\"Jcol\",Icol+1,ColLst,1)","v":true},{"$f":"  SET.NAME(\"Nval\",0)","v":true},{"$f":"      IF(ISERROR(Aprof),SET.NAME(\"Aprof\",\"0\"))","v":false},null,{"$f":"       SET.NAME(\"Itmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE)))","v":true},{"$f":"           SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&Icol,FALSE)))","v":true},{"$f":"          SET.NAME(\"Xval\",0)","v":false},{"$f":"  IF(Nval>0)","v":true},null,{"$f":"    END.IF()","v":true},null,null,null,null,null,{"$f":"IF(ISERROR(Itmp0*1),SET.NAME(\"Itmp0\",NA()))","v":false},null,null,null,null,null,null,52,52]
[{"$f":"COLOR.PALETTE(\"\")","v":true},null,null,null,null,{"$f":"FORMULA(NanClr,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowClr&Acol&Cpara+1,FALSE))","v":true},{"$f":"  SAVE.AS(DirB&WrkBk2,51)","v":false},{"$f":"  RUN(SCF_GMwide,FALSE)","v":false},{"$f":"CLEAR(3)","v":true},{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},null,null,{"$f":"    SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+3,FALSE)))","v":true},{"$f":"DLD_Selectcell(RowBext,2)","v":0},null,null,{"$f":"  SET.NAME(\"Atmp\",Aall+0)","v":true},null,{"$f":"  ALERT(\"This worksheet is NOT in the expected GeneMapper, Fragment Profiler, or Vertical format!\"&Acar&Acar&\"The column header 'Marker' or 'SampleRange' could not be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"      SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Jcol,FALSE)))","v":true},{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"      SET.NAME(\"Nall\",0)","v":true},"! If possible, get alleles by separate columns",{"$f":"       FORMULA(Itmp+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE))","v":true},{"$f":"           IF(ISERROR(Atmp),SET.NAME(\"tmp\",\"0\"))","v":false},{"$f":"        ELSE.IF(OR(Xval=\"*\",Xval=\"F\",Xval=\"-\",Xval=\"NA\",Xval=\"ND\",Xval=\"\",Xval=\"?\"))","v":true},{"$f":"    SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&ColLoc&Acol&Icol,FALSE)))","v":true},"! Find the last row of this locus",{"$f":"  NEXT()","v":true},"! Check for duplicate sample names",null,null,null,null,{"$f":"IF(ISERROR(Itmp0))","v":true},null,null,"! Engineering controls",null,null,null,53,53]
[null,null,null,null,null,{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},{"$f":"  SET.NAME(\"WrkBk1\",WrkBk2)","v":true},{"$f":"  RUN(SCF_UniquifySampleNames,FALSE)","v":false},{"$f":"SET.NAME(\"Nloc\",COUNTA(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci&Asep&Arow&65536&Acol&Cloci,FALSE)))","v":true},{"$f":"ECHO(TRUE)","v":true},"! Ambiguous?","! Is it an \"error\"",{"$f":"    SET.NAME(\"Icol\",MATCH(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd,FALSE),0))","v":true},null,"! More than one file found",null,{"$f":"  IF(NOT(ISERROR(1/Atmp)),FORMULA(Atmp,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColMaj,FALSE)))","v":true},"! Get the maximum number of allele columns",{"$f":"  HALT()","v":true},{"$f":"      IF(UPPER(LEFT(Atmp1,6))=\"ALLELE\")","v":true},{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci,FALSE)))","v":true},{"$f":"      FOR(\"Itmp\",1,LEN(Aprof),1)","v":true},{"$f":"    IF(NOT(ISERROR(ColMaj)))","v":true},{"$f":"     END.IF()","v":true},{"$f":"           SET.NAME(\"Nall\",0)","v":true},{"$f":"          SET.NAME(\"Xval\",0)","v":false},{"$f":"    SET.NAME(\"Jrow\",MATCH(Asam,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Csamp,FALSE),0))","v":true},{"$f":"        SET.NAME(\"Itmp\",MATCH(\"*</LOCUS>*\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&1&Asep&Arow&Irow1&Acol&1,FALSE),0))","v":true},{"$f":"  IF(Nrul1>0.5,FORMULA(Nrul1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+5,FALSE)))","v":{"$error":"#NAME?"}},{"$f":"SET.NAME(\"Nchg\",0)","v":true},null,null,null,null,{"$f":"  SET.NAME(\"NumNew\",NumNew+1)","v":true},null,null,{"$f":"FOR(\"Itmp\",12,14,1)","v":true},null,null,null,54,54]
["! Set some useful globals",null,null,null,null,{"$f":"ECHO(TRUE)","v":true},{"$f":"  WORKBOOK.DLD_ActivateSheet(WrkBk1)","v":{"$error":"#NAME?"}},{"$f":"  RUN(SCF_DataWide,FALSE)","v":false},null,{"$f":"DLD_Selectcell(RowBsrt,2)","v":0},{"$f":"  IF(Isok>1.5)","v":true},{"$f":"          IF(ISERROR(Xval))","v":true},null,{"$f":"RETURN()","v":true},{"$f":"ELSE()","v":true},null,{"$f":"NEXT()","v":true},{"$f":"SET.NAME(\"MaxAll\",0)","v":true},{"$f":"END.IF()","v":false},{"$f":"        SET.NAME(\"Atmp2\",COUNTA(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed+1&Acol&Jcol&Asep&Arow&RowLst&Acol&Jcol,FALSE)))","v":true},{"$f":"    SET.NAME(\"Jrow0\",MATCH(Aloc,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow0&Acol&ColLoc&Asep&Arow&Irow1&Acol&ColLoc,FALSE),0))","v":true},{"$f":"        SET.NAME(\"Atmp\",MID(Aprof,Itmp,1))","v":false},{"$f":"      SET.NAME(\"Jall\",0)","v":true},{"$f":"   END.IF()","v":false},{"$f":"           FOR(\"Itmp\",1,LEN(Atmp),1)","v":true},{"$f":"        END.IF()","v":false},{"$f":"    IF(ISERROR(Jrow))","v":true},{"$f":"        IF(ISERROR(Itmp))","v":true},{"$f":"  IF(Nrul2>0.5,FORMULA(Nrul2,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+6,FALSE)))","v":{"$error":"#NAME?"}},{"$f":"FOR(\"Irow\",RowHed+1,RowHed+Nsam,1)","v":true},null,null,null,null,{"$f":"  FORMULA(\"Invalid!\",INDIRECT(\"'\"&S0dti&\"'!\"&Arow&3&Acol&4,FALSE))","v":true},null,null,{"$f":"  SELECT(\"Button \"&Itmp)","v":true},null,null,null,55,55]
[{"$f":"SET.NAME(\"Msub0\",\"\")","v":true},null,null,null,null,{"$f":"DLD_Selectcell(RowBfet,2)","v":0},{"$f":"END.IF()","v":true},null,"! Warn about things not recognized",null,{"$f":"    MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&K$1&\" > Ambiguous sort-order specification.\")","v":true},{"$f":"            SET.NAME(\"Xval\",\"Excel Error\")","v":false},"! Make sure they are sorted",null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > \"&Nfile&\" workbooks match: \"&WrkBk1&\"!\")","v":false},null,null,{"$f":"IF(NOT(ISERROR(ColMaj)))","v":true},null,{"$f":"        IF(Atmp2>0.5,SET.NAME(\"Nall\",Nall+1))","v":false},{"$f":"    SET.NAME(\"Jrow1\",MATCH(Aloc,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow0&Acol&ColLoc&Asep&Arow&Irow1&Acol&ColLoc,FALSE),1))","v":true},{"$f":"        IF(Atmp=Alsp,SET.NAME(\"Nall\",Nall+1))","v":false},{"$f":"      FOR(\"Iall\",1,Nall,1)","v":true},{"$f":"NEXT()","v":true},{"$f":"             IF(MID(Atmp,Itmp,1)=Alsp,SET.NAME(\"Nall\",Nall+1))","v":false},{"$f":"        IF(NOT(Xval=0))","v":true},{"$f":"      SET.NAME(\"Nsam\",Nsam+1)","v":true},{"$f":"          FORMULA(\"Invalid XML format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"NEXT()","v":true},{"$f":"  SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColSam,FALSE)))","v":true},null,null,null,null,{"$f":"  DLD_ColumnAutofit(1,4)","v":false},null,null,{"$f":"  FORMAT.SIZE(86,24)","v":true},null,null,null,56,56]
[{"$f":"SET.NAME(\"Cpara\",4)","v":true},null,null,null,null,null,null,{"$f":"ELSE.IF(Ftype=\"Fragment Profiler\")","v":true},{"$f":"SET.NAME(\"Ntmp\",0)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&J$7&\" > Finished!\")","v":true},null,{"$f":"            SET.NAME(\"Etype\",\"Error\")","v":false},{"$f":"    IF(Nall>1.5)","v":true},null,{"$f":"  SET.NAME(\"Atmp\",OPEN?(,0,FALSE))","v":true},null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Q$1&\" > Finished!\")","v":true},{"$f":"  FOR(\"Icol\",ColMaj,ColLst,1)","v":true},"! Check for at least one of allele specs",{"$f":"      ELSE()","v":true},{"$f":"    IF(NOT(ISERROR(Jrow0+Jrow1)))","v":true},{"$f":"      NEXT()","v":true},{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColMaj-1+Iall,FALSE)))","v":true},null,{"$f":"           NEXT()","v":true},{"$f":"          SET.NAME(\"Jall\",Jall+1)","v":true},{"$f":"      FORMULA(Asam,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp,FALSE))","v":true},{"$f":"          ECHO(TRUE)","v":false},null,{"$f":"  SET.NAME(\"Isam\",MATCH(Asam,INDIRECT(\"'\"&S0din&\"'!\"&Acol&ColSam,FALSE),1))","v":true},null,null,null,null,{"$f":"  SELECT(Arow&3&Acol&2)","v":true},null,null,{"$f":"  FORMAT.MOVE(2,2,Arow&53+(Itmp-12)*3&Acol&1)","v":true}]
[{"$f":"SET.NAME(\"Cloci\",7)","v":true},null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&F$7&\" > Finished!\")","v":true},"! Get & store basic info",{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"RETURN()","v":true},"! Get minimum # unique characters",{"$f":"            RUN(SCF_AmbigRecord,FALSE)","v":false},{"$f":"      SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Icol&Asep&Arow&RowStd+Isam&Acol&Icol+Nall-1,FALSE))","v":true},null,{"$f":"  IF(NOT(Atmp))","v":true},null,{"$f":"RETURN()","v":true},{"$f":"    SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Icol,FALSE)))","v":true},{"$f":"IF(ISERROR(ColMaj))","v":true},{"$f":"        SET.NAME(\"Jcol\",ColLst+1)","v":true},{"$f":"      SET.NAME(\"Nval\",Nval+1)","v":true},{"$f":"      SET.NAME(\"Xval\",MAX(Xval,Nall+1))","v":true},{"$f":"        IF(ISERROR(Xval))","v":true},null,{"$f":"          SET.NAME(\"Ntmp\",MAX(Ntmp,Nall+1))","v":true},{"$f":"           FORMULA(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol+Iall-1,FALSE))","v":true},{"$f":"      FORMULA(0,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+1,FALSE))","v":true},{"$f":"          MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AB$1&\" > Unbalanced LOCUS pair after row (\"&Irow&\")!\")","v":false},"! Rules by samples and total rule list",{"$f":"  IF(Isam>Irow)","v":true},null,null,null,null,{"$f":"  OPTIONS.VIEW(TRUE,TRUE)","v":true},null,null,{"$f":"NEXT()","v":true}]
[{"$f":"SET.NAME(\"Coffs\",101)","v":true},null,null,null,null,{"$f":"RETURN()","v":true},{"$f":"SET.NAME(\"Asht\",GET.WORKBOOK(38))","v":true},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},null,{"$f":"    SET.NAME(\"Nlen\",LEN(Asort))","v":true},null,{"$f":"      SORT(2)","v":true},null,{"$f":"    MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > Request to browse for workbook aborted by user.\")","v":false},null,null,{"$f":"    SET.NAME(\"Itmp\",FIND(\"Designation\",Atmp,1))","v":true},{"$f":"  FORMULA(\"Invalid GeneMapper/Fragment Profiler/Vertical format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false},{"$f":"      END.IF()","v":true},{"$f":"      FORMULA(Irow0+Jrow0-1&\"|\"&Irow0+Jrow1-1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+4+Iloc,FALSE))","v":true},{"$f":"    END.IF()","v":true},{"$f":"          SET.NAME(\"Xval\",0)","v":false},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&X$1&\" > Finished!\")","v":false},{"$f":"         NEXT()","v":true},{"$f":"        END.IF()","v":true},{"$f":"      FORMULA(Icol,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+2,FALSE))","v":true},{"$f":"          ALERT(\"Error: Unbalanced LOCUS after row (\"&Irow&\").\"&Acar&Acar&\"There's something seriously wrong with the XML code.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"FOR(\"Isam\",1,Nsam,1)","v":true},{"$f":"    FOR(\"Jrow\",Irow,Isam,1)","v":true},null,null,null,null,{"$f":"  ECHO(TRUE)","v":true},null,null,{"$f":"FORMULA.GOTO(Arow&1&Acol,TRUE)","v":true}]
[{"$f":"SET.NAME(\"NamClr\",\"Clear\")","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"S1dat\",\"[\"&WrkBk1&\"]\"&Asht)","v":true},{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":{"$error":"#N/A"}},{"$f":"  SET.NAME(\"Irow\",MATCH(Aloc,INDIRECT(\"'\"&S0srt&\"'!\"&Acol&1,FALSE),0))","v":true},null,{"$f":"    SET.NAME(\"Itmp\",0)","v":true},"! Is it an allele 1 or 2 blank or zero?",{"$f":"    END.IF()","v":true},null,{"$f":"    DLD_Selectcell(RowBcom,2)","v":false},null,null,{"$f":"    IF(ISERROR(Itmp))","v":true},{"$f":"  SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed,FALSE))","v":false},{"$f":"    NEXT()","v":true},{"$f":"    END.IF()","v":true},{"$f":"    FORMULA(Xval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE))","v":true},{"$f":"        ELSE.IF(OR(Xval=\"*\",Xval=\"F\",Xval=\"-\",Xval=\"NA\",Xval=\"ND\",Xval=\"\",Xval=\"?\"))","v":true},{"$f":"RETURN()","v":false},{"$f":"        SET.NAME(\"Nloc\",Nloc+1)","v":true},{"$f":"      NEXT()","v":true},{"$f":"      FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nsam+2&Acol&Csamp+3,FALSE))","v":true},{"$f":"          HALT()","v":false},{"$f":"  SET.NAME(\"Nrul1\",0)","v":true},{"$f":"      SET.NAME(\"Nchg\",Nchg+1)","v":true},null,null,null,null,{"$f":"  MESSAGE(TRUE,\"Missing a valid hours, minutes, seconds format.\")","v":true}]
[{"$f":"SET.NAME(\"NamFet\",\"Fetch\")","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"Ftype\",\"Unknown\")","v":true},{"$f":"  RUN(SCF_GMlong,FALSE)","v":{"$error":"#N/A"}},{"$f":"  IF(ISERROR(Irow))","v":true},null,{"$f":"    FOR(\"Isrt\",1,Nsrt,1)","v":true},{"$f":"          ELSE.IF(Xval=0)","v":true},null,null,{"$f":"    HALT()","v":false},null,null,{"$f":"      SET.NAME(\"Icol\",ColLst+1)","v":true},{"$f":"  ECHO(TRUE)","v":true},{"$f":"    FORMULA(Nall,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+3,FALSE))","v":true},{"$f":"  NEXT()","v":true},{"$f":"  END.IF()","v":true},{"$f":"          SET.NAME(\"Xval\",0)","v":true},null,{"$f":"        FORMULA(Aloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci,FALSE))","v":true},null,{"$f":"    END.IF()","v":true},{"$f":"        END.IF()","v":false},{"$f":"  SET.NAME(\"Nrul2\",0)","v":true},{"$f":"      SET.NAME(\"Atmp\",Asam&\"_\"&Jrow-Irow)","v":true},null,null,null,null,{"$f":"  ALERT(\"Please format this as a valid time (hours, minutes, seconds) with\"&Acar&\" Excel's standard cell format tool (Format > Cells… > Number > Time).\"&Acar&Acar&\"Then click 'Check It' to proceed.\")","v":true},null,null,"! Hide a few things"]
[{"$f":"SET.NAME(\"NamCon\",\"Convert\")","v":true},null,null,null,null,null,null,{"$f":"  RUN(SCF_StructureLong,FALSE)","v":{"$error":"#N/A"}},{"$f":"    SET.NAME(\"Ntmp\",Ntmp+1)","v":true},null,{"$f":"      SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&Isrt+10,FALSE)))","v":true},{"$f":"            IF(Iall<2.5)","v":true},"! Assemble the profile",null,{"$f":"  END.IF()","v":false},null,null,{"$f":"    ELSE()","v":true},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&S$1&\" > This worksheet is NOT in GeneMapper, Fragment Profiler, or Vertical format!\")","v":false},{"$f":"  END.IF()","v":true},{"$f":"  FORMULA(Nval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+1,FALSE))","v":true},{"$f":"NEXT()","v":true},{"$f":"        END.IF()","v":true},null,{"$f":"        FORMULA(Icol,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+2,FALSE))","v":true},"! Get alleles by profile",{"$f":"  END.IF()","v":true},{"$f":"        SET.NAME(\"Jrow1\",Irow+Itmp-1)","v":true},{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"      SET.NAME(\"Atmp\",SUBSTITUTE(Atmp,\"__\",\"_\"))","v":true},null,null,null,null,{"$f":"  HALT()","v":true},null,null,{"$f":"ERROR(FALSE)","v":true}]
[{"$f":"SET.NAME(\"NamSrt\",\"Locus Sort\")","v":true},null,null,null,null,null,{"$f":"FORMULA(DirB,INDIRECT(\"'\"&S0con&\"'!\"&Arow&3&Acol&Cpara+1,FALSE))","v":true},{"$f":"  RUN(SCF_DataLong,FALSE)","v":{"$error":"#N/A"}},{"$f":"    SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci&Asep&Arow&Iloc+2&Acol&Cloci+4,FALSE))","v":true},null,{"$f":"      FOR(\"Ilen\",1,Nlen,1)","v":true},{"$f":"              SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Icol,FALSE))","v":true},{"$f":"    SET.NAME(\"Ntmp\",0)","v":true},null,{"$f":"END.IF()","v":true},null,null,{"$f":"      SET.NAME(\"MaxAll\",MaxAll+1)","v":true},{"$f":"  ALERT(\"This worksheet is NOT in the expected GeneMapper, Fragment Profiler, or Vertical format!\"&Acar&Acar&\"The column header 'Allele 1' could be found.\"&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":false},{"$f":"NEXT()","v":true},{"$f":"NEXT()","v":true},null,{"$f":"        IF(NOT(Xval=0))","v":true},null,{"$f":"        FORMULA(Ntmp,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nloc+2&Acol&Cloci+3,FALSE))","v":true},{"$f":"    ELSE()","v":true},{"$f":"NEXT()","v":true},null,{"$f":"    IF(NOT(ISBLANK(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE))))","v":false},{"$f":"      FORMULA(Atmp,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Jrow&Acol&ColSam,FALSE))","v":true},null,null,null,null,{"$f":"ELSE()","v":true},null,null,{"$f":"  WORKBOOK.HIDE(MID(S0dti,FIND(\"]\",S0dti)+1,100))","v":true}]
[{"$f":"SET.NAME(\"NamChe\",\"Check\")","v":true},null,null,null,null,null,{"$f":"FORMULA(WrkBk1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&4&Acol&Cpara+1,FALSE))","v":true},null,{"$f":"    PATTERNS(1,3,0)","v":true},null,{"$f":"        IF(NOT(LEFT(Atmp1,Ilen)=LEFT(Asort,Ilen)))","v":true},{"$f":"              CLEAR(3)","v":true},{"$f":"    SET.NAME(\"Atmp1\",0)","v":true},null,null,null,null,{"$f":"    END.IF()","v":true},{"$f":"  ECHO(FALSE)","v":true},null,null,"! Format the summary sheet",{"$f":"          SET.NAME(\"Jall\",Jall+1)","v":true},null,{"$f":"      END.IF()","v":true},{"$f":"      SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&Icol,FALSE)))","v":true},null,"! Get the locus name",{"$f":"      SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE)))","v":false},{"$f":"      SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Jrow&Acol&ColSam,FALSE))","v":true},null,null,null,null,{"$f":"  FORMULA(\"Valid\",INDIRECT(\"'\"&S0dti&\"'!\"&Arow&3&Acol&4,FALSE))","v":true},null,null,{"$f":"  WORKBOOK.HIDE(MID(S0err,FIND(\"]\",S0err)+1,100))","v":true}]
[{"$f":"SET.NAME(\"NamCom\",\"Compact\")","v":true},null,null,null,null,null,{"$f":"FORMULA(Asht,INDIRECT(\"'\"&S0con&\"'!\"&Arow&5&Acol&Cpara+1,FALSE))","v":true},{"$f":"ELSE.IF(Ftype=\"Vertical\")","v":true},{"$f":"  END.IF()","v":true},null,{"$f":"          SET.NAME(\"Itmp\",MAX(Itmp,Ilen))","v":true},{"$f":"              PATTERNS(1,6,0)","v":true},{"$f":"    SET.NAME(\"Itmp\",0)","v":true},null,"! Get the parameters for this file",null,null,{"$f":"  NEXT()","v":true},{"$f":"  DLD_ActivateSheet(S0con)","v":false},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&T$1&\" > Finished!\")","v":false},"! Get the locus-specific sample stuff",{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"          FORMULA(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Jall&Acol&255,FALSE))","v":true},null,{"$f":"  END.IF()","v":true},{"$f":"      IF(ISERROR(Xval),SET.NAME(\"Xval\",\"0\"&Alsp&\"0\"))","v":false},"! Get maximum number of alleles at each locus",{"$f":"        SET.NAME(\"Ntry\",Ntry+1)","v":true},{"$f":"      IF(ISERROR(FIND(Alsp,Xval)),SET.NAME(\"Nrul1\",Nrul1+1),SET.NAME(\"Nrul2\",Nrul2+1))","v":false},{"$f":"      PATTERNS(1,8,0)","v":true},null,null,null,null,{"$f":"  SELECT(INDIRECT(\"'\"&S0dti&\"'!\"&Arow&3&Acol&2,FALSE))","v":true},null,null,{"$f":"ERROR(TRUE)","v":true}]
[{"$f":"SET.NAME(\"NamSt1\",\"Store Std\")","v":true},null,null,null,null,null,{"$f":"FORMULA(Ftype,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFmt&Acol&Cpara+1,FALSE))","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},{"$f":"NEXT()","v":true},null,{"$f":"          SET.NAME(\"Ilen\",Nlen+1)","v":true},{"$f":"            END.IF()","v":true},{"$f":"    FOR(\"Iall\",1,Nall,1)","v":true},null,{"$f":"ACTIVATE(WrkBk1)","v":true},null,null,{"$f":"END.IF()","v":true},{"$f":"  DLD_Selectcell(RowBfet,2)","v":false},{"$f":"RETURN()","v":false},{"$f":"SET.NAME(\"Ncol\",1)","v":true},{"$f":"DLD_ColumnAutofit(Cloci,-1)","v":0},{"$f":"        END.IF()","v":true},null,{"$f":"NEXT()","v":true},null,{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"        SET.NAME(\"Nloc\",Nloc+1)","v":true},{"$f":"    END.IF()","v":true},{"$f":"    NEXT()","v":true},null,null,null,null,{"$f":"  FORMAT.NUMBER(AlngTim)","v":true}]
[{"$f":"SET.NAME(\"NamSt2\",\"Store Cmp\")","v":true},null,null,null,null,null,{"$f":"FORMULA(\"Evaluating\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara+1,FALSE))","v":true},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},{"$f":"IF(Ntmp>0.5)","v":true},null,{"$f":"        END.IF()","v":true},null,{"$f":"      SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Icol-1+Iall,FALSE)))","v":true},null,{"$f":"SET.NAME(\"DirC\",GET.DOCUMENT(2))","v":true},null,null,null,{"$f":"  ECHO(TRUE)","v":true},null,{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"      NEXT()","v":true},null,null,{"$f":"      SET.NAME(\"Yval\",Xval&Alsp)","v":true},{"$f":"  SET.NAME(\"Irow\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+2,FALSE)))","v":true},{"$f":"        SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&1,FALSE)))","v":true},{"$f":"  NEXT()","v":true},{"$f":"    SET.NAME(\"Irow\",Isam)","v":true},null,null,null,null,{"$f":"END.IF()","v":true},null,null,"! Reset the User info"]
[{"$f":"SET.NAME(\"NanClr\",\"Cleared\")","v":true},null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":false},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&H$7&\" > Unrecognized locus names.\")","v":true},null,{"$f":"      NEXT()","v":true},"! Is it a known non-numeric?",{"$f":"      IF(ISERROR(Xval*1))","v":true},null,{"$f":"SET.NAME(\"WrkBk2\",GET.DOCUMENT(88))","v":true},null,null,"! Sort",{"$f":"  HALT()","v":true},null,{"$f":"  SET.NAME(\"Nval\",0)","v":true},{"$f":"DLD_Selectcell(1,1)","v":0},{"$f":"    END.IF()","v":true},null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Y$1&\" > Finished!\")","v":true},{"$f":"      SET.NAME(\"Iall\",0)","v":true},{"$f":"  SET.NAME(\"Nall\",0)","v":true},{"$f":"        SET.NAME(\"Atmp\",MID(Atmp,FIND(\">\",Atmp)+1,100))","v":true},{"$f":"  IF(Nrul1>0.5,FORMULA(Nrul1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+5,FALSE)))","v":{"$error":"#NAME?"}},{"$f":"  END.IF()","v":true},null,null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0mac)","v":false}]
[{"$f":"SET.NAME(\"NanFet\",\"Fetched\")","v":true},null,null,null,null,null,{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},{"$f":"  RUN(SCF_GMlong,FALSE)","v":false},{"$f":"  ECHO(TRUE)","v":true},null,{"$f":"    NEXT()","v":true},{"$f":"          ELSE.IF(NOT(OR(Xval=\"X\",Xval=\"Y\",Xval=\"O\")))","v":true},{"$f":"        IF(NOT(OR(Xval=\"X\",Xval=\"Y\",Xval=\"O\")),SET.NAME(\"Itmp\",Itmp+1))","v":false},null,{"$f":"SET.NAME(\"Asht\",LEFT(Bsht,20)&\"_\"&Fadd)","v":true},null,null,{"$f":"DLD_ActivateSheet(S0din)","v":false},{"$f":"END.IF()","v":false},null,{"$f":"  SET.NAME(\"Nall\",2)","v":true},null,null,null,{"$f":"RETURN()","v":true},{"$f":"      SET.NAME(\"Istr\",1)","v":true},{"$f":"  FOR(\"Isam\",1,Nsam,1)","v":true},{"$f":"        SET.NAME(\"Aloc\",LEFT(Atmp,FIND(\"<\",Atmp)-1))","v":true},{"$f":"  IF(Nrul2>0.5,FORMULA(Nrul2,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+6,FALSE)))","v":{"$error":"#NAME?"}},{"$f":"NEXT()","v":true},null,null,null,null,"! Check the DateTime format",null,null,{"$f":"ERROR(FALSE)","v":true}]
[{"$f":"SET.NAME(\"NanCon\",\"Converted\")","v":true},null,null,null,null,null,{"$f":"DLD_Selectcell(RowFet,2)","v":0},{"$f":"  RUN(SCF_StructureLong,FALSE)","v":false},{"$f":"  DLD_Selectcell(RowBsrt,2)","v":0},null,{"$f":"    ALERT(\"Sort-order (\"&Atmp&\") is ambiguous:\"&Acar&Acar&\"Please try again, this time specifying at least (\"&Itmp&\") characters.\",2)","v":true},{"$f":"            SET.NAME(\"Etype\",\"Unrecognized alphabetic\")","v":true},{"$f":"      ELSE.IF(OR(Xval*1<0,Xval*1>99.99))","v":true},null,{"$f":"SET.NAME(\"S2dat\",\"[\"&WrkBk2&\"]\"&Asht)","v":true},null,null,{"$f":"SELECT(Arow&RowHed&Acol&1&Asep&Arow&65536&Acol&ColLst)","v":true},null,null,{"$f":"  FOR(\"Isam\",1,Nsam,1)","v":true},"! Update status","!  If possible, get alleles by profile",null,null,{"$f":"      SET.NAME(\"Ntmp\",LEN(Xval))","v":true},{"$f":"    SET.NAME(\"Icol\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+2,FALSE)))","v":true},null,{"$f":"NEXT()","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"AlngDatTim\",AlngDat&\" \"&AlngTim)","v":true},null,null,{"$f":"  WORKBOOK.UNHIDE(MID(S0mac,FIND(\"]\",S0mac)+1,100))","v":{"$error":"#VALUE!"}}]
[{"$f":"SET.NAME(\"NanSrt\",\"Sorted by: \")","v":true},null,null,null,null,null,null,{"$f":"  RUN(SCF_DataLong,FALSE)","v":false},{"$f":"  ALERT(\"Error!  Locus names in RED are not recognized.\"&Acar&Acar&\"If they're real, add the names to the \"&S0srt&\" worksheet.\"&Acar&\"If they're not, delete the stuff in RED and proceed using the individual function buttons.\",2)","v":true},null,{"$f":"    GOTO(K$31)","v":true},{"$f":"            RUN(SCF_AmbigRecord,FALSE)","v":{"$error":"#N/A"}},{"$f":"        SET.NAME(\"Itmp\",Itmp+1)","v":true},null,null,null,null,{"$f":"SORT(1,Arow&RowHed+1&Acol&ColSam,1,,,,,1)","v":true},"! Get the maximum number of allele columns",null,{"$f":"    SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+4+Iloc,FALSE)))","v":true},{"$f":"FORMULA(\"Valid Structure\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true},{"$f":"    IF(NOT(ISERROR(ColPro)))","v":true},null,null,{"$f":"      FOR(\"Itmp\",1,Ntmp,1)","v":true},{"$f":"    SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&Icol,FALSE)))","v":true},"! Get all the alleles for this locus",null,"! Store sample info",null,null,null,null,{"$f":"FORMULA(AlngDatTim,INDIRECT(\"'\"&S0dti&\"'!\"&Arow&4&Acol&3,FALSE))","v":true},null,null,{"$f":"ERROR(TRUE)","v":true}]
[{"$f":"SET.NAME(\"NanChe\",\"Checked\")","v":true},null,null,null,null,null,"! Make sure of filetype",null,{"$f":"  HALT()","v":true},null,{"$f":"  END.IF()","v":false},{"$f":"          END.IF()","v":true},{"$f":"      END.IF()","v":true},null,"! Is the output sheet already there?",null,null,null,{"$f":"SET.NAME(\"MaxAll\",0)","v":true},null,{"$f":"    SET.NAME(\"Itmp\",FIND(\"|\",Atmp1))","v":true},null,{"$f":"      SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColPro,FALSE)))","v":true},null,null,{"$f":"        SET.NAME(\"Itmp\",FIND(Alsp,Yval,Istr))","v":true},{"$f":"    IF(ISERROR(Atmp),SET.NAME(\"Atmp\",\"?\"))","v":false},{"$f":"        SET.NAME(\"Nall\",0)","v":true},"! Total rule list",{"$f":"FOR(\"Irow\",RowHed+1,RowHed+Nsam,1)","v":true},null,null,null,null,{"$f":"SET.NAME(\"Itmp0\",TEXT(NOW(),AlngDatTim))","v":true},null,null,{"$f":"FORMULA(\"NewUser\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&6&Acol&3,FALSE))","v":true}]
[{"$f":"SET.NAME(\"NanCom\",\"Compacted\")","v":true},null,null,null,null,null,{"$f":"DIRECTORY(DirB)","v":"D:\\Work\\DNA\\STR_Convert"},{"$f":"ELSE.IF(Ftype=\"Horizontal\")","v":true},{"$f":"END.IF()","v":false},null,{"$f":"END.IF()","v":true},null,{"$f":"      IF(NOT(Xval=0))","v":true},null,{"$f":"ACTIVATE(WrkBk2)","v":true},null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&R$1&\" > Finished!\")","v":true},{"$f":"IF(NOT(ISERROR(ColMaj)))","v":true},null,{"$f":"    IF(NOT(ISERROR(Itmp)))","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&V$1&\" > Finished!\")","v":true},{"$f":"      IF(ISERROR(Xval),SET.NAME(\"Xval\",\"0\"&Alsp&\"0\"))","v":false},null,null,{"$f":"        SET.NAME(\"Atmp\",MID(Yval,Istr,Itmp-Istr))","v":true},{"$f":"    SET.NAME(\"Atmp\",UPPER(CLEAN(TRIM(Atmp))))","v":true},{"$f":"        SET.NAME(\"Krow0\",Jrow0)","v":true},{"$f":"SET.NAME(\"Nrul\",0)","v":true},{"$f":"  SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColSam,FALSE)))","v":true},null,null,null,null,{"$f":"IF(Itmp0=AlngDatTim,SET.NAME(\"Itmp0\",NA()))","v":false},null,null,{"$f":"FORMULA(0,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&\"7C3\",FALSE))","v":true}]
[{"$f":"SET.NAME(\"NanSt1\",\"Stored\")","v":true},null,null,null,null,null,{"$f":"IF(ISERROR(INDIRECT(\"'\"&S1dat&\"'!\"&Arow&1&Acol&1,FALSE)))","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},null,null,null,"! Is it a too-small (<0.1) numeric?",{"$f":"        SET.NAME(\"Ntmp\",Ntmp+1)","v":true},null,{"$f":"ERROR(FALSE)","v":true},null,null,{"$f":"RETURN()","v":true},{"$f":"  FOR(\"Icol\",ColMaj,ColLst,1)","v":true},null,{"$f":"      SET.NAME(\"Jrow0\",LEFT(Atmp1,Itmp-1)*1)","v":true},{"$f":"RETURN()","v":true},{"$f":"      SET.NAME(\"Ntmp\",LEN(Xval))","v":true},null,null,{"$f":"        IF(ISERROR(Atmp))","v":true},{"$f":"    IF(NOT(OR(Atmp=\"US\",Atmp=\"NID\",Atmp=\"NR\",Atmp=\"?\",Atmp=0)))","v":true},{"$f":"        WHILE(Krow0<Jrow1)","v":true},{"$f":"FOR(\"Isam\",1,Nsam,1)","v":true},{"$f":"  SET.NAME(\"Isam\",Irow-RowHed+2)","v":true},null,null,null,null,{"$f":"IF(ISERROR(Itmp0*1),SET.NAME(\"Itmp0\",NA()))","v":false},null,null,{"$f":"FORMULA.GOTO(Arow&1&Acol,TRUE)","v":true}]
[{"$f":"SET.NAME(\"NanSt2\",\"Stored\")","v":true},null,null,null,null,null,{"$f":"  ERROR(FALSE)","v":false},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},"! Find the posible kits",null,"! If \"New\", then tell user to get to work",{"$f":"        ELSE.IF(Xval<0.1)","v":true},{"$f":"        SET.NAME(\"Atmp\",IF(Ntmp<1.5,Xval,Atmp&Alsp&Xval))","v":true},null,{"$f":"  SET.NAME(\"Atmp\",ACTIVATE(S2dat))","v":true},null,null,null,{"$f":"    SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&RowHed&Acol&Icol,FALSE)))","v":true},null,{"$f":"      SET.NAME(\"Jrow1\",MID(Atmp1,Itmp+1,10)*1)","v":true},null,{"$f":"      SET.NAME(\"Yval\",Xval&Alsp)","v":true},null,null,{"$f":"          SET.NAME(\"Atmp\",0)","v":false},{"$f":"      SET.NAME(\"Nval\",1+INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+1,FALSE))","v":true},{"$f":"          SET.NAME(\"Itmp\",MATCH(\"*<ALLELEVALUE>*\",INDIRECT(\"'\"&S0din&\"'!\"&Arow&Krow0&Acol&1&Asep&Arow&Jrow1&Acol&1,FALSE),0))","v":true},{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"  FORMULA(Asam,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam&Acol&Csamp,FALSE))","v":true},null,null,null,null,{"$f":"IF(ISERROR(Itmp0))","v":true},null,null,{"$f":"WORKBOOK.HIDE()","v":true}]
[{"$f":"SET.NAME(\"RowFmt\",7)","v":true},null,null,null,null,null,{"$f":"  SAVE.AS(WrkBk1,1)","v":false},{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":false},{"$f":"RUN(SCF_SortCheck,FALSE)","v":{"$error":"#N/A"}},null,{"$f":"IF(Asort=\"New\")","v":true},{"$f":"            SET.NAME(\"Etype\",\"Too small numeric\")","v":true},{"$f":"      END.IF()","v":true},null,{"$f":"ERROR(TRUE)","v":true},null,null,null,{"$f":"    SET.NAME(\"Itmp\",FIND(\"Allele\",Atmp,1))","v":true},null,{"$f":"      SET.NAME(\"Nval\",Nval+1)","v":true},null,{"$f":"      SET.NAME(\"Nrul\",0)","v":true},null,null,{"$f":"        ELSE.IF(OR(Atmp=\"*\",Atmp=\"F\",Atmp=\"-\",Atmp=\"NA\",Atmp=\"ND\",Atmp=\"\",Atmp=\"?\"))","v":true},{"$f":"      FORMULA(Nval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+1,FALSE))","v":true},{"$f":"          IF(ISERROR(Itmp))","v":true},{"$f":"    IF(NOT(ISBLANK(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE))))","v":false},{"$f":"  FORMULA(Nloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam&Acol&Csamp+1,FALSE))","v":true},null,null,null,null,{"$f":"  SET.NAME(\"NumNew\",NumNew+1)","v":true}]
[{"$f":"SET.NAME(\"RowClr\",10)","v":true},null,null,null,null,null,{"$f":"  ERROR(TRUE)","v":false},{"$f":"  RUN(SCF_StructureWide,FALSE)","v":false},{"$f":"IF(NOT(Isok),RUN(SCF_SortSpecify,FALSE))","v":false},null,{"$f":"  DLD_ActivateSheet(S0srt)","v":false},{"$f":"            RUN(SCF_AmbigRecord,FALSE)","v":{"$error":"#N/A"}},{"$f":"    NEXT()","v":true},null,null,null,null,null,{"$f":"    IF(ISERROR(Itmp))","v":true},null,{"$f":"      SET.NAME(\"Nall\",MAX(Nall,Jrow1-Jrow0+1))","v":true},null,{"$f":"      SET.NAME(\"Istr\",1)","v":true},null,null,{"$f":"          SET.NAME(\"Atmp\",0)","v":false},{"$f":"      SET.NAME(\"Nval\",1+INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+1,FALSE))","v":true},{"$f":"            SET.NAME(\"Krow0\",Jrow1+1)","v":true},{"$f":"      SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE)))","v":false},{"$f":"  FORMULA(Irow,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam&Acol&Csamp+2,FALSE))","v":true},null,null,null,null,{"$f":"  FORMULA(\"Invalid!\",INDIRECT(\"'\"&S0dti&\"'!\"&Arow&4&Acol&4,FALSE))","v":true},null,null,"! Leave it on the Intro worksheet"]
[{"$f":"SET.NAME(\"RowFet\",RowClr+1)","v":true},null,null,null,null,null,{"$f":"END.IF()","v":false},{"$f":"  RUN(SCF_UniquifySampleNames,FALSE)","v":false},null,null,{"$f":"  SET.NAME(\"Icol\",MATCH(Asort,INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1,FALSE),0))","v":true},null,null,null,"! Not there, just copy it",null,null,null,{"$f":"      SET.NAME(\"Icol\",ColLst+1)","v":true},null,{"$f":"    END.IF()","v":true},null,{"$f":"      FOR(\"Itmp\",1,Ntmp,1)","v":true},null,null,{"$f":"        ELSE.IF(NOT(ISERROR(Atmp+0)))","v":true},{"$f":"      FORMULA(Nval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+1,FALSE))","v":true},{"$f":"          ELSE()","v":true},null,{"$f":"  FORMULA(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam&Acol&Csamp+3,FALSE))","v":true},null,null,null,null,{"$f":"  DLD_ColumnAutofit(1,2)","v":false},null,null,{"$f":"DLD_ActivateSheet(S0int)","v":false}]
[{"$f":"SET.NAME(\"RowCon\",RowFet+1)","v":true},null,null,null,null,null,null,{"$f":"  RUN(SCF_DataWide,FALSE)","v":false},"! Find specified sort order",null,{"$f":"  ECHO(TRUE)","v":true},"! Is it a too-big (>99) or too-small (<2) numeric?","! Store",null,{"$f":"IF(ISERROR(Atmp))","v":true},null,null,null,{"$f":"    ELSE()","v":true},null,{"$f":"  NEXT()","v":true},null,{"$f":"        SET.NAME(\"Itmp\",FIND(Alsp,Yval,Istr))","v":true},null,null,{"$f":"          SET.NAME(\"Atmp\",Atmp+0)","v":true},{"$f":"      SET.NAME(\"Iall\",1)","v":true},{"$f":"            SET.NAME(\"Irow\",Krow0+Itmp-1)","v":true},"! Single rule",{"$f":"NEXT()","v":true}]
[{"$f":"SET.NAME(\"RowSrt\",RowCon+1)","v":true},null,null,null,null,null,"! Evaluate the Fetched file",null,{"$f":"DLD_ActivateSheet(S0con)","v":0},null,{"$f":"  DLD_Selectcell(2,1)","v":false},{"$f":"        ELSE.IF(Xval>99)","v":true},{"$f":"    IF(Ntmp>0.5)","v":true},null,{"$f":"  SET.NAME(\"Itmp\",GET.WORKBOOK(4))","v":true},null,null,null,{"$f":"      SET.NAME(\"MaxAll\",MaxAll+1)","v":true},null,null,null,{"$f":"        SET.NAME(\"Atmp\",MID(Yval,Istr,Itmp-Istr))","v":true},null,null,{"$f":"        END.IF()","v":true},{"$f":"      SET.NAME(\"Jtmp\",1)","v":true},{"$f":"            SET.NAME(\"Krow0\",Irow+1)","v":true},{"$f":"      IF(ISERROR(FIND(Alsp,Xval)))","v":false},null,null,null,null,null,{"$f":"  SELECT(Arow&4&Acol&1)","v":true},null,null,{"$f":"HALT()","v":true}]
[{"$f":"SET.NAME(\"RowChe\",RowSrt+1)","v":true},null,null,null,null,null,{"$f":"DLD_ActivateSheet(S1dat)","v":0},{"$f":"ELSE.IF(LEFT(Ftype,4)=\"NIST\")","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Coffs&Asep&Acol&Coffs+1,FALSE))","v":true},null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&K$1&\" > You want a 'New' sort-order, go ahead and build it!\")","v":true},{"$f":"            SET.NAME(\"Etype\",\"Too large numeric\")","v":true},{"$f":"      FORMULA(Atmp,INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&RowStd+Isam&Acol&1+Iloc,FALSE))","v":true},null,{"$f":"  WORKBOOK.COPY(S0dou,WrkBk2,Itmp+1)","v":true},null,null,null,{"$f":"    END.IF()","v":true},null,{"$f":"  FORMULA(Nval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+1,FALSE))","v":true},null,null,null,null,{"$f":"        SET.NAME(\"Istr\",Itmp+1)","v":true},{"$f":"      SET.NAME(\"Itmp\",FIND(\",\",Atmp,Jtmp))","v":true},null,{"$f":"        SET.NAME(\"Nrul\",Nrul+1)","v":true},"! Stick in the number of samples",null,null,null,null,{"$f":"  OPTIONS.VIEW(TRUE,TRUE)","v":true}]
[{"$f":"SET.NAME(\"RowCom\",RowChe+1)","v":true},null,null,null,null,null,{"$f":"ZOOM(ZoomSet)","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},{"$f":"CLEAR(3)","v":true},null,{"$f":"  ALERT(\"If you want a new sort-order, you must build it\"&Acar&Acar&\"Use the 'real' locus names and give it a unique column header.\"&Acar&\"Go back to the 'ControlPanel' when you are finished.\",2)","v":true},{"$f":"            RUN(SCF_AmbigRecord,FALSE)","v":{"$error":"#N/A"}},null,null,{"$f":"  WORKBOOK.NAME(,Asht)","v":true},null,null,null,{"$f":"  NEXT()","v":true},null,{"$f":"  FORMULA(Ncol+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+2,FALSE))","v":true},null,{"$f":"        IF(ISERROR(Atmp))","v":true},null,null,{"$f":"        SET.NAME(\"Iall\",Iall+1)","v":true},{"$f":"      WHILE(NOT(ISERROR(Itmp)))","v":true},"! Get the allele value",{"$f":"        FORMULA(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Nrul&Acol&Coffs+Nloc+2,FALSE))","v":false},{"$f":"FORMULA.ARRAY(Nsam,INDIRECT(\"'\"&S0con&\"'!\"&Arow&3&Acol&Cloci+1&Asep&Arow&2+Nloc&Acol&Cloci+1,FALSE))","v":true},null,null,null,null,{"$f":"  ECHO(TRUE)","v":true}]
[{"$f":"SET.NAME(\"RowSt1\",RowCom+1)","v":true},null,null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":0},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},{"$f":"SET.NAME(\"Asort\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE)))","v":true},null,{"$f":"  HALT()","v":true},{"$f":"        END.IF()","v":true},"! If only one allele, color code it",null,null,null,null,null,{"$f":"END.IF()","v":true},null,{"$f":"  SET.NAME(\"Ncol\",Ncol+Nall)","v":true},null,{"$f":"          SET.NAME(\"Atmp\",0)","v":false},null,null,{"$f":"        IF(Iall<2.5)","v":true},{"$f":"        SET.NAME(\"Iall\",Iall+1)","v":true},{"$f":"            SET.NAME(\"Nall\",Nall+1)","v":true},null,null,null,null,null,null,{"$f":"  MESSAGE(TRUE,\"Date-Time format is not valid.\")","v":true}]
[{"$f":"SET.NAME(\"RowSt2\",RowSt1+1)","v":true},null,null,null,null,null,null,{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":{"$error":"#N/A"}},{"$f":"IF(ISERROR(Asort),SET.NAME(\"Asort\",\"\"))","v":false},null,{"$f":"END.IF()","v":false},{"$f":"      NEXT()","v":true},{"$f":"      IF(AND(Ntmp<1.5,Itmp<0.5))","v":true},null,"! There already, delete the old and copy the new",null,null,null,null,null,{"$f":"  FORMULA(Nall,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci+3,FALSE))","v":true},null,{"$f":"        ELSE.IF(OR(Atmp=\"*\",Atmp=\"F\",Atmp=\"-\",Atmp=\"NA\",Atmp=\"ND\",Atmp=\"\",Atmp=\"?\"))","v":true},null,null,{"$f":"          FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol+Iall-1,FALSE))","v":true},{"$f":"        SET.NAME(\"Jtmp\",Itmp+1)","v":true},{"$f":"            SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&1,FALSE)))","v":true},"! Multiple rules",{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AD$1&\" > Finished!\")","v":true},null,null,null,null,{"$f":"  ALERT(\"While the Date and Time formats are ok, their combination is NOT ok.\"&Acar&\"Try reformatting the Date and/or the Time so that the combination of the two is valid using \"&Acar&\"Excel's Format > Cells… > Number > Custom tool.  Good Luck!\"&Acar&Acar&\"Cllick 'Check It' to proceed.\")","v":true}]
[{"$f":"SET.NAME(\"RowTyp\",34)","v":true},null,null,null,null,null,"! Is this the right sheet?",{"$f":"  RUN(SCF_StructureNIST,FALSE)","v":{"$error":"#N/A"}},{"$f":"SET.NAME(\"Itmp\",MATCH(Asort,INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&11&Asep&Arow&1&Acol&256,FALSE),0))","v":true},null,null,{"$f":"    END.IF()","v":true},{"$f":"        DLD_ActivateSheet(S0dcm)","v":0},null,{"$f":"ELSE()","v":true},null,null,null,"! Sort",null,{"$f":"NEXT()","v":true},null,{"$f":"          SET.NAME(\"Atmp\",0)","v":true},null,null,{"$f":"        ELSE.IF(NOT(Atmp=0))","v":true},{"$f":"        SET.NAME(\"Itmp\",FIND(\",\",Atmp,Jtmp))","v":true},{"$f":"            SET.NAME(\"Atmp\",MID(Atmp,FIND(\">\",Atmp)+1,100))","v":true},{"$f":"      ELSE()","v":true},{"$f":"RETURN()","v":true},null,null,null,null,{"$f":"  HALT()","v":true}]
[{"$f":"SET.NAME(\"RowBall\",1)","v":true},null,null,null,null,null,{"$f":"ECHO(TRUE)","v":true},{"$f":"  RUN(SCF_UniquifySampleNames,FALSE)","v":{"$error":"#N/A"}},{"$f":"SET.NAME(\"Icol\",IF(ISERROR(Itmp),11,10+Itmp))","v":true},null,"! Store it",{"$f":"  NEXT()","v":true},{"$f":"        SELECT(INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&RowStd+Isam&Acol&1+Iloc,FALSE))","v":true},null,{"$f":"  SELECT(Acol&1&Asep&Acol&256)","v":true},null,null,null,{"$f":"DLD_ActivateSheet(S0din)","v":0},null,null,null,{"$f":"        ELSE.IF(NOT(ISERROR(Atmp+0)))","v":true},null,null,{"$f":"           FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol+Iall-1,FALSE))","v":true},{"$f":"      NEXT()","v":true},{"$f":"            SET.NAME(\"Aall\",LEFT(Atmp,FIND(\"<\",Atmp)-1))","v":true},{"$f":"        SET.NAME(\"Yval\",Xval&Alsp)","v":false},null,null,null,null,null,{"$f":"ELSE()","v":true}]
[{"$f":"SET.NAME(\"RowBclr\",RowBall+4)","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"Atmp1\",ALERT(\"Is this the right worksheet?\"&S1dat&\".\"&Acar&Acar&\"Click 'OK' if 'Yes', 'Cancel' for 'No'.\",1))","v":true},{"$f":"  RUN(SCF_DataWide,FALSE)","v":{"$error":"#N/A"}},{"$f":"SET.NAME(\"Asort\",DEREF(INDIRECT(\"'\"&S0srt&\"'!\"&Arow&1&Acol&Icol,FALSE)))","v":true},null,{"$f":"IF(NOT(Acur=Asort))","v":true},{"$f":"NEXT()","v":true},{"$f":"        PATTERNS(1,6,0)","v":true},null,{"$f":"  CLEAR(1)","v":true},null,null,null,{"$f":"SELECT(Arow&RowHed&Acol&1&Asep&Arow&65536&Acol&ColLst)","v":true},null,"! Get the data",null,{"$f":"          SET.NAME(\"Atmp\",Atmp+0)","v":true},null,null,{"$f":"        END.IF()","v":true},{"$f":"      SET.NAME(\"Nall\",MAX(Nall,Iall))","v":true},{"$f":"      FORMULA(Asam,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Ntry&Acol&3,FALSE))","v":true},{"$f":"        SET.NAME(\"Ntmp\",LEN(Xval))","v":true},null,null,null,null,null,{"$f":"  FORMULA(\"Valid\",INDIRECT(\"'\"&S0dti&\"'!\"&Arow&4&Acol&4,FALSE))","v":true}]
[{"$f":"SET.NAME(\"RowBfet\",RowBclr+3)","v":true},null,null,null,null,null,{"$f":"IF(Atmp1=FALSE)","v":true},null,{"$f":"FORMULA(Asort,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE))","v":true},null,{"$f":"  FORMULA(Asort,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTyp&Acol&Cpara+1,FALSE))","v":true},null,{"$f":"        DLD_ActivateSheet(S0dst)","v":0},null,{"$f":"  COPY(INDIRECT(\"'\"&S0dou&\"'!\"&Acol&1&Asep&Acol&256,FALSE),INDIRECT(\"'\"&S2dat&\"'!\"&Arow&1&Acol&1,FALSE))","v":true},null,null,null,{"$f":"SORT(1,Arow&RowHed+1&Acol&ColSam,1,,,,,1)","v":true},null,{"$f":"DLD_ActivateSheet(S0dst)","v":false},null,{"$f":"        END.IF()","v":true},null,null,{"$f":"      NEXT()","v":true},{"$f":"    END.IF()","v":true},{"$f":"      FORMULA(Aloc,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Ntry&Acol&4,FALSE))","v":true},{"$f":"        SET.NAME(\"Istr\",1)","v":true},null,null,null,null,null,{"$f":"  SELECT(INDIRECT(\"'\"&S0dti&\"'!\"&Arow&4&Acol&2,FALSE))","v":true}]
[{"$f":"SET.NAME(\"RowBcon\",RowBfet+3)","v":true},null,null,null,null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7&\" > Activate the desired sheet, save the file, and try again!\")","v":true},{"$f":"ELSE.IF(Ftype=\"Bode\")","v":true},null,null,{"$f":"  SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSrt&Acol&Cpara+1&Asep&Arow&RowSt2&Acol&Cpara+1,FALSE))","v":true},"! If possible, make the rule summary file",{"$f":"      END.IF()","v":true},null,{"$f":"END.IF()","v":true},null,null,null,null,null,{"$f":"SELECT(Acol&1&Asep&Acol&256)","v":true},null,{"$f":"        SET.NAME(\"Istr\",Itmp+1)","v":true},null,null,{"$f":"    END.IF()","v":true},{"$f":"  NEXT()","v":true},{"$f":"      FORMULA(Nall,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Ntry&Acol&5,FALSE))","v":true},{"$f":"        FOR(\"Itmp\",1,Ntmp,1)","v":true},null,null,null,null,null,{"$f":"  FORMAT.NUMBER(AlngDatTim)","v":true}]
[{"$f":"SET.NAME(\"RowBsrt\",RowBcon+3)","v":true},null,null,null,null,null,{"$f":"  ALERT(\"Activate the desired worksheet, save the workbook, and try this again.\",2)","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},"! Record order",null,{"$f":"  CLEAR(3)","v":true},{"$f":"IF(NOT(ISERROR(CRul)))","v":true},null,null,null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&S$1&\" > Finished!\")","v":true},null,{"$f":"CLEAR(1)","v":true},null,{"$f":"        SET.NAME(\"Nrul\",Nrul+1)","v":true},null,null,null,{"$f":"  FORMULA(Nall,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+3,FALSE))","v":true},{"$f":"      FORMULA(Aall,INDIRECT(\"'\"&S0din&\"'!\"&Arow&Ntry&Acol&5+Nall,FALSE))","v":true},{"$f":"          SET.NAME(\"Itmp\",FIND(Alsp,Yval,Istr))","v":false},null,null,null,null,null,{"$f":"END.IF()","v":true}]
[{"$f":"SET.NAME(\"RowBche\",RowBsrt+3)","v":true},null,null,null,null,null,{"$f":"  HALT()","v":true},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},null,{"$f":"END.IF()","v":true},null,"! Is this one odd?",null,null,null,null,null,{"$f":"RETURN()","v":true},null,null,null,{"$f":"        IF(Nrul<2.5)","v":true},null,null,"! Sort alleles",{"$f":"NEXT()","v":true},{"$f":"          END.IF()","v":true},{"$f":"          SET.NAME(\"Atmp\",MID(Yval,Istr,Itmp-Istr))","v":true}]
[{"$f":"SET.NAME(\"RowBcom\",RowBche+3)","v":true},null,null,null,null,null,{"$f":"END.IF()","v":false},{"$f":"  ALERT(\"Whoops... This 'Bode' format is recognized but not yet convertable.  Sorry.\"&Acar&Acar&\"Drop david.duewer@nist.gov a message and tell him to finish it!\",1)","v":true},{"$f":"  FORMULA(Iloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Coffs,FALSE))","v":true},null,null,"! Set up the Rule-report headers",{"$f":"      IF(Itmp>0.5)","v":true},null,"! Store",null,null,null,null,null,"! Header records",null,{"$f":"          FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Nrul&Acol&256,FALSE))","v":true},null,null,{"$f":"    IF(Nall>1.5)","v":true},null,{"$f":"        NEXT()","v":true},{"$f":"          SET.NAME(\"Istr\",Itmp+1)","v":true},null,null,null,null,null,"! Success"]
[{"$f":"SET.NAME(\"RowBst1\",RowBcom+3)","v":true},null,null,null,null,null,null,{"$f":"  HALT()","v":true},{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},null,"! Get return row",{"$f":"  DLD_ActivateSheet(S0con)","v":false},{"$f":"        DLD_ActivateSheet(S0dcm)","v":false},null,{"$f":"DLD_ActivateSheet(S2dat)","v":0},null,null,null,null,null,{"$f":"FORMULA(\"SampleCode\",INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&1,FALSE))","v":true},null,{"$f":"        ELSE.IF(NOT(Atmp=0))","v":true},null,null,{"$f":"      SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol&Asep&Arow&RowStd+Isam&Acol&Jcol+Nall-1,FALSE))","v":true},null,{"$f":"      END.IF()","v":true},{"$f":"          SET.NAME(\"Nrul\",Nrul+1)","v":true},null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0dti)","v":0}]
[{"$f":"SET.NAME(\"RowBst2\",RowBst1+3)","v":true},null,null,null,null,null,"! Check for too few rows",{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":false},{"$f":"  SET.NAME(\"Irow\",MATCH(Aloc,INDIRECT(\"'\"&S0srt&\"'!\"&Acol&Icol,FALSE),0))","v":true},null,{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE)))","v":true},{"$f":"  SELECT(\"(\"&Acol&Cloci+5&Asep&Acol&Cloci+6&Alsp&Acol&Csamp+5&Asep&Acol&Csamp+6&Alsp&Acol&Crule&Asep&Acol&256&\")\")","v":false},{"$f":"        SELECT(INDIRECT(\"'\"&S0dcm&\"'!\"&Arow&RowStd+Isam&Acol&1+Iloc,FALSE))","v":true},null,{"$f":"SET.NAME(\"Nrow\",COUNTA(INDIRECT(\"'\"&S2dat&\"'!C1\",FALSE)))","v":true},null,null,null,null,null,{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},null,{"$f":"          FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Nrul&Acol&256,FALSE))","v":true},null,null,{"$f":"      SORT(2)","v":true},null,{"$f":"    NEXT()","v":true},{"$f":"          FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Nrul&Acol&Coffs+Nloc+2,FALSE))","v":false},null,null,null,null,null,{"$f":"FORMULA(\"AlngDat\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&17&Acol&2,FALSE))","v":true}]
[{"$f":"SET.NAME(\"RowBext\",RowBst2+4)","v":true},null,null,null,null,null,{"$f":"DLD_ActivateSheet(S1dat)","v":0},{"$f":"  RUN(SCF_Bode,FALSE)","v":false},{"$f":"  IF(NOT(ISERROR(Irow)),FORMULA(Irow-1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Coffs+1,FALSE)))","v":true},null,{"$f":"SET.NAME(\"Ntmp\",IF(Atmp=NanCon,RowBsrt,RowBtyp))","v":true},{"$f":"  CLEAR(3)","v":true},{"$f":"        PATTERNS(1,7,0)","v":true},null,{"$f":"SET.NAME(\"Ncol\",COUNTA(INDIRECT(\"'\"&S2dat&\"'!\"&Arow&RowStd&Acol&1&Asep&Arow&RowStd&Acol&Coffs-1,FALSE)))","v":true},null,null,null,null,null,{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},null,{"$f":"        END.IF()","v":true},null,null,{"$f":"    END.IF()","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AA$1&\" > Still working on this one!\")","v":false},{"$f":"  END.IF()","v":true},{"$f":"        NEXT()","v":true},null,null,null,null,null,{"$f":"FORMULA(\"AlngTim\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&18&Acol&2,FALSE))","v":true}]
[{"$f":"SET.NAME(\"RowBtyp\",RowBext+4)","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"Ntype\",0)","v":true},null,{"$f":"NEXT()","v":true},null,null,null,{"$f":"        DLD_ActivateSheet(S0dst)","v":false},null,{"$f":"SELECT(Arow&Nrow+3&Asep&Arow&65536)","v":true},null,null,null,null,null,{"$f":"  SET.NAME(\"Ncol\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+2,FALSE)))","v":true},null,{"$f":"      NEXT()","v":true},null,null,{"$f":"  NEXT()","v":true},{"$f":"HALT()","v":true},{"$f":"NEXT()","v":true},{"$f":"      END.IF()","v":true},null,null,null,null,null,{"$f":"FORMULA(\"AlngDatTim\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&19&Acol&2,FALSE))","v":true}]
[{"$f":"SET.NAME(\"RowStd\",3)","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"RowFst\",GET.DOCUMENT(9))","v":true},{"$f":"ELSE.IF(Ftype=\"XML\")","v":true},null,null,"! Format return","! Augment locus header",{"$f":"      END.IF()","v":true},null,{"$f":"EDIT.DELETE(3)","v":true},null,null,null,null,null,{"$f":"  SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+3,FALSE)))","v":true},null,{"$f":"    END.IF()","v":true},null,null,{"$f":"NEXT()","v":true},null,null,{"$f":"    END.IF()","v":true},null,null,null,null,null,{"$f":"FORMULA(\"Acol\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&20&Acol&2,FALSE))","v":true}]
[{"$f":"SET.NAME(\"ZoomSet\",100)","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"RowLst\",GET.DOCUMENT(10))","v":true},{"$f":"  RUN(SCF_XML,FALSE)","v":{"$error":"#N/A"}},"! Add anything not in the specified SortList to the end",null,{"$f":"ECHO(FALSE)","v":true},{"$f":"  SELECT(Arow&1&Acol&Cloci&Asep&Arow&1&Acol&Cloci+6)","v":true},{"$f":"    END.IF()","v":true},null,{"$f":"SELECT(Acol&Ncol+3&Asep&Acol&256)","v":true},null,null,null,null,null,{"$f":"  FOR(\"Iall\",1,Nall,1)","v":true},null,null,null,null,null,null,{"$f":"IF(Nsam<0.5)","v":true},{"$f":"  NEXT()","v":true},null,null,null,null,null,{"$f":"FORMULA(\"Adcp\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&21&Acol&2,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"IF(RowLst-RowFst<0.5)","v":true},{"$f":"SET.NAME(\"RowHed\",0)","v":true},{"$f":"SET.NAME(\"Itmp\",MAX(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Coffs+1&Asep&Acol&Coffs+1,FALSE)))","v":true},null,{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},{"$f":"  ALIGNMENT(7,FALSE,3,0)","v":true},{"$f":"  NEXT()","v":true},null,{"$f":"EDIT.DELETE(4)","v":true},null,null,null,null,null,{"$f":"    FORMULA(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd&Acol&Ncol,FALSE))","v":true},null,"! Transfer sorted non-zero data",null,null,"! Update status",{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},{"$f":"  FORMULA(\"Could not find <SPECIMENID>\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true},{"$f":"NEXT()","v":true},null,null,null,null,null,{"$f":"FORMULA(\"Agnl\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&22&Acol&2,FALSE))","v":true}]
[{"$f":"RETURN()","v":true},null,null,null,null,null,{"$f":"  FORMULA(\"Invalid format: Too few rows\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara+1,FALSE))","v":false},{"$f":"SET.NAME(\"RowFst\",1)","v":true},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},null,{"$f":"ECHO(TRUE)","v":true},{"$f":"  FORMULA(\"1rule\",Arow&2&Acol&Cloci+5)","v":true},{"$f":"NEXT()","v":true},null,{"$f":"DLD_ColumnAutofit(1,-1)","v":0},null,null,null,null,null,{"$f":"    SET.NAME(\"Ncol\",Ncol+1)","v":true},null,{"$f":"    IF(ISERROR(ColMaj+ColPro))","v":true},null,null,{"$f":"FORMULA(NanCon,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true},{"$f":"  SET.NAME(\"Irow\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+2,FALSE)))","v":true},{"$f":"  ECHO(TRUE)","v":true},null,null,null,null,null,null,{"$f":"FORMULA(\"Alsp\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&23&Acol&2,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  DLD_Selectcell(RowFet,2)","v":false},{"$f":"SET.NAME(\"RowLst\",Ntry)","v":true},{"$f":"  SET.NAME(\"Irow\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Coffs+1,FALSE)))","v":true},null,{"$f":"DLD_Selectcell(Ntmp,2)","v":0},{"$f":"  FORMULA(\"2rule+\",Arow&2&Acol&Cloci+6)","v":true},null,null,{"$f":"DLD_Selectcell(1,1)","v":0},null,null,null,null,null,{"$f":"  NEXT()","v":true},null,{"$f":"      SET.NAME(\"Icol\",IF(ISERROR(ColPro),255,256))","v":true},null,null,null,{"$f":"    SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&Icol,FALSE)))","v":true},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AB$1&\" > Could not find <SPECIMENID>\")","v":true},"! Sort rules",null,null,null,null,null,{"$f":"FORMULA(\"Arow\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&24&Acol&2,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  ECHO(TRUE)","v":true},{"$f":"SET.NAME(\"ColSam\",3)","v":true},{"$f":"  IF(Irow<0.5)","v":true},null,null,{"$f":"  SELECT(Arow&2&Acol&Cloci+5&Asep&Arow&2&Acol&Cloci+6)","v":true},"! Update status",null,{"$f":"SAVE()","v":true},null,null,null,null,null,{"$f":"NEXT()","v":true},null,{"$f":"      SELECT(Acol&Icol)","v":true},null,null,"! Format",{"$f":"    IF(ISERROR(Atmp),SET.NAME(\"Atmp\",\"?\"))","v":false},{"$f":"  ALERT(\"This worksheet does not have at least one XML flag <SPECIMENID>!\"&Acar&Acar&\"Please 'Fetch' correctly formated data or fix things and try again.\",2)","v":true},{"$f":"DLD_ActivateSheet(S0dst)","v":false},null,null,null,null,null,{"$f":"FORMULA(\"NumNew\",INDIRECT(\"'\"&S0mac&\"'!\"&Arow&25&Acol&2,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7&\" > Insufficient data on this sheet to bother with!\")","v":true},{"$f":"SET.NAME(\"ColLst\",7)","v":true},{"$f":"    SET.NAME(\"Itmp\",Itmp+1)","v":true},null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&K$1&\" > Finished!\")","v":true},{"$f":"  ALIGNMENT(3,FALSE,3,0)","v":true},{"$f":"FORMULA(NanCom&IF(Nodd<0.5,\"\",\": Number ambiguous genotypes = \"&Nodd),INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCom&Acol&Cpara+1,FALSE))","v":true},null,{"$f":"CLOSE(FALSE)","v":true},null,null,null,null,null,null,null,{"$f":"      SORT(1)","v":true},null,null,{"$f":"DLD_ActivateSheet(S0dst)","v":0},{"$f":"    SET.NAME(\"Atmp\",UPPER(CLEAN(TRIM(Atmp))))","v":true},{"$f":"  HALT()","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Acol&Coffs+Nloc+2,FALSE))","v":false},null,null,null,null,null,{"$f":"FORMULA(AlngDat,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&17&Acol&3,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  ALERT(\"This worksheet contains at most \"&RowLst-RowFst+1&\" rows of information.\"&Acar&Acar&\"Specify a sheet that contains at least one data row and try again.\",2)","v":false},{"$f":"SET.NAME(\"ColLoc\",4)","v":true},{"$f":"    FORMULA(Itmp,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Coffs+1,FALSE))","v":true},null,{"$f":"RETURN()","v":true},{"$f":"  BORDER(1)","v":true},null,null,null,null,null,null,null,null,{"$f":"FORMULA(Aprog&\" conversion of \"&S1dat&\" on: \"&TEXT(NOW(),AlngDatTim),INDIRECT(\"'\"&S0dst&\"'!\"&Arow&1&Acol&1,FALSE))","v":true},null,{"$f":"      SET.NAME(\"Itmp\",MIN(Nall,COUNTA(INDIRECT(\"'\"&S0dst&\"'!\"&Acol&Icol,FALSE))))","v":true},null,null,{"$f":"DLD_ColumnAutofit(1,-1)","v":0},{"$f":"    IF(OR(Atmp=\"US\",Atmp=\"NID\",Atmp=\"NR\"))","v":true},{"$f":"END.IF()","v":false},{"$f":"SORT(1)","v":true},null,null,null,null,null,{"$f":"FORMULA(AlngTim,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&18&Acol&3,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  HALT()","v":true},{"$f":"SET.NAME(\"ColMaj\",6)","v":true},{"$f":"  END.IF()","v":true},null,null,null,"! Format",null,"! Format return",null,null,null,null,null,{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&1&Acol&1&Asep&Arow&1&Acol&Ncol-1,FALSE))","v":true},null,{"$f":"      FOR(\"Iall\",1,Itmp,1)","v":true},null,null,{"$f":"ECHO(TRUE)","v":true},{"$f":"      SET.NAME(\"Atmp\",\"?\")","v":true},null,null,null,null,null,null,null,{"$f":"FORMULA(AlngDatTim,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&19&Acol&3,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"END.IF()","v":false},{"$f":"SET.NAME(\"ColPro\",NA())","v":true},{"$f":"NEXT()","v":true},null,null,"! Augment sample header",{"$f":"DLD_ActivateSheet(S0dcm)","v":0},null,{"$f":"DLD_ActivateSheet(S0con)","v":0},null,null,null,null,null,{"$f":"ALIGNMENT(7,FALSE,3,0)","v":true},null,{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Iall&Acol&Icol,FALSE)))","v":true},null,null,{"$f":"DLD_Selectcell(1,1)","v":0},{"$f":"    ELSE()","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AB$1&\" > Finished!\")","v":true},"! Have we seen this before?",null,null,null,null,null,{"$f":"FORMULA(Acol,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&20&Acol&3,FALSE))","v":true}]
[null,null,null,null,null,null,null,{"$f":"SET.NAME(\"ColRul\",NA())","v":true},null,null,null,{"$f":"  SELECT(Arow&1&Acol&Csamp&Asep&Arow&1&Acol&Csamp+6)","v":true},{"$f":"DLD_ColumnAutofit(1,-1)","v":0},null,{"$f":"FORMULA(NanSto&\": \"&S2dat,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowTmp&Acol&Cpara+1,FALSE))","v":true},null,null,null,null,null,{"$f":"DLD_ColumnAutofit(1,-1)","v":false},null,{"$f":"        FORMULA(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol+Iall-1,FALSE))","v":true},null,null,null,{"$f":"      SET.NAME(\"Nval\",1+INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+1,FALSE))","v":true},{"$f":"RETURN()","v":true},{"$f":"SET.NAME(\"Nrul1\",0)","v":true},null,null,null,null,null,{"$f":"FORMULA(Adcp,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&21&Acol&3,FALSE))","v":true}]
[null,null,null,null,null,null,"! Get the number of columns",{"$f":"SET.NAME(\"MaxAll\",2)","v":true},"! Sort",null,null,{"$f":"  ALIGNMENT(7,FALSE,3,0)","v":true},{"$f":"DLD_Selectcell(1,1)","v":0},null,{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},null,null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":false},null,{"$f":"      NEXT()","v":true},null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&Z$1&\" > Finished!\")","v":true},{"$f":"      FORMULA(Nval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+1,FALSE))","v":true},null,{"$f":"FOR(\"Irul\",1,Nrul,1)","v":true},null,null,null,null,null,{"$f":"FORMULA(Agnl,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&22&Acol&3,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"SET.NAME(\"ColFst\",GET.DOCUMENT(11))","v":true},{"$f":"  SET.NAME(\"Csamp\",Cloci+6)","v":true},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Coffs&Asep&Arow&RowStd+Nloc-1&Acol&Coffs+1,FALSE))","v":true},null,null,{"$f":"  FORMULA(\"1rule\",Arow&2&Acol&Csamp+5)","v":true},null,null,{"$f":"DLD_Selectcell(1,1)","v":0},null,null,null,null,null,null,null,null,null,null,{"$f":"RETURN()","v":true},{"$f":"      SET.NAME(\"Nval\",1+INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+1,FALSE))","v":true},null,{"$f":"  SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Irul&Acol&Coffs+Nloc+2,FALSE)))","v":false},null,null,null,null,null,{"$f":"FORMULA(Alsp,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&23&Acol&3,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"SET.NAME(\"ColLst\",GET.DOCUMENT(12))","v":true},{"$f":"  SET.NAME(\"Crule\",NA())","v":true},{"$f":"SORT(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Coffs+1,FALSE),1,,,,1)","v":true},null,null,{"$f":"  FORMULA(\"2rule+\",Arow&2&Acol&Csamp+6)","v":true},"! Format return",null,null,null,null,null,null,null,"! Loop over the samples",null,"! If possible, compare the two specifications",null,null,null,{"$f":"      FORMULA(Nval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Isam+2&Acol&Csamp+1,FALSE))","v":true},null,{"$f":"  SET.NAME(\"Itmp\",MATCH(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Acol&Coffs+Nloc+2,FALSE),1))","v":false},null,null,null,null,null,{"$f":"FORMULA(Arow,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&24&Acol&3,FALSE))","v":true}]
["Utility_StartUp",null,null,null,null,null,null,{"$f":"  RUN(SCF_FormatHeader,FALSE)","v":{"$error":"#N/A"}},null,null,null,{"$f":"  SELECT(Arow&2&Acol&Csamp+5&Asep&Arow&2&Acol&Csamp+6)","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&O$1&\" > Finished!\")","v":true},null,null,null,null,null,{"$f":"FOR(\"Isam\",1,Nsam,1)","v":true},null,{"$f":"    ELSE()","v":true},null,null,null,"! Sort alleles",null,{"$f":"  SET.NAME(\"Nrul1\",Nrul1+1)","v":true},null,null,null,null,null,{"$f":"FORMULA(NumNew,INDIRECT(\"'\"&S0mac&\"'!\"&Arow&25&Acol&3,FALSE))","v":true}]
["! Set all the constants",null,null,null,null,null,"! XML?",{"$f":"  RUN(SCF_StructureLong,FALSE)","v":{"$error":"#N/A"}},"! Sort index into the right order",null,null,{"$f":"  ALIGNMENT(3,FALSE,3,0)","v":true},{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},null,{"$f":"RETURN()","v":true},null,null,null,null,null,{"$f":"   MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&U$1&\" > Sample \"&Isam&\" of \"&Nsam)","v":true},null,{"$f":"      SET.NAME(\"Itmp\",COUNTA(INDIRECT(\"'\"&S0dst&\"'!C255\",FALSE)))","v":true},null,null,null,{"$f":"    END.IF()","v":true},null,{"$f":"  FORMULA(Xval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nrul1+2&Acol&Crule,FALSE))","v":false}]
[{"$f":"ECHO(FALSE)","v":true},null,null,null,null,null,{"$f":"SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S1dat&\"'!\"&Arow&RowFst&Acol&ColFst,FALSE)))","v":true},{"$f":"  RUN(SCF_DataLong,FALSE)","v":{"$error":"#N/A"}},{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},null,null,{"$f":"  BORDER(1)","v":true},{"$f":"ECHO(TRUE)","v":true},null,null,null,null,null,null,null,{"$f":"  SET.NAME(\"Asam\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp,FALSE)))","v":true},null,{"$f":"      SET.NAME(\"Jtmp\",COUNTA(INDIRECT(\"'\"&S0dst&\"'!C256\",FALSE)))","v":true},null,null,null,{"$f":"  NEXT()","v":true},null,{"$f":"  FORMULA(Itmp-Irul+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nrul1+2&Acol&Crule+1,FALSE))","v":false},null,null,null,null,null,"! Hide this worksheet"]
[null,null,null,null,null,null,{"$f":"SET.NAME(\"Itmp\",FIND(\"xml\",Atmp,1))","v":true},null,{"$f":"  SET.NAME(\"Irow\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Coffs,FALSE)))","v":true},null,null,null,{"$f":"DLD_Selectcell(RowBst1,2)","v":0},null,null,null,null,null,null,null,{"$f":"  FORMULA(Asam,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&1,FALSE))","v":true},null,{"$f":"      IF(NOT(Itmp=Jtmp))","v":true},null,null,null,{"$f":"NEXT()","v":true},null,{"$f":"  SET.NAME(\"Irul\",Itmp)","v":true},null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0dti)","v":0}]
["! Check that the language dependencies are set",null,null,null,null,null,{"$f":"IF(NOT(ISERROR(Itmp)))","v":true},"! Tell about unknown type",{"$f":"  FORMULA(Iloc,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Irow+2&Acol&Cloci+4,FALSE))","v":true},null,null,"! Rule header",null,null,null,null,null,null,null,null,null,null,{"$f":"        SET.NAME(\"Icol\",IF(Jtmp>Itmp,255,256))","v":true},null,null,null,null,null,{"$f":"NEXT()","v":true},null,null,null,null,null,{"$f":"WORKBOOK.HIDE()","v":true}]
[{"$f":"SET.NAME(\"NumNew\",0)","v":true},null,null,null,null,null,{"$f":"  SET.NAME(\"Ntype\",Ntype+1)","v":true},{"$f":"ELSE()","v":true},{"$f":"NEXT()","v":true},null,null,{"$f":"  FORMULA(\"Rules\",Arow&1&Acol&Crule)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&M$1&\" > Finished!\")","v":true},null,null,null,null,null,null,null,"! Loop over the loci",null,{"$f":"        FOR(\"Iall\",MIN(Itmp,Jtmp)+1,MAX(Itmp,Jtmp),1)","v":true},null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":false}]
[{"$f":"RUN(S0mac&\"!Utility_DateTimeDependencies\",FALSE)","v":{"$error":"#N/A"}},null,null,null,null,null,{"$f":"  SET.NAME(\"Ftype\",IF(Ntype<1.5,\"\",Ftype&\", \")&\"XML\")","v":true},{"$f":"  FORMULA(\"Unknown format\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara+1,FALSE))","v":false},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci&Asep&Arow&RowStd+Nloc-1&Acol&Cloci+4,FALSE))","v":true},null,null,{"$f":"  SELECT(Arow&1&Acol&Crule&Asep&Arow&2&Acol&Crule+1)","v":true},{"$f":"RETURN()","v":true},null,null,null,null,null,null,null,{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},null,{"$f":"          FORMULA(0,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Iall&Acol&Icol,FALSE))","v":true},null,null,null,{"$f":"DLD_ColumnAutofit(Cloci,-1)","v":false},null,"! Sort it",null,null,null,null,null,"! Do we need to restart Auto_Open?"]
[null,null,null,null,null,null,{"$f":"END.IF()","v":true},{"$f":"  DLD_ActivateSheet(S0din)","v":false},{"$f":"SORT(1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci+4,FALSE),1,,,,1)","v":true},null,null,{"$f":"  ALIGNMENT(7,FALSE,3,0)","v":true},null,null,null,null,null,null,null,null,{"$f":"    SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Iloc&Acol&Cloci,FALSE)))","v":true},null,{"$f":"        NEXT()","v":true},null,null,null,{"$f":"ECHO(TRUE)","v":true},null,{"$f":"DLD_ActivateSheet(S0con)","v":false},null,null,null,null,null,{"$f":"IF(NumNew>0.5)","v":true}]
["! Set the program identifiers",null,null,null,null,null,null,{"$f":"  DLD_Selectcell(1,1)","v":false},{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowStd&Acol&Cloci+4&Asep&Arow&RowStd+Nloc-1&Acol&Cloci+4,FALSE))","v":true},null,null,{"$f":"  FORMULA(\"Code\",Arow&2&Acol&Crule)","v":true},null,null,null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ncol\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+2,FALSE)))","v":true},null,{"$f":"      END.IF()","v":true},null,null,null,{"$f":"DLD_Selectcell(1,1)","v":false},null,{"$f":"SELECT(Arow&3&Acol&Crule&Asep&Arow&Nrul+2&Acol&Crule+1)","v":false},null,null,null,null,null,{"$f":"  _xlnm.Auto_Open()","v":0}]
[{"$f":"SET.NAME(\"Aprog\",Asyst&\" <\"&TEXT(Adate,AlngDat)&\">\")","v":true},null,null,null,null,null,"! CODIS?",{"$f":"  ECHO(TRUE)","v":true},{"$f":"CLEAR(3)","v":true},null,null,{"$f":"  FORMULA(\"#\",Arow&2&Acol&Crule+1)","v":true},null,null,null,null,null,null,null,null,{"$f":"    SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+4+Iloc,FALSE)))","v":true},null,{"$f":"      SELECT(Acol&255)","v":true},null,null,null,{"$f":"HALT()","v":true},null,{"$f":"SORT(1,Arow&3&Acol&Crule+1,2,Arow&3&Acol&Crule,1,,,2)","v":false},null,null,null,null,null,{"$f":"ELSE()","v":true}]
[null,null,null,null,null,null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&H$7&\" > '\"&Ftype&\"' is not one of the recognized profile formats.\")","v":false},null,null,null,{"$f":"  SELECT(Arow&2&Acol&Crule&Asep&Arow&2&Acol&Crule+1)","v":true},null,null,null,null,null,null,null,null,{"$f":"    SET.NAME(\"Itmp\",FIND(\"|\",Atmp1))","v":true},null,{"$f":"      SORT(1)","v":true},null,null,null,null,null,null,null,null,null,null,null,{"$f":"  DLD_ActivateSheet(S0con)","v":0}]
[{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\"  Welcome to \"&Asyst&\"!\")","v":true},null,null,null,null,null,{"$f":"  SET.NAME(\"ColSam\",MATCH(\"*SPECIMENID\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},{"$f":"  ALERT(\"'\"&Ftype&\"' is not in one of the currently recognized profile formats.\"&Acar&Acar&\"Only worksheets in one of the recognized formats can be converted.\"&Acar&\"Please review the ReadMe worksheet for detailed format requirements.\",2)","v":false},"! Prepare to sort the data",null,null,{"$f":"  ALIGNMENT(3,FALSE,3,0)","v":true},null,null,null,null,null,null,null,null,{"$f":"    IF(NOT(ISERROR(Itmp)))","v":true},null,{"$f":"      SELECT(Acol&256)","v":true},null,null,null,null,null,"! Format",null,null,null,null,null,{"$f":"  DLD_Selectcell(1,1)","v":0}]
[{"$f":"RETURN()","v":true},null,null,null,null,null,{"$f":"  SET.NAME(\"ColLoc\",MATCH(\"*LOCUSNAME\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},{"$f":"  HALT()","v":true},{"$f":"SET.NAME(\"Jcol\",2)","v":true},null,null,{"$f":"  BORDER(1)","v":true},null,null,null,null,null,null,null,null,{"$f":"      SET.NAME(\"Irow0\",LEFT(Atmp1,Itmp-1)*1)","v":true},null,{"$f":"      SORT(1)","v":true},null,null,null,null,null,{"$f":"DLD_ColumnAutofit(Cpara,-1)","v":false},null,null,null,null,null,{"$f":"END.IF()","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColMaj\",MATCH(\"*ALLELEVALUE\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},{"$f":"END.IF()","v":false},{"$f":"FORMULA.ARRAY(99999,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&2&Acol&Icol+Iall-1&Asep&Arow&2&Acol&256,FALSE))","v":true},null,null,null,null,null,null,null,null,null,null,null,{"$f":"      SET.NAME(\"Irow1\",MID(Atmp1,Itmp+1,10)*1)","v":true},null,{"$f":"      FOR(\"Iall\",1,MAX(Itmp,Jtmp),1)","v":true},null,null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":false}]
[null,null,null,null,null,null,{"$f":"  IF(NOT(ISERROR(ColSam+ColLoc+ColMaj)))","v":true},null,{"$f":"FOR(\"Iloc\",1,Nloc,1)","v":true},null,null,"! Rules by Loci",null,null,null,null,null,null,null,null,{"$f":"      SET.NAME(\"Nall\",-1)","v":true},null,{"$f":"        SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Iall&Acol&255&Asep&Arow&Iall&Acol&256,FALSE))","v":true},null,null,null,null,null,null,null,null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&\"  Welcome to \"&Asyst&\"!\")","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ntype\",Ntype+1)","v":true},"! Finish Convert",{"$f":"  SET.NAME(\"Aloc\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci,FALSE)))","v":true},null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&L$7&\" > Summarizing Rules by loci…\")","v":false},null,null,null,null,null,null,null,null,{"$f":"      FOR(\"Irow\",Irow0,Irow1,1)","v":true},null,{"$f":"        SORT(2)","v":true},null,null,null,"! Get the number of alleles at this locus for this sample",null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AC$1&\" > Finished!\")","v":false},null,null,null,null,null,{"$f":"RETURN()","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ftype\",IF(Ntype<1.5,\"\",Ftype&\", \")&\"CODIS\")","v":true},{"$f":"DLD_ActivateSheet(S0con)","v":0},{"$f":"  SET.NAME(\"Nall\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+3,FALSE)))","v":true},null,null,{"$f":"  FOR(\"Iloc\",1,Nloc,1)","v":true},null,null,null,null,null,null,null,null,{"$f":"        SET.NAME(\"Nall\",Nall+1)","v":true},null,{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Iall&Acol&255,FALSE)))","v":true},null,null,null,{"$f":"    SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE)))","v":true},null,{"$f":"RETURN()","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},{"$f":"ECHO(TRUE)","v":true},{"$f":"  SET.NAME(\"Icol\",MATCH(Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&3,FALSE),0))","v":true},null,null,{"$f":"    SET.NAME(\"Nrul1\",0)","v":true},null,null,null,null,null,null,null,null,{"$f":"        SET.NAME(\"Aall\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColMaj,FALSE)))","v":true},null,{"$f":"        SET.NAME(\"Yval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Iall&Acol&256,FALSE)))","v":true},null,null,null,{"$f":"    IF(MaxAll>0)","v":true}]
[null,null,null,null,null,null,{"$f":"  END.IF()","v":true},{"$f":"FORMULA(\"Converted\"&IF(Nchg<0.5,\"\",\": Number duplicate Sample names = \"&Nchg),INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true},{"$f":"  FOR(\"Iall\",1,Nall,1)","v":true},null,null,{"$f":"    SET.NAME(\"Nrul2\",0)","v":true},null,null,null,null,null,null,null,null,{"$f":"        FORMULA(Aall,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Ncol+Nall,FALSE))","v":true},null,{"$f":"        IF(Xval=Yval)","v":true},null,null,null,{"$f":"      SET.NAME(\"Xval\",MAX(Xval,COUNT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColMaj&Asep&Arow&Irow&Acol&ColMaj+MaxAll-1,FALSE))))","v":true}]
[null,null,null,null,null,null,{"$f":"NEXT()","v":true},null,{"$f":"    FORMULA(Jcol+Iall/100,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&2&Acol&Icol+Iall-1,FALSE))","v":true},null,null,{"$f":"    FOR(\"Isam\",1,Nsam,1)","v":true},null,null,null,null,null,null,null,null,{"$f":"      NEXT()","v":true},null,{"$f":"          FORMULA(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol+Iall-1,FALSE))","v":true},null,null,null,{"$f":"    ELSE.IF(NOT(ISERROR(ColPro)))","v":true}]
[null,null,null,null,null,null,null,"! Format for display",{"$f":"  NEXT()","v":true},null,null,{"$f":"      IF(NOT(ISBLANK(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE))))","v":false},null,null,null,null,null,null,null,null,{"$f":"    END.IF()","v":true},null,{"$f":"        ELSE()","v":true},null,null,null,{"$f":"      SET.NAME(\"Aprof\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColPro,FALSE)))","v":false}]
[null,null,null,null,null,null,"! CMF?",{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},{"$f":"  SET.NAME(\"Jcol\",Jcol+Nall)","v":true},null,null,{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE)))","v":false},null,null,null,null,null,null,null,null,{"$f":"  NEXT()","v":true},null,{"$f":"          SET.NAME(\"Atmp\",Xval&\" or \"&Yval)","v":true},null,null,null,{"$f":"      IF(ISERROR(Aprof),SET.NAME(\"Aprof\",\"0\"))","v":false}]
[null,null,null,null,null,null,{"$f":"SET.NAME(\"RowSam\",MATCH(\"Generate CMF\",INDIRECT(\"'\"&S1dat&\"'!\"&Acol&1,FALSE),0))","v":true},{"$f":"DLD_Selectcell(RowBsrt,2)","v":0},{"$f":"NEXT()","v":true},null,null,{"$f":"        IF(ISERROR(FIND(Alsp,Xval)),SET.NAME(\"Nrul1\",Nrul1+1),SET.NAME(\"Nrul2\",Nrul2+1))","v":false},null,null,null,null,null,null,null,null,{"$f":"NEXT()","v":true},null,{"$f":"          FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol+Iall-1,FALSE))","v":true},null,null,null,{"$f":"      SET.NAME(\"Nall\",0)","v":true}]
[null,null,null,null,null,null,{"$f":"IF(NOT(ISERROR(RowSam)))","v":true},null,null,null,null,{"$f":"      END.IF()","v":true},null,null,null,null,null,null,null,null,null,null,{"$f":"          SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol+Iall-1,FALSE))","v":true},null,null,null,{"$f":"      FOR(\"Itmp\",1,LEN(Aprof),1)","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Ntype\",Ntype+1)","v":true},{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&H$7&\" > Finished!\")","v":true},"! Sort the output data",null,null,{"$f":"    NEXT()","v":true},null,null,null,null,null,null,null,null,"! Format",null,{"$f":"          PATTERNS(1,44,0)","v":true},null,null,null,{"$f":"        SET.NAME(\"Atmp\",MID(Aprof,Itmp,1))","v":false}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Ftype\",IF(Ntype<1.5,\"\",Ftype&\", \")&\"Bode\")","v":true},{"$f":"RETURN()","v":true},{"$f":"DLD_ActivateSheet(S0dst)","v":0},null,null,{"$f":"    IF(Nrul1>0.5,FORMULA(Nrul1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+5,FALSE)))","v":true},null,null,null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0dst)","v":false},null,{"$f":"          DLD_ActivateSheet(S0din)","v":false},null,null,null,{"$f":"        IF(Atmp=Alsp,SET.NAME(\"Nall\",Nall+1))","v":false}]
[null,null,null,null,null,null,{"$f":"END.IF()","v":true},null,{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&2&Acol&2&Asep&Arow&3+Nsam&Acol&256,FALSE))","v":true},null,null,{"$f":"    IF(Nrul2>0.5,FORMULA(Nrul2,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Iloc+2&Acol&Cloci+6,FALSE)))","v":true},null,null,null,null,null,null,null,null,{"$f":"DLD_ColumnAutofit(1,-1)","v":false},null,{"$f":"          SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow,FALSE))","v":true},null,null,null,{"$f":"      NEXT()","v":true}]
[null,null,null,null,null,null,null,null,{"$f":"SORT(2,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&2&Acol&2,FALSE),1,,,,1)","v":true},null,null,{"$f":"  NEXT()","v":true},null,null,null,null,null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":false},null,{"$f":"          PATTERNS(1,44,0)","v":true},null,null,null,{"$f":"      SET.NAME(\"Xval\",MAX(Xval,Nall+1))","v":true}]
[null,null,null,null,null,null,"! i-STRess?",null,{"$f":"SET.NAME(\"Icol\",MATCH(99999,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&2,FALSE),0))","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"          DLD_ActivateSheet(S0dst)","v":false},null,null,null,{"$f":"    END.IF()","v":true}]
[null,null,null,null,null,null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},null,{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Acol&Icol&Asep&Acol&256,FALSE))","v":true},null,null,"! Rules by samples and total rule list",null,null,null,null,null,null,null,null,"! Format the summary sheet",null,{"$f":"        END.IF()","v":true},null,null,null,{"$f":"    FORMULA(Xval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Jrow&Acol&Cloci+3,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample ID\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,{"$f":"CLEAR()","v":true},null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&L$7&\" > Summarizing Rules by sample…\")","v":false},null,null,null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":false},null,{"$f":"      NEXT()","v":true},null,null,null,{"$f":"  END.IF()","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColLoc\",MATCH(\"Locus ID\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,{"$f":"SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&2,FALSE))","v":true},null,null,{"$f":"  FOR(\"Isam\",1,Nsam,1)","v":true},null,null,null,null,null,null,null,null,{"$f":"SELECT(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Csamp+5&Asep&Acol&Csamp+4+Nloc,FALSE))","v":true},null,{"$f":"    END.IF()","v":true},null,null,null,{"$f":"NEXT()","v":{"$error":"#VALUE!"}}]
[null,null,null,null,null,null,{"$f":"  IF(NOT(ISERROR(ColSam+ColLoc)))","v":true},null,{"$f":"CLEAR(3)","v":true},null,null,{"$f":"    SET.NAME(\"Nrul1\",0)","v":true},null,null,null,null,null,null,null,null,{"$f":"CLEAR(1)","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ntype\",Ntype+1)","v":true},null,{"$f":"DLD_ColumnAutofit(1,-1)","v":0},null,null,{"$f":"    SET.NAME(\"Nrul2\",0)","v":true},null,null,null,null,null,null,null,null,{"$f":"DLD_ColumnAutofit(Cloci,-1)","v":false},null,"! If possible, copy the rule",null,null,null,"! Format the summary sheet"]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ftype\",IF(Ntype<1.5,\"\",Ftype&\", \")&\"FSSi\")","v":true},null,{"$f":"DLD_Selectcell(1,1)","v":0},null,null,{"$f":"    FOR(\"Iloc\",1,Nloc,1)","v":true},null,null,null,null,null,null,null,null,{"$f":"ECHO(TRUE)","v":true},null,{"$f":"    IF(NOT(ISERROR(ColRul)))","v":true},null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},null,null,null,null,{"$f":"      IF(NOT(ISBLANK(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE))))","v":false},null,null,null,null,null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":false},null,{"$f":"      SET.NAME(\"Jcol\",MATCH(\"R:\"&Aloc,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd,FALSE),0))","v":true},null,null,null,{"$f":"DLD_ColumnAutofit(Cloci,-1)","v":false}]
[null,null,null,null,null,null,{"$f":"  END.IF()","v":true},null,"! Update Status",null,null,{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE)))","v":false},null,null,null,null,null,null,null,null,null,null,{"$f":"      SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S0din&\"'!\"&Arow&Irow&Acol&ColRul,FALSE)))","v":true},null,null,null,{"$f":"ECHO(TRUE)","v":true}]
[null,null,null,null,null,null,{"$f":"NEXT()","v":true},null,{"$f":"FORMULA(NanSrt&Asort,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowSrt&Acol&Cpara+1,FALSE))","v":true},null,null,{"$f":"        IF(ISERROR(FIND(Alsp,Xval)),SET.NAME(\"Nrul1\",Nrul1+1),SET.NAME(\"Nrul2\",Nrul2+1))","v":false},null,null,null,null,null,null,null,null,"! Update status",null,{"$f":"      IF(ISERROR(Atmp1),SET.NAME(\"Atmp1\",\"\"))","v":false},null,null,null,{"$f":"DLD_Selectcell(1,1)","v":false}]
[null,null,null,null,null,null,null,null,null,null,null,{"$f":"      END.IF()","v":true},null,null,null,null,null,null,null,null,{"$f":"FORMULA(NanCon,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true},null,{"$f":"      IF(Atmp1<>\"no rules fired\",FORMULA(Atmp1,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Jcol,FALSE)))","v":false}]
[null,null,null,null,null,null,"! GeneMapper?",null,"! Finish Check",null,null,{"$f":"    NEXT()","v":true},null,null,null,null,null,null,null,null,null,null,{"$f":"    END.IF()","v":true},null,null,null,"! Check for partial profiles"]
[null,null,null,null,null,null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},null,{"$f":"DLD_ActivateSheet(S0con)","v":0},null,null,{"$f":"    IF(Nrul1>0.5,FORMULA(Nrul1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+5,FALSE)))","v":true},null,null,null,null,null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&U$1&\" > Finished!\")","v":true},null,{"$f":"  NEXT()","v":true},null,null,null,{"$f":"SET.NAME(\"Xmin\",MIN(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci+1,FALSE)))","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample Name\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,{"$f":"SELECT(Acol&Coffs&Asep&Acol&256)","v":true},null,null,{"$f":"    IF(Nrul2>0.5,FORMULA(Nrul2,INDIRECT(\"'\"&S0con&\"'!\"&Arow&2+Isam&Acol&Csamp+6,FALSE)))","v":false},null,null,null,null,null,null,null,null,{"$f":"RETURN()","v":true},null,{"$f":"NEXT()","v":true},null,null,null,{"$f":"SET.NAME(\"Xmax\",MAX(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci+1,FALSE)))","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColLoc\",MATCH(\"Marker\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,{"$f":"CLEAR(1)","v":true},null,null,{"$f":"  NEXT()","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(Xmax-Xmin>0.05)","v":true}]
[null,null,null,null,null,null,{"$f":"  IF(NOT(ISERROR(ColSam+ColLoc)))","v":true},null,{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0},null,null,null,null,null,null,null,null,null,null,null,null,null,"! Update status",null,null,null,{"$f":"  SELECT(Arow&3&Acol&Cloci&Asep&Arow&Nloc+2&Acol&Cloci+3)","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Itmp\",MATCH(\"Sample Name\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow&Acol&ColSam+1&Asep&Arow&Irow&Acol&256,FALSE),0))","v":true},null,{"$f":"ECHO(TRUE)","v":true},null,null,"! Total rule list",null,null,null,null,null,null,null,null,null,null,{"$f":"FORMULA(NanCon,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true},null,null,null,{"$f":"  SORT(1,Arow&3&Acol&Cloci+1,1,Arow&3&Acol&Cloci,1,,,2)","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Atmp\",IF(ISERROR(Itmp),\"long\",\"wide\"))","v":true},null,{"$f":"DLD_Selectcell(RowBche,2)","v":0},null,null,{"$f":"  SET.NAME(\"Nrul\",0)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  SET.NAME(\"Itmp\",MATCH(Xmax,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Cloci+1,FALSE),0))","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ntype\",Ntype+1)","v":true},null,null,null,null,{"$f":"  FOR(\"Isam\",1,Nsam,1)","v":true},null,null,null,null,null,null,null,null,null,null,"! Format",null,null,null,{"$f":"  SELECT(Arow&3&Acol&Cloci&Asep&Arow&Itmp-1&Acol&Cloci+3)","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ftype\",IF(Ntype<1.5,\"\",Ftype&\", \")&\"GM-\"&Atmp)","v":true},null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&I$7&\" > Finished!\")","v":true},null,null,{"$f":"    FOR(\"Iloc\",1,Nloc,1)","v":true},null,null,null,null,null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0dst)","v":0},null,null,null,{"$f":"  FONT.PROPERTIES(\"Arial\",\"Regular\",10,,,,,,,3)","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},null,{"$f":"RETURN()","v":true},null,null,{"$f":"      IF(NOT(ISBLANK(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE))))","v":false},null,null,null,null,null,null,null,null,null,null,{"$f":"DLD_ColumnAutofit(1,-1)","v":0},null,null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AA$1&\" > Not all loci equally represented\")","v":false}]
[null,null,null,null,null,null,{"$f":"  END.IF()","v":true},null,null,null,null,{"$f":"        SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&RowStd+Isam&Acol&Coffs+Iloc,FALSE)))","v":false},null,null,null,null,null,null,null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":0},null,null,null,{"$f":"  SET.NAME(\"Atmp\",ALERT(\"Some loci are specified more often than others.\"&Acar&Acar&\"Click 'OK' to contine, 'Cancel' to stop and regroup.\",1))","v":false}]
[null,null,null,null,null,null,{"$f":"NEXT()","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  IF(NOT(Atmp))","v":true}]
[null,null,null,null,null,null,null,null,null,null,null,"! Single rule",null,null,null,null,null,null,null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&W$1&\" > Finished!\")","v":true},null,null,null,{"$f":"    FORMULA(\"Data problems\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false}]
[null,null,null,null,null,null,"! Fragment Profiler",null,null,null,null,{"$f":"        IF(ISERROR(FIND(Alsp,Xval)))","v":false},null,null,null,null,null,null,null,null,null,null,{"$f":"RETURN()","v":true},null,null,null,{"$f":"    ALERT(\"Aborting analysis.\"&Acar&Acar&\"Identify and correct profiles and try again.\",2)","v":false}]
[null,null,null,null,null,null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},null,null,null,null,{"$f":"          SET.NAME(\"Nrul\",Nrul+1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"    DLD_Selectcell(RowBfet,2)","v":false}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample Name\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,{"$f":"          FORMULA(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Nrul&Acol&Coffs+Nloc+2,FALSE))","v":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"    HALT()","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColLoc\",MATCH(\"RangeName\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  END.IF()","v":false}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Itmp\",MATCH(\"Allele1\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,"! Multiple rules",null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"END.IF()","v":true}]
[null,null,null,null,null,null,{"$f":"  IF(NOT(ISERROR(ColSam+ColLoc+Itmp)))","v":true},null,null,null,null,{"$f":"        ELSE()","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ntype\",Ntype+1)","v":true},null,null,null,null,{"$f":"          SET.NAME(\"Yval\",Xval&Alsp)","v":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,"! Check for non-unique samples"]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ftype\",\"Fragment Profiler\")","v":true},null,null,null,null,{"$f":"          SET.NAME(\"Ntmp\",LEN(Xval))","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"SET.NAME(\"Xmin\",MIN(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Csamp+1,FALSE)))","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},null,null,null,null,{"$f":"          SET.NAME(\"Istr\",1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"SET.NAME(\"Xmax\",MAX(INDIRECT(\"'\"&S0con&\"'!\"&Acol&Csamp+1,FALSE)))","v":true}]
[null,null,null,null,null,null,{"$f":"  END.IF()","v":true},null,null,null,null,{"$f":"          FOR(\"Itmp\",1,Ntmp,1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"IF(Xmax-Xmin>0.05)","v":true}]
[null,null,null,null,null,null,{"$f":"NEXT()","v":true},null,null,null,null,{"$f":"            SET.NAME(\"Itmp\",FIND(Alsp,Yval,Istr))","v":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  SELECT(Arow&3&Acol&Csamp&Asep&Arow&Nsam+2&Acol&Csamp+3)","v":true}]
[null,null,null,null,null,null,null,null,null,null,null,{"$f":"            SET.NAME(\"Atmp\",MID(Yval,Istr,Itmp-Istr))","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  SORT(1,Arow&3&Acol&Csamp+1,2,Arow&3&Acol&Csamp,1,,,2)","v":true}]
[null,null,null,null,null,null,"! Vertical?",null,null,null,null,{"$f":"            SET.NAME(\"Istr\",Itmp+1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  SET.NAME(\"Itmp\",MATCH(Xmin,INDIRECT(\"'\"&S0con&\"'!\"&Acol&Csamp+1,FALSE),0))","v":true}]
[null,null,null,null,null,null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},null,null,null,null,{"$f":"            SET.NAME(\"Nrul\",Nrul+1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  SELECT(Arow&3&Acol&Csamp&Asep&Arow&Itmp-1&Acol&Csamp+3)","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample Info\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,{"$f":"            FORMULA(Atmp,INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Nrul&Acol&Coffs+Nloc+2,FALSE))","v":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  FONT.PROPERTIES(\"Arial\",\"Regular\",10,,,,,,,3)","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColLoc\",MATCH(\"Marker\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,{"$f":"          NEXT()","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AA$1&\" > Not all samples equally represented\")","v":false}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Itmp\",MATCH(\"Allele 1\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,{"$f":"        END.IF()","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  SET.NAME(\"Atmp\",ALERT(\"Some samples have more records than others.\"&Acar&\"Be warned that only the first \"&Xmin&\" records of each sample will be processed.\"&Acar&Acar&\"Click 'OK' to contine, 'Cancel' to stop and regroup.\",1))","v":false}]
[null,null,null,null,null,null,{"$f":"  IF(NOT(ISERROR(ColSam+ColLoc+Itmp)))","v":true},null,null,null,null,{"$f":"      END.IF()","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  IF(NOT(Atmp))","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ntype\",Ntype+1)","v":true},null,null,null,null,{"$f":"    NEXT()","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"    FORMULA(\"Data problems\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ftype\",\"Vertical\")","v":true},null,null,null,null,{"$f":"  NEXT()","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"    ALERT(\"Aborting analysis.\"&Acar&Acar&\"Make sure all samples have unique identifiers and try again.\",2)","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"    DLD_Selectcell(RowBfet,2)","v":false}]
[null,null,null,null,null,null,{"$f":"  END.IF()","v":true},null,null,null,null,"! Sort rules",null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"    HALT()","v":true}]
[null,null,null,null,null,null,{"$f":"NEXT()","v":true},null,null,null,null,{"$f":"  DLD_ActivateSheet(S0dst)","v":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"  END.IF()","v":false}]
[null,null,null,null,null,null,null,null,null,null,null,{"$f":"  SELECT(INDIRECT(\"'\"&S0dst&\"'!\"&Acol&Coffs+Nloc+2,FALSE))","v":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"END.IF()","v":true}]
[null,null,null,null,null,null,"! Horizontal?",null,null,null,null,{"$f":"  SORT(1)","v":true}]
[null,null,null,null,null,null,{"$f":"FOR(\"Irow\",RowFst,RowLst,1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"! Update status"]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColSam\",MATCH(\"Sample Info\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,"! Have we seen this before?",null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"FORMULA(\"Valid Structure\",INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowCon&Acol&Cpara+1,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"ColLoc\",MATCH(\"Marker\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,{"$f":"  SET.NAME(\"Nrul1\",0)","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Itmp\",MATCH(\"Locus ID\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,{"$f":"  FOR(\"Irul\",1,Nrul,1)","v":true},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&AA$1&\" > Finished!\")","v":false}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Jtmp\",MATCH(\"Allele 1\",INDIRECT(\"'\"&S1dat&\"'!\"&Arow&Irow,FALSE),0))","v":true},null,null,null,null,{"$f":"    SET.NAME(\"Xval\",DEREF(INDIRECT(\"'\"&S0dst&\"'!\"&Arow&Irul&Acol&Coffs+Nloc+2,FALSE)))","v":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"RETURN()","v":true}]
[null,null,null,null,null,null,{"$f":"  IF(AND(ISERROR(ColLoc),ISERROR(Itmp),ISERROR(Jtmp),NOT(ISERROR(ColSam))))","v":true},null,null,null,null,{"$f":"    SET.NAME(\"Itmp\",MATCH(Xval,INDIRECT(\"'\"&S0dst&\"'!\"&Acol&Coffs+Nloc+2,FALSE),1))","v":false}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ntype\",Ntype+1)","v":true},null,null,null,null,{"$f":"    SET.NAME(\"Nrul1\",Nrul1+1)","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Ftype\",\"Horizontal\")","v":true},null,null,null,null,{"$f":"    FORMULA(Xval,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nrul1+2&Acol&Crule,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Irow\",RowLst+1)","v":true},null,null,null,null,{"$f":"    FORMULA(Itmp-Irul+1,INDIRECT(\"'\"&S0con&\"'!\"&Arow&Nrul1+2&Acol&Crule+1,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"  END.IF()","v":true},null,null,null,null,{"$f":"    SET.NAME(\"Irul\",Itmp)","v":true}]
[null,null,null,null,null,null,{"$f":"NEXT()","v":true},null,null,null,null,{"$f":"  NEXT()","v":true}]
[]
[null,null,null,null,null,null,"! NIST?",null,null,null,null,"! Sort it"]
[null,null,null,null,null,null,{"$f":"SET.NAME(\"RowHed\",MATCH(\"SampleCode\",INDIRECT(\"'\"&S1dat&\"'!C1\",FALSE),0))","v":true},null,null,null,null,{"$f":"  DLD_ActivateSheet(S0con)","v":false}]
[null,null,null,null,null,null,{"$f":"IF(NOT(ISERROR(RowHed)))","v":true},null,null,null,null,{"$f":"  SELECT(Arow&3&Acol&Crule&Asep&Arow&Nrul+2&Acol&Crule+1)","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Ntype\",Ntype+1)","v":true},null,null,null,null,{"$f":"  SORT(1,Arow&3&Acol&Crule+1,2,Arow&3&Acol&Crule,1,,,2)","v":true}]
[null,null,null,null,null,null,{"$f":"  SET.NAME(\"Ftype\",\"NISTcompact\")","v":true}]
[null,null,null,null,null,null,{"$f":"  FOR(\"Icol\",2,ColLst-1,1)","v":true},null,null,null,null,"! Format"]
[null,null,null,null,null,null,{"$f":"    SET.NAME(\"Atmp\",DEREF(INDIRECT(\"'\"&S1dat&\"'!\"&Arow&RowHed&Acol&Icol,FALSE)))","v":true},null,null,null,null,{"$f":"DLD_ColumnAutofit(Cpara,Cpara+1)","v":0}]
[null,null,null,null,null,null,{"$f":"    IF(ISERROR(Atmp),SET.NAME(\"Atmp\",0))","v":false},null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":false}]
[null,null,null,null,null,null,{"$f":"    IF(Atmp=0)","v":true},null,null,null,null,{"$f":"END.IF()","v":true}]
[null,null,null,null,null,null,{"$f":"      SET.NAME(\"Icol\",ColLst+1)","v":true}]
[null,null,null,null,null,null,{"$f":"    ELSE()","v":true},null,null,null,null,"! Update Status"]
[null,null,null,null,null,null,{"$f":"      FOR(\"Jcol\",Icol+1,ColLst,1)","v":true},null,null,null,null,{"$f":"FORMULA(NanChe&IF(Nodd<0.5,\"\",\": Number ambiguous alleles = \"&Nodd),INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowChe&Acol&Cpara+1,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"        SET.NAME(\"Atmp1\",DEREF(INDIRECT(\"'\"&S1dat&\"'!\"&Arow&RowHed&Acol&Jcol,FALSE)))","v":true}]
[null,null,null,null,null,null,{"$f":"        IF(Atmp1=Atmp)","v":true},null,null,null,null,"! Finish Check"]
[null,null,null,null,null,null,{"$f":"          SET.NAME(\"Ftype\",\"NISTstandard\")","v":true},null,null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":0}]
[null,null,null,null,null,null,{"$f":"          SET.NAME(\"Icol\",ColLst+1)","v":true},null,null,null,null,{"$f":"DLD_ColumnAutofit(Cpara-1,-1)","v":0}]
[null,null,null,null,null,null,{"$f":"          SET.NAME(\"Jcol\",ColLst+1)","v":true},null,null,null,null,{"$f":"ECHO(TRUE)","v":true}]
[null,null,null,null,null,null,{"$f":"        END.IF()","v":true},null,null,null,null,{"$f":"DLD_Selectcell(RowBcon,2)","v":0}]
[null,null,null,null,null,null,{"$f":"      NEXT()","v":true}]
[null,null,null,null,null,null,{"$f":"    END.IF()","v":true},null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&L$7&\" > Finished!\")","v":true}]
[null,null,null,null,null,null,{"$f":"  NEXT()","v":true},null,null,null,null,{"$f":"RETURN()","v":true}]
[null,null,null,null,null,null,{"$f":"END.IF()","v":true}]
[]
[null,null,null,null,null,null,"! Store the type and status"]
[null,null,null,null,null,null,{"$f":"SET.NAME(\"Fstat\",IF(Ntype<0.5,\"Unknown\",IF(Ntype>1.5,\"Ambiguous\",\"Known\"))&\" format\")","v":true}]
[null,null,null,null,null,null,{"$f":"FORMULA(Ftype,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFmt&Acol&Cpara+1,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"FORMULA(Fstat,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara+1,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":0}]
[null,null,null,null,null,null,{"$f":"DLD_ColumnAutofit(Cpara-1,Cpara+1)","v":0}]
[]
[null,null,null,null,null,null,{"$f":"ECHO(TRUE)","v":true}]
[null,null,null,null,null,null,{"$f":"DLD_Selectcell(RowBfet,2)","v":0}]
[null,null,null,null,null,null,{"$f":"ECHO(FALSE)","v":true}]
[]
[null,null,null,null,null,null,"! Tell about unrecognized format"]
[null,null,null,null,null,null,{"$f":"IF(UPPER(LEFT(Fstat))=\"U\")","v":true}]
[null,null,null,null,null,null,{"$f":"  DLD_ActivateSheet(S1dat)","v":false}]
[null,null,null,null,null,null,{"$f":"  DLD_Selectcell(1,1)","v":false}]
[null,null,null,null,null,null,{"$f":"  ECHO(TRUE)","v":true}]
[null,null,null,null,null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7&\" > This worksheet is not one of the recognized profile formats.\")","v":true}]
[null,null,null,null,null,null,{"$f":"  ALERT(\"This worksheet is not in one of the currently recognized profile formats.\"&Acar&Acar&\"Please review the 'ReadMe' worksheet for detailed format information.\"&Acar&\"If you believe that this format should be supported, please send the file to david.duewer@nist.gov.\",2)","v":true}]
[null,null,null,null,null,null,{"$f":"  HALT()","v":true}]
[null,null,null,null,null,null,{"$f":"END.IF()","v":false}]
[]
[null,null,null,null,null,null,"! Tell about ambiguous formats"]
[null,null,null,null,null,null,{"$f":"IF(UPPER(LEFT(Fstat))=\"A\")","v":true}]
[null,null,null,null,null,null,{"$f":"  DLD_ActivateSheet(S1dat)","v":false}]
[null,null,null,null,null,null,{"$f":"  DLD_Selectcell(1,1)","v":false}]
[null,null,null,null,null,null,{"$f":"  ECHO(TRUE)","v":true}]
[null,null,null,null,null,null,{"$f":"  MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7&\" > The format of this worksheet (\"&Ftype&\") is ambiguous.\")","v":false}]
[null,null,null,null,null,null,{"$f":"  ALERT(\"This worksheet has the essential characteristics of two or more known formats: \"&Ftype&\".\"&Acar&Acar&\"It is likely that the worksheet is a composite of several formats.\"&Acar&\"You should dissect the component parts into separate sheets and try again.\",2)","v":false}]
[null,null,null,null,null,null,{"$f":"  HALT()","v":true}]
[null,null,null,null,null,null,{"$f":"END.IF()","v":false}]
[]
[null,null,null,null,null,null,"! Copy the data"]
[null,null,null,null,null,null,{"$f":"COPY(INDIRECT(\"'\"&S1dat&\"'!\"&Acol&1&Asep&Acol&256,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0din)","v":0}]
[null,null,null,null,null,null,{"$f":"SELECT(INDIRECT(\"'\"&S0din&\"'!\"&Arow&1&Acol&1,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"PASTE.SPECIAL(3)","v":true}]
[null,null,null,null,null,null,{"$f":"DLD_ColumnAutofit(1,-1)","v":0}]
[null,null,null,null,null,null,{"$f":"ZOOM(ZoomSet)","v":true}]
[null,null,null,null,null,null,{"$f":"DLD_Selectcell(1,1)","v":0}]
[]
[null,null,null,null,null,null,"! Close the source file"]
[null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S1dat)","v":0}]
[null,null,null,null,null,null,{"$f":"ERROR(FALSE)","v":true}]
[null,null,null,null,null,null,{"$f":"  CLOSE(FALSE)","v":true}]
[null,null,null,null,null,null,{"$f":"ERROR(TRUE)","v":true}]
[]
[null,null,null,null,null,null,"! Finish Fetch"]
[null,null,null,null,null,null,{"$f":"DLD_ActivateSheet(S0con)","v":0}]
[null,null,null,null,null,null,{"$f":"FORMULA(NanFet,INDIRECT(\"'\"&S0con&\"'!\"&Arow&RowFet&Acol&Cpara+1,FALSE))","v":true}]
[null,null,null,null,null,null,{"$f":"DLD_ColumnAutofit(Cpara,Cpara+1)","v":0}]
[null,null,null,null,null,null,{"$f":"ECHO(TRUE)","v":true}]
[null,null,null,null,null,null,{"$f":"DLD_Selectcell(RowBcon,2)","v":0}]
[]
[null,null,null,null,null,null,{"$f":"MESSAGE(TRUE,TEXT(NOW(),AlngDatTim)&Msub0&G$7&\" > Finished!\")","v":true}]
[null,null,null,null,null,null,{"$f":"RETURN()","v":true}]

{"sheet":"InData","index":2,"n_rows":0,"n_cols":0,"rows_kept":0,"cut":false,"hidden":false,"merged":[]}

{"sheet":"OutCmp","index":3,"n_rows":0,"n_cols":0,"rows_kept":0,"cut":false,"hidden":false,"merged":[]}

{"sheet":"OutStd","index":4,"n_rows":0,"n_cols":0,"rows_kept":0,"cut":false,"hidden":false,"merged":[]}

{"sheet":"Introduction","index":5,"n_rows":89,"n_cols":4,"rows_kept":89,"cut":false,"hidden":false,"merged":[[78,3,78,4],[83,3,84,4],[80,3,81,4],[72,3,73,4],[1,0,33,0],[20,2,20,4],[1,2,1,4],[2,2,2,4],[13,2,13,4],[19,2,19,4],[21,2,21,4],[66,3,68,4],[60,3,65,4],[56,3,58,4],[3,2,3,4],[5,2,5,4],[16,2,16,4],[11,2,11,4],[12,2,12,4],[24,2,24,4],[23,2,23,4],[75,3,76,4],[0,2,0,4],[6,2,9,4],[52,3,54,4],[14,2,14,4],[15,2,15,4],[25,3,26,3],[22,2,22,4],[17,2,17,4],[44,3,48,4],[29,2,29,4],[43,2,43,4],[69,3,70,4],[30,3,32,3],[50,3,50,4],[28,2,28,4]]}
[null,null,"Welcome to STR_ConvertFormats!"]
["STR_ConvertFormats was developed by David Duewer, Analytical Chemical Division, NIST,\nwith advice and support from the Applied Genetics group, Biochemical Science Division."]
[null,null,"STR_ConvertFormats converts STR profiles stored in a variety of Excel worksheet formats to a single \"standard\" form."]
[null,null,"Development of STR_ConvertFormats was funded in part by the National Institute of Justice."]
[]
[null,null,"From what formats…"]
[null,null,"STR_ConvertFormats currently accepts one-locus per row output from FSSi and GeneMapper, multiple-loci per row output from Genemapper, one-locus per row output from two \"homebuilt\" and one-row per sample output from three \"homebuilt\" systems.  Other formats can be added at need."]
[]
[]
[]
[]
[null,null,"To what format…"]
[null,null,"STR_ConvertFormats converts all profiles to a compact one-sample per row / one-column per allele per locus format."]
[]
[null,null,"Problems?"]
[null,null,"This is the first release: there will be problems!"]
[null,null,"Please repeat whatever caused the blowup a couple of times and note down all symptoms and error messages."]
[null,null,"Email the description to david.duewer@nist.gov"]
[]
[]
[null,null,"Getting Started"]
[null,null," STR_ConvertFormats is designed to be operated by \"pushing buttons.\"  All functions are available on the ControlPanel worksheet."]
[null,null,"The ReadMe worksheet documents the functions, abbreviations and file formats as well as giving a few usage tips."]
[null,null,"If you haven't used STR_ConvertFormats before, please…"]
[]
[]
[]
[]
[null,null,"…but the best way to learn the tool is to 1) download the demo-data workbook and 2) start pushing buttons!"]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[null,null,"History"]
[null,null,"2006-12-01","The Human Identity Project team at NIST used, with varying degrees of ease and success, a number of special-purpose format conversion systems over the past few years.  Responding to requests from the forensic human identity community for access to these utilities, work began on cobbling together these \"bits and pieces\" of purpose-built code into a (hopefully) more robust and user-friendly system designed for public release. "]
[]
[]
[]
[]
[]
[null,null,"2006-12-20","Beta version released on an unsuspecting world."]
[]
[null,null,"2007-01-01","Thanks to Becky Hill (NIST's HIP team) and Scott Nagy (Cal DOJ), several \"user-abuser\" issues were addressed, mostly by changes to the Introduction and ReadMe worksheets.  I also found and corrected a couple of just-plain-bugs."]
[]
[]
[]
[null,null,"2007-04-05","Two simplified formats, \"Horizontal\" and \"Vertical\", were added to make life easier for Tom Reid, DNA Diagnostics Center, Fairfield OH. Files in these formats contain only \"Sample Info\", the locus names, and the allelic values.  These formats are detailed in the ReadMe worksheet."]
[]
[]
[]
[null,null,"2007-06-12","Thanks to Tom Heylen (DNA Laboratory of the National Institute of Criminalistics and Criminology, Brussels Belgium), changes in the way \"fractional alleles\" are managed have been made to enable use of this program with Excel versions that use \",\" rather than \".\" as the decimal point.  Tom also identified a number of bugs related to the \"Horizontal\" and \"Vertical\" format descriptions.  And, while fixing things, several cosmetic bugs were squashed."]
[]
[]
[]
[]
[]
[null,null,"2009-09-17","Sometime ago, started to add a \"Bode\" format.  Most of it seems to be there, but was left incomplete.  It now \"Alerts\" and stops with an error message."]
[]
[]
[null,null,"2010-01-27","\"Zero\" alleles now treated as blanks.  Rather than stopping with message when an out-of-sequence action is requested, required action is automatically invoked.  Added calls to engineering controls.  "]
[]
[]
[null,null,"2010-07-15","Added \"CODIS\" format at request of Pete Vallone.  Fixed a sorting bug (strange things happen when you try to sort a single cell) that mostly impacted re-converting \"NIST\" output formats."]
[]
[]
[null,null,"2010-07-21","Added locus-name sort at request of Pete Vallone.  Fixed a bug identified by Erica Butts that impacted any \"wide\" file that contained three-or-more records with the same sample-name."]
[]
[]
[null,null,"2010-08-05","Sort-orders for most multiplex kits added by Becky Hill.  The logic used to select which sort-order was improved."]
[]
[null,null,"2010-08-13","Fixed a \"hole\" in allele name standardization - blanks are now automatically removed.  Changed the allele color-coding: single alleles are now yellow, oddities are magenta."]
[]
[]
[null,null,"2012-02-28","Added \"Fragment Profiler\" format at request of Ana Cândida M. Saraiva Bruno, BIOGENETICS TECNOLOGIA MOLECULAR LTDA, Brazil.  This is a simple variant of the 'Vertical' format."]
[]
[]
[null,null,"2015-03-10","Updated to work with more modern Office systems and to expect .xlsx input"]
[]
[null,null,"2017-10-05","Added YfilerPlus"]

{"sheet":"ReadMe","index":6,"n_rows":112,"n_cols":16,"rows_kept":112,"cut":false,"hidden":false,"merged":[[61,6,61,7],[59,8,59,9],[60,8,60,9],[61,8,61,9],[61,4,61,5],[60,6,60,7],[51,1,51,8],[52,1,52,8],[59,4,59,5],[60,4,60,5],[59,6,59,7],[58,4,58,5],[58,8,58,9],[55,3,55,15],[53,1,53,8],[58,6,58,7],[43,1,43,8],[42,1,42,9],[45,1,45,8],[40,3,40,15],[50,1,50,8],[49,1,49,8],[47,1,47,5],[44,1,44,8],[46,1,46,8],[48,1,48,5],[33,3,33,15],[34,3,34,15],[35,3,35,15],[15,3,15,15],[12,3,12,15],[14,3,14,15],[22,3,22,15],[23,3,23,15],[25,3,25,15],[26,3,26,15],[27,3,27,15],[28,3,28,15],[29,3,29,15],[5,3,5,15],[1,3,1,15],[2,3,2,15],[3,3,3,15],[4,3,4,15],[6,3,6,15],[7,3,7,15],[8,3,8,15],[9,3,9,15],[10,3,10,15],[39,3,39,15],[38,3,38,15],[37,3,37,15],[11,3,11,15],[13,3,13,15],[17,3,17,15],[18,3,18,15],[19,3,19,15],[24,3,24,15],[30,3,30,15],[36,3,36,15],[16,3,16,15],[31,3,31,15],[20,3,20,15],[21,3,21,15],[32,3,32,15]]}
[]
[null,"ControlPanel Commands",null,"ControlPanel Summary Information"]
[null,"All of the STR_ConvertFormats commands are accessed from the ControlPanel worksheet.",null,"Columns D and E of the ControlPanel worksheet list several key attributes of the 'Fetch'ed worksheet…"]
[null,null,null,"  Directory: The complete directory path for the selected workbook"]
[null,"There are currently twelve commands, each accessed from it's own Command Button:",null,"  Workbook: The name of the selected workbook"]
[null,"  Do It All: Attempts to execute the following eight commands in sequential order",null,"  Worksheet: The name of the selected worksheet"]
[null,"    Clear: Clears all status reports and working data.",null,"  Format: The format of the DNA profile data on the selected worksheet"]
[null,"    Fetch: Allows user to specify a particular worksheet, identifies its format and copies it to the working InData worksheet."]
[null,"    Convert: Converts data on the InData worksheet into the NISTstandard format on the OutStd worksheet.",null,"Columns D and E also list the status of the component operations…."]
[null,"    LocSort: Standardizes the locus names and sorts them into a specified order on the OutStd worksheet.",null,"  Clear: Will either be empty or 'Cleared'"]
[null,"    Check: Evaluates the OutStd worksheet for unrecognized alleles and, when possible for ambiguously specified alleles.",null,"  Fetch: Will be empty, 'Evaluating', 'Invalid format', 'Unknown format', 'Ambiguous format', 'Known format' or 'Fetched'"]
[null,"    Compact: Converts the NISTstandard alleles in the OutStd worksheet to NISTcompact profiles in the OutCmp worksheet.",null,"  Convert: Will be empty, 'Valid structure', 'Invalid FSSi format', 'Invalid GeneMapper format', 'Invalid NIST format', 'Data problems' or 'Fetched'"]
[null,"    StoreStd: Moves the OutStd data back into the workbook from whence it came, under the same name but with '_NISTs' tacked on.",null,"  LocSort: Will be empty or 'Sorted by: xxx' where xxx is 'Alphabetical', 'PP16', or whatever option you have specified on the SortOrder worksheet."]
[null,"    StoreCmp: Moves the OutCmp data back into the workbook from whence it came, under the same name but with '_NISTc' tacked on.",null,"  Check: Will be empty or 'Checked'"]
[null,null,null,"  Compact: Will be empty or 'Compacted'"]
[null,"  Exit: Gracefully exits the STR_ConvertFormats system.",null,"  StoreStd: Will be empty or 'Stored: xxx' where xxx is the [workbook]worksheet where the NIST-standard output lives."]
[null,null,null,"  StoreCmp: Will be empty or 'Stored: xxx' where xxx is the [workbook]worksheet where it the NIST-compact output lives."]
[null,"  SortOrder: Sets the order in which the loci are listed in the output data sheets."]
[null,"  ReadMe: Activates this workseet.",null,"For each locus specified, the following summary information about the data set is displayed, starting in column G…"]
[null,null,null,"  Code: The locus name (currently completely unchecked, so you may have to edit them yourself if you wish to combine across formats)."]
[null,"The Do It All command is all you really need.  However, there can be ambiguities and oddities in the format of the original data.",null,"  #Samp: The number of samples (potentially) specified at this locus."]
[null,"The individual Clear, Fetch, Convert, LocSort, Check, Compact, StoreStd, and StoreCmp commands that comprise Do It All ",null,"  Col0:  The first column that holds data."]
[null," can help if you need to correct some identified problem.  For example:",null,"  #Alle: The maximum number of alleles specified in any sample."]
[null,"    If the format of the 'Fetch'ed data on the InData worksheet is ambiguous or unknown, you may be able to make it recognizable by correcting",null,"  #?: The total number of ambiguously specified alleles for this locus."]
[null,"        the spelling of the key header components (see below).  You can then proceed to Convert, Check, and StoreStd the modified data.",null,"  1rule: Only shown for FSSi format data listing evaluation rules, the number of samples where one and only one FSSi rule fired."]
[null,"        Likewise,  'ladder' or 'control' samples can be deleted from the InData worksheet.",null,"  2rule+: Only shown for FSSi format data listing evaluation rules, the number of samples where at least two FSSi rules fired."]
[null,"    If ambiguous alleles are encountered (differences between FSSi allele and profile specifications and any allele that’s not a number, 'X' or 'Y'),"]
[null,"        you can correct the alleles on the OutStd worksheet and proceed to Check and StoreStd the modified data.",null,"For each sample specified, the following summary information about the data set is displayed, starting in column M (if FSSi with rules, O)…"]
[null,null,null,"  Code: The locus name (currently completely unchecked, so you may have to edit them yourself if you wish to combine across formats)."]
[null,"Instructions for SortOrder go here",null,"  #Loci: The number of loci (potentially) specified for this sample."]
[null,null,null,"  Row0:  The first row that holds data for this sample."]
[null,null,null,"  #Rows: The number of rows of data for this sample."]
[null,null,null,"  #?: The total number of ambiguously specified alleles for this sample."]
[null,"Valid and Ambiguous Allelic Designations",null,"  1rule: Only shown for FSSi format data listing evaluation rules, the number of loci where one and only one FSSi rule fired."]
[null,"STR_ConvertFormats expects alleles to be specified as: (1) any numeric value; (2) X, Y, or O; or (3) \"missing\".",null,"  2rule+: Only shown for FSSi format data listing evaluation rules, the number of loci where at least two FSSi rules fired."]
[null,"Missing values can be designated as an empty cell, 0, \"NA\", \"ND\", \"-\", \"*\", or \"?\"."]
[null,"Any allelic designation that is not one of the expected forms (e.g., one that contains \"OL\", \">\" or \"<\") is considered to be \"ambiguous\".",null,"For FSSi format data listing evaluation rules, the rules fired are summarized starting in column W."]
[null,null,null,"  Code: The rule as displayed in the FSSi worksheet."]
[null,"Ambiguous alleles also arise when the input format has two sets of allelic definitions (see FSSi, below) that do not exactly match. ",null,"  #: The total number of times that rule was fired for any sample at any locus in the data set."]
[null,"Such ambiguities are represented with a hybrid designation that lists the possible alleles: e.g., \"0 or 15\"."]
[]
[]
[null,"Correcting \"Ambiguous Alleles\" - Now or Later, It (Probably) Must Be Done"]
[null,"On completion, the Check command lists the number of ambiguous alleles in OutStd.  As far as STR_ConvertFormats is concerned, you do not need to correct ambiguities."]
[null,"StoreStd and StoreCmp do warn of their presence but they will cheerfully store things as-they-are if you tell them to go on about their business."]
[]
[null,"However, STR_MatchSamples does require unambiguous designations and it is (probably) better to fix things before using StoreStd or StoreCmp.  The original data (in InData) may facilitate resolving some ambiguities."]
[null,"The affected loci and samples are identified  in the ControlPanel's #? Columns.  The background color of the cells in OutStd and OutCmp that contain the ambiguous data is set to: ",null,null,null,null,"magenta."]
[null,"Note: the background color of the cells in OutStd and OutCmp that contain singleton alleles data is set to: ",null,null,null,null,"yellow"]
[]
[null,"You can correct each of the flagged alleles individually by editing the cell's current contents, entering a brand spanky new value, or by use of Excel's Replace… function."]
[null,"Replace… is particularly useful if there are a number of similar ambiguities that can be corrected with a single 'change this-to-that' command; it can be accessed from the Edit menu or can be invoked with the <Ctrl-h> shortcut."]
[null,"After you have corrected everything, re-run Check and see if it finds all of your corrections acceptable.  If it does, StoreStd and StoreCmp will do your bidding without further complaint."]
[]
[]
[null,"Recognized Formats",null,"Example Formats"]
[null,"The following formats are currently recognized…"]
[]
[null,"  CODIS: A 'long'-style format with one allele specified per row.",null,null,"Col A",null,"Col B",null,"Col C"]
[null,"    The header record is recognized by the presence of *SPECIMENID, *LOCUSNAME, and *ALLELEVALUE in a row.",null,"Row n","ns1:SPECIMENID",null,"ns1:LOCUSNAME",null,"ns1:ALLELEVALUE"]
[null,"    All other columns are ignored. Column specifications can be in any order.",null,"Row n+1","aaaa",null,"AMEL",null,"X"]
[null,"    Specimen ids, locus names, and alleles can be in any order.",null,"Row n+2","aaaa",null,"AMEL",null,"Y"]
[null,null,null,"…"]
[]
[null,"  FSSi: A 'long'-style format with one locus specified per row.",null,null,"Col m","Col m+1","Col m+2","Col m+3","Col m+4","Col m+5","Col m+6","Col m+7","Col m+8","Col m+9","Col m+10","…"]
[null,"    The header record is recognized by the presence of Sample ID and Locus ID in a row.",null,"Row n","Batch ID","Sample ID","Locus ID","Major Designation 1","Major Designation 2","Minor Designation 1","Minor Designation 2","i-STRess Major","i-STReam Major","i-STReam Minor","Rules Fired"]
[null,"    The alleles can be specified one-per-column, starting at Major Designation 1 and continuing for all columns containing Designation",null,"Row n+1","-","aaaa","D3S1358",15,16,"F","F","15,16","-","-","no rules fired"]
[null,"     and/or they can be specified in the I-STRess Major column.  One or the other of the specifications is required.",null,"Row n+2","-","aaaa","TH01",6,8,10,"F","6,8","-","-","no rules fired"]
[null,"     Any rules that fired will be summarized if there is a Rules Fired header, but this header is not required to be present.",null,"…"]
[]
[]
[null,"  GeneMapper-long: A 'long-style' format with one locus specified per row.",null,null,"Col m","Col m+1","Col m+2","Col m+3","Col m+4","…"]
[null,"    The header record is recognized by the presence of Sample Name and Marker in a row.",null,"Row n","Sample Name","Marker","Dye","Allele 1","Allele 2"]
[null,"    The 'long' style is recognized by the presence of only one Sample Name in the header row.",null,"Row n+1","bbbb","D8S1179","B",10,15]
[null,"    The alleles are specified one-per-column, starting at Allele 1 and continuing for all columns containing Allele.",null,"Row n+2","bbbb","D21S11","B",29,29]
[null,null,null,"…"]
[]
[null,"  GeneMapper-wide: A 'wide-style' format with one row per sample and one column for each allele of the locus.",null,null,"Col m","Col m+1","Col m+2","Col m+3","Col m+4","Col m+5","Col m+6","Col m+7","…"]
[null,"    The header record is recognized by the presence of Sample Name and Marker in a row.",null,"Row n","Sample Name","Marker","Allele 1","Allele 2","Sample Name","Marker","Allele 1","Allele 2"]
[null,"    The 'wide' style is recognized by the presence of more than one Sample Name in the header row.",null,"Row n+1","cccc","D8S1179",10,15,"cccc","D21S11",29,29]
[null,"    Each locus is recognized by the location of the Marker headers in the header row.",null,"Row n+2","dddd","D8S1179",11,13,"dddd","D21S11",28,31.2]
[null,"    The alleles are specified one-per-column, starting at the column to the right of each Marker and continuing for all columns containing Allele.",null,"…"]
[]
[null,"  Fragment Profiler: A 'long'-style format with one locus specified per row.",null,null,"Col m","Col n","Col o","Col o+1","Col o+…","…"]
[null,"    The header record is recognized by the presence of 'Sample Name', 'Rangename', and 'Allele1' in a row.",null,"Row n","Sample Name","RangeName","Allele1","Allele2","Allele …"]
[null,"    The alleles are specified one-per-column, starting at 'Allele1' and continuing to the right for all columns containing Allele.",null,"Row n+1","aaaa","D3S1358",15,16]
[null,null,null,"Row n+2","aaaa","TH01",6,8]
[]
[null,"  Horizontal: A 'wide'-style format with one row per sample and one column for each allele of the locus.",null,null,"Col m","Col n","Col n+1","Col o","Col o+1","…"]
[null,"    The header record is recognized by the presence of Sample Info in a row.  The terms \"Locus ID\", \"Marker\" and \"Allele 1\" may not be present.",null,"Row n","Sample Info","D8S1179 1","D8S1179 2","D21S11","D21S11"]
[null,"    The alleles are specified one-per-column, starting at the first non-empty column to the right of Sample Info and continuing for all columns",null,"Row n+1","eeee",12,15,30,30]
[null,"    containing the allele name.  The allele name may include the \"allele number\" (e.g., D8S1179 and D8S1179 1 are both ok).",null,"Row n+2","ffff",10,14,31,32]
[]
[null,"  NISTcompact: a 'wide'-style format, one row per sample but just one column per locus.",null,null,"Col A","Col B","Col C","…"]
[null,"    The header record is recognized by the presence of SampleCode in column A.",null,"Row n","SampleCode","D8S1179","D21S11"]
[null,"     Each non-empty header cell in the header row from column B on specifies a locus code.",null,"Row n+1","eeee","12,15","30,30"]
[null,"    The 'compact' style is recognized by the uniqueness of each locus code in the header row.",null,"Row n+2","ffff","10,14","31,32"]
[null,"    The alleles are specified in one comma-separated string.",null,"…"]
[]
[null,"  NISTstandard: a 'wide'-style format, one row per sample and one column for each allele of the locus.",null,null,"Col A","Col B","Col C","Col D","Col E","…"]
[null,"    The header record is recognized by the presence of SampleCode in column A.",null,"Row n","SampleCode","D8S1179","D8S1179","D21S11","D21S11"]
[null,"    The first occurrence of each locus code in the header row from column B on specifies a locus.",null,"Row n+1","eeee",12,15,30,30]
[null,"    The 'standard' style is recognized by the non-uniqueness of at least one locus code in the header row.",null,"Row n+2","ffff",10,14,31,32]
[null,"    The alleles are specified one-pre-column, starting with the first occurrence of the locus code and continuing to the left of the next unique code.",null,"…"]
[]
[null,"  Vertical: A 'long'-style format with one locus specified per row.",null,null,"Col m","Col n","Col o","Col o+1","Col o+…","…"]
[null,"    The header record is recognized by the presence of Sample Info and Marker in a row.",null,"Row n","Sample Info","Marker","Allele 1","Allele 2","Allele …"]
[null,"    The alleles are specified one-per-column, starting at Allele 1 and continuing for all columns containing Allele.",null,"Row n+1","aaaa","D3S1358",15,16]
[null,null,null,"Row n+2","aaaa","TH01",6,8]
[]
[null,"STR_ConvertFormats accepts NIST-compact and NISTstandard formatted worksheets to enable checking the validity of the"]
[null,"    worksheet format and/or to identify ambiguous alleles.  The STR_MatchSamples system accepts both formats."]

{"sheet":"Ambiguities","index":7,"n_rows":1,"n_cols":9,"rows_kept":1,"cut":false,"hidden":true,"merged":[]}
["Row","Col",null,"SampleCode","Locus","Allele","Value",null,"Diagnosis"]

{"sheet":"SortOrder","index":8,"n_rows":78,"n_cols":30,"rows_kept":78,"cut":false,"hidden":false,"merged":[]}
["Locus","aka","aka","aka","aka","aka","aka","aka","aka",null,"Alphabetical","Cofiler","Fusion","GlobalFiler","Identifiler","MiniFiler","NGM","NGM SElect","PP16","PP18D","PP21","PP-ESI-17","PP-ESX-17","PPF6","PPY","PPY23","Profler Plus","SGM Plus","YfilerPlus","New"]
["AMEL","Amelogenin","Amelo",null,null,null,null,null,null,null,"AMEL","D3S1358","AMEL","D3S1358","D8S1179","D13S317","D10S1248","D10S1248","D3S1358","D3S1358","AMEL","AMEL","AMEL","AMEL","DYS390","DYS576","D3S1358","D3S1358","DYS576"]
["CSF1PO","CSF",null,null,null,null,null,null,null,null,"CSF1PO","D16S539","D3S1358","vWA","D21S11","D7S820","vWA","vWA","TH01","TH01","D3S1358","D3S1358","D3S1358","D3S1358","DYS389I","DYS389I","vWA","vWA","DYS389I"]
["D10S1248","D10",null,null,null,null,null,null,null,null,"D10S1248","AMEL","D1S1656","D16S539","D7S820","AMEL","D16S539","D16S539","D21S11","D21S11","D1S1656","D19S433","TH01","D1S1656","DYS439","DYS448","FGA","D16S539","DYS635"]
["D10S1435",null,null,null,null,null,null,null,null,null,"D10S1435","TH01","D2S441","CSF1PO","CSF1PO","D2S1338","D2S1338","D2S1338","D18S51","D18S51","D6S1043","D2S1338","D21S11","D2S441","DYS389II","DYS389II","AMEL","D2S1338","DYS389II"]
["D11S4463",null,null,null,null,null,null,null,null,null,"D11S4463","TPOX","D10S1248","TPOX","D3S1358","D21S11","AMEL","AMEL","Penta_E","Penta_E","D13S317","D22S1045","D18S51","D10S1248","DYS438","DYS19","D8S1179","AMEL","DYS627"]
["D12ATA63",null,null,null,null,null,null,null,null,null,"D12ATA63","CSF1PO","D13S317","Yindel","TH01","D16S539","D8S1179","D8S1179","D5S818","D5S818","Penta_E","D16S539","D10S1248","D13S317","DYS437","DYS391","D21S11","D8S1179","DYS460"]
["D12S391","D12",null,null,null,null,null,null,null,null,"D12S391","D7S820","Penta E","AMEL","D13S317","D18S51","D21S11","D21S11","D13S317","D13S317","D16S539","D18S51","D1S1656","Penta_E","DYS19","DYS481","D18S51","D21S11","DYS458"]
["D13S317","D13",null,null,null,null,null,null,null,null,"D13S317",null,"D16S539","D8S1179","D16S539","CSF1PO","D18S51","D18S51","D7S820","D7S820","D18S51","D1S1656","D2S1338","D16S539","DYS392","DYS549","D5S818","D18S51","DYS19"]
["D14S1434",null,null,null,null,null,null,null,null,null,"D14S1434",null,"D18S51","D21S11","D2S1338","FGA","D22S1045","D22S1045","D16S539","D16S539","D2S1338","D10S1248","D16S539","D18S51","DYS393","DYS533","D13S317","D19S433","YGATAH4"]
["D16S539","D16",null,null,null,null,null,null,null,null,"D16S539",null,"D2S1338","D18S51","D19S433",null,"D19S433","D19S433","CSF1PO","CSF1PO","CSF1PO","D2S441","D22S1045","D2S1338","DYS390","DYS438","D7S820","TH01","DYS448"]
["D17S1301",null,null,null,null,null,null,null,null,null,"D17S1301",null,"CSF1PO","DYS391","vWA",null,"TH01","TH01","Penta_D","Penta_D","Penta_D","TH01","vWA","CSF1PO","DYS385ab","DYS437",null,"FGA","DYS391"]
["D17S974",null,null,null,null,null,null,null,null,null,"D17S974",null,"Penta D","D2S441","TPOX",null,"FGA","FGA","AMEL","AMEL","TH01","vWA","D8S1179","Penta_D",null,"DYS570",null,null,"DYS456"]
["D18S51","D18",null,null,null,null,null,null,null,null,"D18S51",null,"TH01","D19S433","D18S51",null,"D2S441","D2S441","vWA","vWA","vWA","D21S11","FGA","TH01",null,"DYS635",null,null,"DYS390"]
["D18S853",null,null,null,null,null,null,null,null,null,"D18S853",null,"vWA","TH01","AMEL",null,"D3S1358","D3S1358","D8S1179","D8S1179","D21S11","D12S391","D2S441","vWA",null,"DYS390",null,null,"DYS438"]
["D19S433","D19",null,null,null,null,null,null,null,null,"D19S433",null,"D21S11","FGA","D5S818",null,"D1S1656","D1S1656","TPOX","TPOX","D7S820","D8S1179","D12S391","D21S11",null,"DYS439",null,null,"DYS392"]
["D1GATA113",null,null,null,null,null,null,null,null,null,"D1GATA113",null,"D7S820","D22S1045","FGA",null,"D12S391","D12S391","FGA","FGA","D5S818","FGA","D19S433","D7S820",null,"DYS392",null,null,"DYS518"]
["D1S1627",null,null,null,null,null,null,null,null,null,"D1S1627",null,"D5S818","D5S818",null,null,null,"SE33",null,"D19S433","TPOX","SE33","SE33","D5S818",null,"DYS643",null,null,"DYS570"]
["D1S1656","D1",null,null,null,null,null,null,null,null,"D1S1656",null,"TPOX","D13S317",null,null,null,null,null,"D2S1338","D8S1179",null,null,"TPOX",null,"DYS393",null,null,"DYS437"]
["D1S1677",null,null,null,null,null,null,null,null,null,"D1S1677",null,"DYS391","D7S820",null,null,null,null,null,null,"D12S391",null,null,"D8S1179",null,"DYS458",null,null,"DYS385ab"]
["D20S1082",null,null,null,null,null,null,null,null,null,"D20S1082",null,"D8S1179","SE33",null,null,null,null,null,null,"D19S433",null,null,"D12S391",null,"DYS385ab",null,null,"DYS449"]
["D20S482",null,null,null,null,null,null,null,null,null,"D20S482",null,"D12S391","D10S1248",null,null,null,null,null,null,"FGA",null,null,"D19S433",null,"DYS456",null,null,"DYS393"]
["D21S11","D21",null,null,null,null,null,null,null,null,"D21S11",null,"D19S433","D1S1656",null,null,null,null,null,null,null,null,null,"SE33",null,"DYGATAH4",null,null,"DYS439"]
["D22S1045","D22",null,null,null,null,null,null,null,null,"D22S1045",null,"FGA","D12S391",null,null,null,null,null,null,null,null,null,"D22S1045",null,null,null,null,"DYS481"]
["D2S1338","D2",null,null,null,null,null,null,null,null,"D2S1338",null,"D22S1045","D2S1338",null,null,null,null,null,null,null,null,null,"DYS391",null,null,null,null,"DYF387S1"]
["D2S1776",null,null,null,null,null,null,null,null,null,"D2S1776",null,null,null,null,null,null,null,null,null,null,null,null,"FGA",null,null,null,null,"DYS533"]
["D2S441",null,null,null,null,null,null,null,null,null,"D2S441",null,null,null,null,null,null,null,null,null,null,null,null,"DYS576"]
["D3S1358","D3",null,null,null,null,null,null,null,null,"D3S1358",null,null,null,null,null,null,null,null,null,null,null,null,"DYS570"]
["D3S3053",null,null,null,null,null,null,null,null,null,"D3S3053"]
["D3S4529",null,null,null,null,null,null,null,null,null,"D3S4529"]
["D4S2364",null,null,null,null,null,null,null,null,null,"D4S2364"]
["D4S2408",null,null,null,null,null,null,null,null,null,"D4S2408"]
["D5S2500",null,null,null,null,null,null,null,null,null,"D5S2500"]
["D5S2505",null,null,null,null,null,null,null,null,null,"D5S2505"]
["D5S818","D5",null,null,null,null,null,null,null,null,"D5S818"]
["D6S1017",null,null,null,null,null,null,null,null,null,"D6S1017"]
["D6S474",null,null,null,null,null,null,null,null,null,"D6S1043"]
["D7S820","D7",null,null,null,null,null,null,null,null,"D6S474"]
["D8S1115",null,null,null,null,null,null,null,null,null,"D7S820"]
["D8S1179","D8",null,null,null,null,null,null,null,null,"D8S1115"]
["D9S1122",null,null,null,null,null,null,null,null,null,"D8S1179"]
["D9S2157",null,null,null,null,null,null,null,null,null,"D9S1122"]
["DYS391",null,null,null,null,null,null,null,null,null,"D9S2157"]
["FGA",null,null,null,null,null,null,null,null,null,"DYF387S1"]
["Penta_D","Penta D","PentaD",null,null,null,null,null,null,null,"DYS19"]
["Penta_E","Penta E","PentaE",null,null,null,null,null,null,null,"DYS385ab"]
["SE33",null,null,null,null,null,null,null,null,null,"DYS389I"]
["TH01","THo1",null,null,null,null,null,null,null,null,"DYS389II"]
["TPOX",null,null,null,null,null,null,null,null,null,"DYS390"]
["vWA",null,null,null,null,null,null,null,null,null,"DYS391"]
["Yindel",null,null,null,null,null,null,null,null,null,"DYS392"]
["D6S1043",null,null,null,null,null,null,null,null,null,"DYS393"]
["DYS19",null,null,null,null,null,null,null,null,null,"DYS437"]
["DYS385ab","DYS385 a/b","DYS385a_b","DYS385",null,null,null,null,null,null,"DYS438"]
["DYS389I",null,null,null,null,null,null,null,null,null,"DYS439"]
["DYS389II",null,null,null,null,null,null,null,null,null,"DYS448"]
["DYS390",null,null,null,null,null,null,null,null,null,"DYS449"]
["DYS392",null,null,null,null,null,null,null,null,null,"DYS456"]
["DYS393",null,null,null,null,null,null,null,null,null,"DYS458"]
["DYS437",null,null,null,null,null,null,null,null,null,"DYS460"]
["DYS438",null,null,null,null,null,null,null,null,null,"DYS481"]
["DYS439",null,null,null,null,null,null,null,null,null,"DYS518"]
["DYS448",null,null,null,null,null,null,null,null,null,"DYS533"]
["DYS456",null,null,null,null,null,null,null,null,null,"DYS549"]
["DYS458",null,null,null,null,null,null,null,null,null,"DYS570"]
["DYS481",null,null,null,null,null,null,null,null,null,"DYS576"]
["DYS533",null,null,null,null,null,null,null,null,null,"DYS627"]
["DYS549",null,null,null,null,null,null,null,null,null,"DYS635"]
["DYS570",null,null,null,null,null,null,null,null,null,"DYS643"]
["DYS576",null,null,null,null,null,null,null,null,null,"FGA"]
["DYS635",null,null,null,null,null,null,null,null,null,"Penta_D"]
["DYS643",null,null,null,null,null,null,null,null,null,"Penta_E"]
["DYS627",null,null,null,null,null,null,null,null,null,"SE33"]
["DYS460",null,null,null,null,null,null,null,null,null,"TH01"]
["DYS518",null,null,null,null,null,null,null,null,null,"TPOX"]
["DYS449",null,null,null,null,null,null,null,null,null,"vWA"]
["DYF387S1",null,null,null,null,null,null,null,null,null,"YGATAH4"]
["YGATAH4","Y_GATA_H4",null,null,null,null,null,null,null,null,"Yindel"]

{"sheet":"DateTime","index":9,"n_rows":56,"n_cols":6,"rows_kept":56,"cut":false,"hidden":true,"merged":[[0,5,1,5]]}
["Parameter","Value","Format","Status",null,"Whoops… Date-Time format issue!"]
["Date","2017-10-10T10:36:18.460","dd-mmm-yy","Valid"]
["Time",43018.441880324077,"h:mm:ss","Valid",null,"Different versions of Excel support different date and time formats."]
["DateTime","2017-10-10T10:36:18.460","dd-mmm-yy h:mm:ss","Valid",null,"The default formats (in Excel-eze, \"dd-mm-yy\" and \"hh:mm:ss\") are not valid for your system."]
[]
[null,null,null,null,null,"Please use Excel's standard Format menubar tool to format the contents of cells B2 and B3 (rows 2 and 3 of col 2)."]
[null,null,null,null,null,"to show the date (day, month and year) and time (hour, minute, second)."]
[null,null,null,null,null,"In the Excel system used to build this program, the date and time format tool is accessible from the"]
[null,null,null,null,null,"\"Number\" page of the \"Cells…\" entry of the \"Format\" menu of the MenuBar (Format > Cells… > Number)."]
[]
[null,null,null,null,null,"Use the \"Date\" item of the Number page to set the date format of cell B2 (row 2 col 2) and"]
[null,null,null,null,null,"the \"Time\" item to set the time format of cell B3 (row 3 col 2)."]
[null,null,null,null,null,"Once the contents of these two cells display to you satisfaction, click the Check It button below."]
[]
[null,null,null,null,null,"With any luck, you should never see this page (in this particular program) again!"]
[null,null,null,null,null,"If you encounter difficulties, please contact Dave Duewer (David.Duewer@NIST.gov) with details."]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[null,null,null,null,null,140]
[null,null,null,null,null,{"$f":"F55/200","v":0.7}]