diff --git a/data/data-01.still b/data/data-01.still index e177d34..935c7c7 100644 --- a/data/data-01.still +++ b/data/data-01.still @@ -5,6 +5,9 @@ @separater TAB @na_values NA @fixed +name: !is_missing() +job: !is_missing() +gene: currency: any(great) letters: is_subset_list("A,B,C", ",") && !is_missing() identical_col: identical() diff --git a/data/data-01.tsv b/data/data-01.tsv index d1c32dc..41fff4e 100644 --- a/data/data-01.tsv +++ b/data/data-01.tsv @@ -1,39 +1,39 @@ name job currency gene card longitude latitude n letters identical_col -Kamilah Fay-Larson Diagnostic radiographer CCTTAGNCTCGTAGANATTTTCCTAANTGA -178.1957659 -74.06048783 0.458079243 1 -Tamya Mohr-Kub Analytical chemist JEP TTNCCATATTNCNNATTTNAGGCGNCATGT 6.01E+18 -113.8728321 64.50682053 0.83229952 2 -Stevan Bernhard Arts administrator BSD ANCCTTNAGTCNTGGTNTNGGTNAATNGTN 3.34E+18 -152.7331266 -76.26050003 -0.338935731 1 -Kenisha Reichel-Schinner Manufacturing engineer MYR TGGGTANGANAGNCAANCNGNTNGTNCTAC -3.145590881 -37.37793588 1.421140369 NA 1 -Pattie Dickinson Radiation protection practitioner JPY 3.11E+18 148.7205505 7.183144921 -1.883651488 NA 1 -Dr. Zandra Koss DDS Hydrologist KES CCCTTNTTNGNGNGCACNANANNTNTTACC 17.72660187 -87.13902968 -1.635111895 NA 1 -Mr. Americo Harris II "Scientist, clinical (histocompatibility and immunogenetics)" KWD 43.4418239 -73.08040987 -0.333330083 NA 1 -Okey Macejkovic Tax adviser SYP 46.0175213 -38.39943494 1.329621592 NA 1 -Cato Boyle Airline pilot LYD CCAGTGATTAAGGTNCCTATCNGNTTNANC -130.6693262 26.9558406 1.033948492 NA 1 -NA Legal executive DOP 5.04E+14 -72.78824195 53.74784386 -0.918929778 NA 1 -Kara Osinski Theatre stage manager XOF ANTCCTANATNNGTANNTCTATAGNTAGNT 144.2849999 85.36540136 0.491041631 NA 1 -Ocie Morissette Curator ANG 3.10E+18 -129.7240519 -49.45600446 0.148648079 NA 1 -Shena Eichmann Site engineer ALL CGGCGNGGNNAANCCGCATGCAAGAACGNG 132.1095218 7.525005578 -1.974362221 NA 1 -Hayward Gulgowski Medical physicist AMD TTNAGACGTTATCATCATNGCGTAGTTCCN 1.80E+17 120.1973062 -69.17278145 2.793693274 NA 1 -Rayan Lowe Insurance claims handler ANG TNAAAGANCATNTCCCGNCGNGCGCCAGNT 85.6599331 -47.98963174 -0.644430414 NA 1 - Company secretary ZMW 6.01E+18 118.3886596 -78.07451898 -1.540561932 NA 1 -Hulda Reichel Environmental health practitioner SOS AATGGTACTAACTCCGNCNCNCGTCAGAGT 126.9914039 -23.55747167 0.049531277 NA 1 -Kali Lueilwitz MD Fine artist MXN -159.8495533 56.10948699 -0.662801858 NA 1 -Dr. Cynthia Langosh "Engineer, petroleum" NZD CNGNNGNTTCCGAGCGTTNACCANAACTNC -148.0678455 -64.02382409 -1.499414683 NA 1 -Valarie Franecki Microbiologist GHS -30.30049933 -5.815494591 -0.277842684 NA 1 -Desiree Bosco Travel agency manager MMK 134.9978298 -75.0411013 -0.128107856 NA 1 -Dr. Yancy Parker Hospital pharmacist CUC -38.23435566 57.20300642 -0.201098538 NA 1 -Dr. Pranav Walsh "Nurse, children's" SRD 112.1953384 -70.53648025 0.050441599 NA 1 -Ms. Layla Ward Financial adviser LSL CNGANATAGGATTAGCAAGTANCNNNCTGT 4.89E+15 -62.5991018 -38.69977903 1.278727625 NA 1 -Gene Halvorson "Programme researcher, broadcasting/film/video" SEK NAACGGGANNCNCNNNGTGNNCTCGNTGAN -8.279181356 -29.85494372 -1.654308121 NA 1 -Bobby Bechtelar "Biochemist, clinical" ERN GAACGCTTCCTGTGGNANGAGACTCGNNGN -166.3451326 -40.98557976 -1.77664629 NA 1 -Everet Weimann Insurance risk surveyor LAK NGAACAACANGAGTNNCAGATTGNCTTATG 165.916263 -53.31556192 -0.97387832 NA 1 -Johnna Feest-Thiel Oncologist PAB 8.70E+17 176.6155489 73.64028207 -0.66685856 NA 1 -Cortney Paucek Airline pilot PLN 20.97738219 46.14853644 0.94615237 NA 1 -Aditya Jakubowski Restaurant manager PEN 58.69201795 39.93936322 -1.372069351 NA 1 -Mrs. Aurelia Lehner DVM Private music teacher THB -50.76402325 -78.80858984 -0.204987475 NA 1 -Lesta Hagenes "Designer, multimedia" HTG -138.465196 -62.92810982 -0.899297995 NA 1 -Brielle Mante "Programme researcher, broadcasting/film/video" VND -40.6338679 -8.565877229 0.895377792 NA 1 -Cornelius Morissette Public relations account executive MMK 166.3979438 18.17248031 1.282841073 NA 1 -Omari Koss "Engineer, civil (contracting)" BRL GTACGCGTGTGTNGCNACAGCGNGATCTNC 3.48E+15 167.8348944 72.78862337 -0.709678536 NA 1 +Kamilah Fay-Larson Diagnostic radiographer CCTTAGNCTCGTAGANATTTTCCTAANTGA -178.1957659 -74.06048783 0.458079243 A 1 +Tamya Mohr-Kub Analytical chemist JEP TTNCCATATTNCNNATTTNAGGCGNCATGT 6.01E+18 -113.8728321 64.50682053 0.83229952 "B,C" 2 +Stevan Bernhard Arts administrator BSD ANCCTTNAGTCNTGGTNTNGGTNAATNGTN 3.34E+18 -152.7331266 -76.26050003 -0.338935731 C 1 +Kenisha Reichel-Schinner Manufacturing engineer MYR TGGGTANGANAGNCAANCNGNTNGTNCTAC -3.145590881 -37.37793588 1.421140369 A 1 +Pattie Dickinson Radiation protection practitioner JPY 3.11E+18 148.7205505 7.183144921 -1.883651488 "B,C" 1 +Dr. Zandra Koss DDS Hydrologist KES CCCTTNTTNGNGNGCACNANANNTNTTACC 17.72660187 -87.13902968 -1.635111895 C 1 +Mr. Americo Harris II "Scientist, clinical (histocompatibility and immunogenetics)" KWD 43.4418239 -73.08040987 -0.333330083 A 1 +Okey Macejkovic Tax adviser SYP 46.0175213 -38.39943494 1.329621592 "B,C" 1 +Cato Boyle Airline pilot LYD CCAGTGATTAAGGTNCCTATCNGNTTNANC -130.6693262 26.9558406 1.033948492 C 1 +NA Legal executive DOP 5.04E+14 -72.78824195 53.74784386 -0.918929778 A 1 +Kara Osinski Theatre stage manager XOF ANTCCTANATNNGTANNTCTATAGNTAGNT 144.2849999 85.36540136 0.491041631 "B,C" 1 +Ocie Morissette Curator ANG 3.10E+18 -129.7240519 -49.45600446 0.148648079 C 1 +Shena Eichmann Site engineer ALL CGGCGNGGNNAANCCGCATGCAAGAACGNG 132.1095218 7.525005578 -1.974362221 A 1 +Hayward Gulgowski Medical physicist AMD TTNAGACGTTATCATCATNGCGTAGTTCCN 1.80E+17 120.1973062 -69.17278145 2.793693274 "B,C" 1 +Rayan Lowe Insurance claims handler ANG TNAAAGANCATNTCCCGNCGNGCGCCAGNT 85.6599331 -47.98963174 -0.644430414 C 1 + Company secretary ZMW 6.01E+18 118.3886596 -78.07451898 -1.540561932 A 1 +Hulda Reichel Environmental health practitioner SOS AATGGTACTAACTCCGNCNCNCGTCAGAGT 126.9914039 -23.55747167 0.049531277 "B,C" 1 +Kali Lueilwitz MD Fine artist MXN -159.8495533 56.10948699 -0.662801858 C 1 +Dr. Cynthia Langosh "Engineer, petroleum" NZD CNGNNGNTTCCGAGCGTTNACCANAACTNC -148.0678455 -64.02382409 -1.499414683 A 1 +Valarie Franecki Microbiologist GHS -30.30049933 -5.815494591 -0.277842684 "B,C" 1 +Desiree Bosco Travel agency manager MMK 134.9978298 -75.0411013 -0.128107856 C 1 +Dr. Yancy Parker Hospital pharmacist CUC -38.23435566 57.20300642 -0.201098538 A 1 +Dr. Pranav Walsh "Nurse, children's" SRD 112.1953384 -70.53648025 0.050441599 "B,C" 1 +Ms. Layla Ward Financial adviser LSL CNGANATAGGATTAGCAAGTANCNNNCTGT 4.89E+15 -62.5991018 -38.69977903 1.278727625 C 1 +Gene Halvorson "Programme researcher, broadcasting/film/video" SEK NAACGGGANNCNCNNNGTGNNCTCGNTGAN -8.279181356 -29.85494372 -1.654308121 A 1 +Bobby Bechtelar "Biochemist, clinical" ERN GAACGCTTCCTGTGGNANGAGACTCGNNGN -166.3451326 -40.98557976 -1.77664629 A 1 +Everet Weimann Insurance risk surveyor LAK NGAACAACANGAGTNNCAGATTGNCTTATG 165.916263 -53.31556192 -0.97387832 "B,C" 1 +Johnna Feest-Thiel Oncologist PAB 8.70E+17 176.6155489 73.64028207 -0.66685856 C 1 +Cortney Paucek Airline pilot PLN 20.97738219 46.14853644 0.94615237 A 1 +Aditya Jakubowski Restaurant manager PEN 58.69201795 39.93936322 -1.372069351 "B,C" 1 +Mrs. Aurelia Lehner DVM Private music teacher THB -50.76402325 -78.80858984 -0.204987475 C 1 +Lesta Hagenes "Designer, multimedia" HTG -138.465196 -62.92810982 -0.899297995 A 1 +Brielle Mante "Programme researcher, broadcasting/film/video" VND -40.6338679 -8.565877229 0.895377792 "B,C" 1 +Cornelius Morissette Public relations account executive MMK 166.3979438 18.17248031 1.282841073 C 1 +Omari Koss "Engineer, civil (contracting)" BRL GTACGCGTGTGTNGCNACAGCGNGATCTNC 3.48E+15 167.8348944 72.78862337 -0.709678536 A 1 Handy Botsford Trade mark attorney NZD -151.2581608 -54.03497907 0.304094482 NA 1 Doctor Kohler Public relations account executive EGP 34.32334363 25.2979035 0.94867569 "A,C" 1 Humberto Heller II Herbalist CNY 3.34E+18 -59.82240468 28.2143163 0.38566122 "A,D" 1 diff --git a/src/validate/validate.go b/src/validate/validate.go index 15fe6c2..b0d6313 100644 --- a/src/validate/validate.go +++ b/src/validate/validate.go @@ -223,8 +223,9 @@ func RunValidation(schema schema.SchemaRules, input string) bool { currentVar := parameters[colName] parameters["current_var_"] = currentVar for idx, expr := range exprs { - result, err := expr.Eval(parameters) - utils.Check(err) + result, _ := expr.Eval(parameters) + // We are skipping this error check b/c it + // takes place below. // Add result to parameters // TODO: See if there is a way to set parameter at end