Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Louis BECQUEY
/
RNANetLegacy
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Network
Create a new issue
Builds
Commits
Authored by
Louis BECQUEY
2020-02-20 21:02:00 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5346ef89ee15e7cdc382472368f13d00b484c53e
5346ef89
1 parent
97b2613e
names in the progress bars
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
RNAnet.py
RNAnet.py
View file @
5346ef8
...
...
@@ -845,7 +845,6 @@ def alignment_nt_stats(f, list_of_chains) :
#print("\t>",f,"... ", flush=True)
chains_ids
=
[
str
(
c
)
for
c
in
list_of_chains
]
thr_idx
=
idxQueue
.
get
()
print
(
thr_idx
,
flush
=
True
)
# Open the alignment
align
=
AlignIO
.
read
(
path_to_seq_data
+
f
"realigned/{f}++.afa"
,
"fasta"
)
...
...
@@ -853,7 +852,8 @@ def alignment_nt_stats(f, list_of_chains) :
#print("\t>",f,"... loaded", flush=True)
# Compute statistics per column
results
=
[
summarize_position
(
align
[:,
i
])
for
i
in
tqdm
(
range
(
alilen
),
position
=
thr_idx
)
]
pbar
=
tqdm
(
total
=
alilen
,
position
=
thr_idx
,
desc
=
f
"Worker { thr_idx}: {f}"
,
leave
=
False
,
)
results
=
[
summarize_position
(
align
[:,
i
])
for
i
in
pbar
]
frequencies
=
np
.
array
(
results
)
.
T
#print("\t>",f,"... loaded, computed", flush=True)
...
...
Please
register
or
login
to post a comment