code wiki / (root) / nx_chem_adulterant_db_test.nx

nx_chem_adulterant_db_test.nx

buildroot/runtime/nx_chem_adulterant_db_test.nx

23850 B468 linesdepth 11pulls 18 transitivereach 0 importersview sourcekind gate/prooftopic chem
docsdependenciesstructsconstsfunctions

about

nx_chem_adulterant_db_test.nx -- C4.0 KAT + END-TO-END lab demo. The KAT validates that the seed DB parses correctly, m/z values match published reference, and lookup-by-m/z returns expected matches. The demo at the end prints a realistic lab-report output for a synthetic 4-peak LC-MS observation. expect_exit: 0 license_tier: ORIGINAL

dependencies 9 imports · 0 importers

nx_chem.nx nx_chem_molecule.nx nx_chem_smiles.nx nx_chem_periodic.nx nx_chem_valence.nx nx_chem_mass.nx nx_chem_isotope_pattern.nx nx_chem_adulterant_db.nx nx_chem_peak_list.nx nx_chem_adulterant_db_test.nx

imports: nx_chem.nxnx_chem_molecule.nxnx_chem_smiles.nxnx_chem_periodic.nxnx_chem_valence.nxnx_chem_mass.nxnx_chem_isotope_pattern.nxnx_chem_adulterant_db.nxnx_chem_peak_list.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main a_seed_count nx_chem_adulterant_db_seed nx_chem_atomic_data_table_ nx_chem_adulterant_db_new sys_mmap sys_mmap ↻ nx_chem_adulterant_seed_sm nx_chem_adulterant_db_add nx_chem_parse_smiles nx_chem_mol_new smi_is_digit nx_chem_mol_atom nx_chem_mol_bond_add nx_chem_mol_bond smi_parse_bracket smi_is_digit ↻ smi_is_upper smi_is_lower smi_bracket_symbol_two_cha smi_bracket_symbol_single_ smi_aromatic_lower_to_z nx_chem_mol_atom_add smi_connect nx_chem_mol_atom ↻ nx_chem_mol_bond_add ↻ nx_chem_mol_bond ↻ smi_aromatic_lower_to_z ↻ smi_is_upper ↻ smi_organic_atom nx_chem_smiles_populate_st nx_chem_compute_implicit_h nx_chem_default_valence nx_chem_atom_bond_summary nx_chem_mol_monoisotopic_m nx_chem_mol_mh_plus_q4 nx_chem_mol_monoisotopic_m ↻ nx_chem_halogen_signature nx_chem_isotope_m1_q4 nx_chem_isotope_m2_q4

structs

none

consts

none

functions

24func a_seed_count() -> nx_int
called by 1: main calls 1: nx_chem_adulterant_db_seed
34func b_sibutramine_signature() -> nx_int
called by 1: main calls 1: nx_chem_adulterant_db_seed
47func c_caffeine_signature() -> nx_int
called by 1: main calls 1: nx_chem_adulterant_db_seed
61func d_lookup_sibutramine() -> nx_int
77func e_lookup_no_match() -> nx_int
89func f_lookup_3ppm_offset() -> nx_int
103func g_lookup_10ppm_offset() -> nx_int
117func i_rt_lookup_no_ref_rt() -> nx_int
132func j_rt_off_rejected() -> nx_int
148func k_rt_on_matches() -> nx_int
163func l_rt_zero_observed_bypasses() -> nx_int
177func h_distinct_mz() -> nx_int
called by 1: main calls 1: nx_chem_adulterant_db_seed
200func o_load_compounds() -> nx_int
248func n_new_halogen_sigs() -> nx_int
called by 1: main calls 1: nx_chem_adulterant_db_seed
262func m_load_rt_calibration() -> nx_int
311func run_lab_demo() -> nx_int
388func main() -> nx_exit