From 1cdc27e69fba30688d25f225bef0eac0614dac94 Mon Sep 17 00:00:00 2001 From: James Baker <59581582+jtb324@users.noreply.github.com> Date: Tue, 30 Sep 2025 09:25:29 -0500 Subject: [PATCH] Update ibdreduce_v3.py I accidentally created a bug in IBDReduce at line 184-187 of the ibdreduce_v3.py. --- IBDReduce/ibdreduce_v3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IBDReduce/ibdreduce_v3.py b/IBDReduce/ibdreduce_v3.py index 2258ff5..818936d 100755 --- a/IBDReduce/ibdreduce_v3.py +++ b/IBDReduce/ibdreduce_v3.py @@ -182,8 +182,8 @@ def parse_pheno(ifile: str, phenotype: Optional[str] = None) -> Tuple[int, int]: phenotype_indx = header_list.index(phenotype) continue else: # If no phenotype string then we skip the header - phenotype_indx = 1 # If no phenotype name is passed then we are going to treat this like a 2 column file where the first column are the ids and the second column is the phenotype status if i == 0: + phenotype_indx = 1 # If no phenotype name is passed then we are going to treat this like a 2 column file where the first column are the ids and the second column is the phenotype status continue l = l.strip().split()