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
Holland Computing Center
chipathlon
Commits
a5aa0c5c
Commit
a5aa0c5c
authored
Sep 18, 2016
by
aknecht2
Browse files
I swear i've fixed this bug like three times now. Changed the order of dirs & files in os.walk.
parent
bc31200f
Changes
1
Hide whitespace changes
Inline
Side-by-side
chipathlon/run_data.py
View file @
a5aa0c5c
...
...
@@ -170,7 +170,7 @@ class RunData(object):
self
.
genomes
[
assembly
][
"chr_fasta"
]
=
[]
# Load chromosome files here:
base_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
self
.
data
[
"genomes"
][
assembly
][
"chrom.sizes"
]
+
"/"
))
for
root
,
files
,
dir
s
in
os
.
walk
(
base_dir
):
for
root
,
dirs
,
file
s
in
os
.
walk
(
base_dir
):
for
f
in
files
:
if
f
.
startswith
(
"chr"
):
self
.
_add_file
(
f
,
root
+
"/"
+
f
,
"local"
)
...
...
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