11.10 File and format checks: FIL01–FIL12
These checks ask whether the bytes and physical rows are safe for NM-TRAN-style reading. Fix them before interpreting any scientific column.
| IDs | What they inspect | Typical correction |
|---|---|---|
| FIL01–FIL02 | readable file, header/data, no BOM | correct path/export UTF-8 without BOM |
| FIL03–FIL04 | ASCII characters and consistent line endings | normalize export; remove typographic text |
| FIL05–FIL06 | one delimiter and no blank record lines | re-export with one delimiter |
| FIL07–FIL10 | numeric-leading records, field counts, empty delimiters, no quotes | correct export/IGNORE design |
| FIL11–FIL12 | line-length limit and final newline | shorten records; terminate final line |
Why quoting can fail
CSV normally permits quoted fields, but NONMEM data conventions can reject quotation marks. FIL10 therefore treats them as a failure even if a general CSV reader could parse them. A file being “valid CSV” is not the same as being NM-TRAN-ready.
Line numbers
Physical file checks can report the exact line. The header is line 1, so data record one is usually line 2. Blank lines and embedded newlines complicate visual counting; use qc_findings.csv and a text editor that displays physical line numbers.
IGNORE interaction
FIL07 notices records that do not begin with a number. IGNORE=@ can skip letter-leading rows, but doing so may silently discard unintended data. Do not “solve” a malformed record by making IGNORE broader.
Common mistakes
- Assuming Excel export settings are NM-TRAN-compatible.
- Removing a BOM by deleting a visible character in one viewer.
- Accepting mixed commas/tabs because the first rows parse.
- Widening IGNORE to hide bad lines.
Checklist
- Open the file in a plain-text or hex-aware editor.
- Confirm delimiter and field count across all rows.
- Normalize line endings and final newline deliberately.
- Rerun before reviewing later check families.
Further reading
See dataset delimiters/quoting, NONMEM readiness and file defect case study.