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 13:27:10 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
015aae07b895a92b6e5758a6e3b4737481eb31a0
015aae07
1 parent
e1a9f20f
Deep Learning Workshop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
data-sets/get-hga-training-test-py27.py
data-sets/get-hga-training-test-py27.py
View file @
015aae0
...
...
@@ -67,7 +67,7 @@ if __name__ == "__main__":
with
open
(
os
.
path
.
join
(
args
.
inputPath
,
args
.
inputFile
),
mode
=
"r"
)
as
tabfile
:
df
=
pd
.
read_csv
(
tabfile
,
delimiter
=
'
\t
'
)
print
(
"All rows in df: {}"
.
format
(
len
(
df
.
index
)))
df_filtered
=
df
.
loc
[
df
[
'label'
]
in
[
"exon"
,
"utr"
]
]
df_filtered
=
df
.
loc
[
df
[
'label'
]
==
"exon"
or
df
[
'label'
]
==
"utr"
]
print
(
"Only exon and utr rows in df: {}"
.
format
(
len
(
df_filtered
.
index
)))
# print("df: {}".format(df))
sequences
=
df_filtered
[
'sequence'
]
...
...
Please
register
or
login
to post a comment