Skip to content

Commit

Permalink
Support double_iid output in stratify
Browse files Browse the repository at this point in the history
  • Loading branch information
HippocampusGirl committed Dec 5, 2024
1 parent 7b87e44 commit 7031af1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gwas/src/gwas/stratify/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class SampleID(NamedTuple):
def to_str(self, method: str = "both_with_underscore") -> str:
if method == "both_with_underscore":
return f"{self.fid}_{self.iid}"
if method == "double_iid":
return f"{self.iid}_{self.iid}"
elif method == "iid":
return self.iid
elif method == "fid":
Expand Down

0 comments on commit 7031af1

Please sign in to comment.