Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
runCMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
runCMS
Commits
8508c471
Commit
8508c471
authored
5 years ago
by
Hugues ASCHARD
Browse files
Options
Downloads
Patches
Plain Diff
Update Script3_functions.py -- correct bug in add_genes_ucsc function
parent
a420c543
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
others/Script3_functions.py
+1
-1
1 addition, 1 deletion
others/Script3_functions.py
with
1 addition
and
1 deletion
others/Script3_functions.py
+
1
−
1
View file @
8508c471
...
...
@@ -188,7 +188,7 @@ def add_genes_ucsc(results_snps, summary_directory):
recap
=
pd
.
DataFrame
()
recap
[
'
Genes
'
]
=
genes
.
groupby
(
'
SNP
'
)[
'
Gene
'
].
apply
(
list
).
apply
(
np
.
unique
)
recap
[
'
SNP
'
]
=
recap
.
index
recap
[
'
SNP
id
'
]
=
recap
.
index
results_snps
=
pd
.
merge
(
results_snps
,
recap
,
on
=
'
SNP
'
,
how
=
'
left
'
)
results_snps
[
'
Genes
'
]
=
results_snps
[
'
Genes
'
].
apply
(
list_to_string
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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