Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Statistical-Genetics
RAISS
Commits
cd04d3fd
Commit
cd04d3fd
authored
Mar 28, 2018
by
Hanna JULIENNE
Browse files
+
parent
5ab52154
Changes
1
Hide whitespace changes
Inline
Side-by-side
impute_jass/impute_jass/ld_matrix.py
View file @
cd04d3fd
...
...
@@ -49,7 +49,6 @@ def generate_sparse_matrix(plink_ld, ref_chr_df):
mat_ld
=
pd
.
DataFrame
(
sym
,
index
=
mat_ld
.
index
,
columns
=
mat_ld
.
columns
)
re_index
=
ref_chr_df
.
loc
[
mat_ld
.
index
].
sort_values
(
by
=
"pos"
).
index
mat_ld
=
mat_ld
.
loc
[
re_index
,
re_index
]
# mat_ld = pd.DataFrame(np.maximum(mat_ld.values, mat_ld.values.transpose()), index=un_index, columns=un_index)
mat_ld
=
mat_ld
.
to_sparse
()
return
mat_ld
#mat_ld.to_pickle(path_ld_mat,, compression='gzip')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment