about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-28 12:30:02 -0500
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-28 13:53:14 -0500
commit4a2c213d9a9cee615d554fa23664b46184aad968 (patch)
tree243bdf9e2f1d7725cf2e7936ed3baad26bef817f /scripts
parent2ee943581dc1e0d508a919eab8f8bdf3d73b2b5e (diff)
downloadgn-uploader-4a2c213d9a9cee615d554fa23664b46184aad968.tar.gz
Add content-specific CLI options for genotype CSV files.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genotypes/preprocess_csv_collect_info.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/genotypes/preprocess_csv_collect_info.py b/scripts/genotypes/preprocess_csv_collect_info.py
index b4b627c..7b0940d 100644
--- a/scripts/genotypes/preprocess_csv_collect_info.py
+++ b/scripts/genotypes/preprocess_csv_collect_info.py
@@ -193,6 +193,44 @@ if __name__ == "__main__":
             type=str,
             default=["-", "NA", "N/A"],
             help="The character indicating a comment line.")
+
+        ## content-specific arguments
+        parser.add_argument(
+            "--markers_field",
+            metavar="MARKERS-FIELD",
+            type=str,
+            default="Locus",
+            help=(
+                "The name of the column (or row, when transposed) containing "
+                "the names of the genetic markers."))
+
+        parser.add_argument(
+            "--chr_field",
+            metavar="CHROMOSOMES-FIELD",
+            type=str,
+            default="Chr",
+            help=(
+                "The name of the column (or row, when transposed) containing "
+                "the names of the names of the chromosomes."))
+
+        parser.add_argument(
+            "--cm_field",
+            metavar="GENETIC-DISTANCES-FIELD",
+            type=str,
+            default="cM",
+            help=(
+                "The name of the column (or row, when transposed) containing "
+                "the genetic distance values in centimorgans."))
+
+        parser.add_argument(
+            "--mb_field",
+            metavar="PHYSICAL-DISTANCES-FIELD",
+            type=str,
+            default="Mb",
+            help=(
+                "The name of the column (or row, when transposed) containing "
+                "the physical distance values in megabase pairs."))
+
         return parser.parse_args()