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
cd96b94a
Commit
cd96b94a
authored
Feb 02, 2022
by
Lucie TROUBAT
Browse files
Pb2 with name outfolder
parent
d0cb2588
Changes
1
Hide whitespace changes
Inline
Side-by-side
raiss/ld_matrix.py
View file @
cd96b94a
...
...
@@ -127,7 +127,7 @@ def generate_genome_matrices(region_files, reffolder, folder_output, prefix, suf
for
reg
in
regions
.
iterrows
():
# input reference panel file
fi_ref
=
"{0}/{1}{2}{3}"
.
format
(
reffolder
,
prefix
,
reg
[
1
][
'chr'
],
suffix
)
print
(
fi_ref
)
#
print(fi_ref)
chr_int
=
re
.
search
(
'([0-9X]{1,2})'
,
str
(
reg
[
1
][
'chr'
])).
group
()
# Compute the LD correlation with LD
...
...
@@ -137,9 +137,3 @@ def generate_genome_matrices(region_files, reffolder, folder_output, prefix, suf
#fo_mat = "{0}/{1}_{2}_{3}.mat".format(folder_output, reg[1]['chr'], reg[1]['startpos'], reg[1]["endpos"])
#transform plink output to a compressed generate_sparse_matrix
#generate_sparse_matrix(fi_plink, fo_mat)
generate_genome_matrices
(
"/home/genstat3/WKD_LUCIE/Data_test/All_Regions_ALL_ensemble_1000G_hg38_EUR.bed"
,
"/home/genstat3/WKD_LUCIE/Data_test/Panel_ref"
,
"/home/genstat3/WKD_LUCIE/Results"
,
"ALL_ensemble_1000G_hg38_EUR_chr"
,
""
,
"
\t
"
)
\ No newline at end of file
Write
Preview
Supports
Markdown
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