Skip to content
Snippets Groups Projects
Unverified Commit 4f307166 authored by Sam Lambert's avatar Sam Lambert Committed by GitHub
Browse files

Remove FID replacement command, leave that to output (#20)

parent 10196910
Branches master
Tags v1.0.2
No related merge requests found
[tool.poetry]
name = "fraposa-pgsc"
version = "1.0.1"
version = "1.0.2"
description = "Tools to perform ancestry projection to a reference dataset within the calculator pipeline (pgsc_calc)"
homepage = "https://github.com/PGScatalog/fraposa_pgsc"
authors = ["smlmbrt <sam.a.lambert@gmail.com>"]
......
......@@ -40,10 +40,7 @@ def main():
reader = csv.reader(f, delimiter="\t") # reads columns as str
stu_filt_iid = []
for x in reader:
if x[0] == "0":
stu_filt_iid.append((x[1],x[1])) # replace missing FID with IID
else:
stu_filt_iid.append((x[0], x[1])) # return FID, IID
stu_filt_iid.append((x[0], x[1])) # return FID, IID
l_input = len(stu_filt_iid)
stu_filt_iid = set(stu_filt_iid)
if l_input != len(stu_filt_iid):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment