Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
deep-learning-workshop
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Carlos-Francisco Méndez-Cruz
2019-05-08 18:03:27 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dc0e4cbb0bcc5a17a1e2b2e5d78b0946f43eeb9e
dc0e4cbb
1 parent
7a86d075
Deep Learning Workshop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
data-sets/get-hga-training-test-py27-v1.py
data-sets/get-hga-training-test-py27-v1.py
View file @
dc0e4cb
...
...
@@ -87,12 +87,12 @@ if __name__ == "__main__":
for
sequence
,
label
in
zip
(
sequences
,
labels
):
if
label
==
"exon"
:
count_exon
+=
1
total_exon_length
+=
total_exon_length
total_exon_length
+=
len
(
sequence
)
if
len
(
sequence
)
>
max_exon_length
:
max_exon_length
=
len
(
sequence
)
elif
label
==
"utr"
:
count_utr
+=
1
total_utr_length
+=
total_utr_length
total_utr_length
+=
len
(
sequence
)
if
len
(
sequence
)
>
max_utr_length
:
max_utr_length
=
len
(
sequence
)
print
(
"Max exon length: {}"
.
format
(
max_exon_length
))
...
...
@@ -101,6 +101,8 @@ if __name__ == "__main__":
print
(
"Count utr: {}"
.
format
(
count_utr
))
print
(
"Total exon length: {}"
.
format
(
total_exon_length
))
print
(
"Total utr length: {}"
.
format
(
total_utr_length
))
print
(
"Media exon length: {}"
.
format
(
total_exon_length
/
count_exon
))
print
(
"Media utr length: {}"
.
format
(
total_utr_length
/
count_utr
))
quit
()
...
...
Please
register
or
login
to post a comment