about summary refs log tree commit diff
path: root/uploader/scripts/genotypes/types.py
diff options
context:
space:
mode:
authorpi coding agent <pi@localhost>2026-11-04 19:10:02 +0000
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-11-04 13:28:11 -0600
commitfb9e85d123ca7d0853c4405d021e80936233fc17 (patch)
treeb2001ec158acce25ca0508dc1c2a657b21e8c5b2 /uploader/scripts/genotypes/types.py
parent718777873f56170cabf06801076788e66ff60d45 (diff)
downloadgn-uploader-fb9e85d123ca7d0853c4405d021e80936233fc17.tar.gz
Collect comment lines into the file description
Add a `description` field to `FileStats`, built by cleaning comment lines
(strip the configured comment character and surrounding whitespace) and joining
them with newlines. Detect comments using the configured comment character
rather than a hard-coded '#', and preserve comment order when merging chunks.
Diffstat (limited to 'uploader/scripts/genotypes/types.py')
-rw-r--r--uploader/scripts/genotypes/types.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/uploader/scripts/genotypes/types.py b/uploader/scripts/genotypes/types.py
index d765fe5..4403f3d 100644
--- a/uploader/scripts/genotypes/types.py
+++ b/uploader/scripts/genotypes/types.py
@@ -67,3 +67,4 @@ class FileStats:# pylint: disable=[too-many-instance-attributes]
     samples_list: Sequence[str] = field(default_factory=tuple)
     markers_list: Sequence[str] = field(default_factory=tuple)
     errors: Sequence[LineError] = field(default_factory=tuple)
+    description: str = ""