19527: Accommodate header row in samples csv. 19527-training-set
authorTom Clegg <tom@curii.com>
Wed, 9 Nov 2022 23:29:58 +0000 (18:29 -0500)
committerTom Clegg <tom@curii.com>
Wed, 9 Nov 2022 23:29:58 +0000 (18:29 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

plot.py

diff --git a/plot.py b/plot.py
index da84cc0df242cbc903031a6bae37fbf86c2978fe..646c4d71aa02b8c3faa7fd938c9767f2d7d469c5 100644 (file)
--- a/plot.py
+++ b/plot.py
@@ -28,6 +28,8 @@ if samples_file:
     labels = {}
     with open(samples_file, 'rt', newline='') as samplelist:
         for row in csv.reader(samplelist):
+            if row[0] == "Index":
+                continue
             sampleid = row[1]
             samples.append(sampleid)
     phenotype_cat2_column = int(phenotype_cat2_column)