Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fraposa_pgsc
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pgscatalog
fraposa_pgsc
Commits
4f307166
Unverified
Commit
4f307166
authored
7 months ago
by
Sam Lambert
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove FID replacement command, leave that to output (#20)
parent
10196910
Branches
master
Tags
v1.0.2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
src/fraposa_pgsc/fraposa_runner.py
+1
-4
1 addition, 4 deletions
src/fraposa_pgsc/fraposa_runner.py
with
2 additions
and
5 deletions
pyproject.toml
+
1
−
1
View file @
4f307166
[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>"
]
...
...
This diff is collapsed.
Click to expand it.
src/fraposa_pgsc/fraposa_runner.py
+
1
−
4
View file @
4f307166
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment