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 12:20:56 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6fe8c9d147c2111cc53c5a5f4d769bbae84a5a62
6fe8c9d1
1 parent
347df9f6
Deep Learning Workshop
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
data-sets/get-hga-sequences-py27.py
data-sets/get-hga-training-test-py27.py
data-sets/get-hga-sequences-py27.py
View file @
6fe8c9d
...
...
@@ -80,7 +80,7 @@ if __name__ == "__main__":
total_exon
=
0
total_utr
=
0
# Read HGA csv file
with
open
(
os
.
path
.
join
(
args
.
hgaPath
,
args
.
hgaFile
),
mode
=
"r"
,
encoding
=
"utf-8"
)
as
csvfile
:
with
open
(
os
.
path
.
join
(
args
.
hgaPath
,
args
.
hgaFile
),
mode
=
"r"
)
as
csvfile
:
reader
=
csv
.
DictReader
(
csvfile
)
for
row
in
reader
:
# print(row)
...
...
data-sets/get-hga-training-test-py27.py
View file @
6fe8c9d
...
...
@@ -55,7 +55,7 @@ if __name__ == "__main__":
sequences
=
[]
# Read file with sequences
with
open
(
os
.
path
.
join
(
args
.
inputPath
,
args
.
inputFile
),
mode
=
"r"
,
encoding
=
"utf-8"
)
as
tabfile
:
with
open
(
os
.
path
.
join
(
args
.
inputPath
,
args
.
inputFile
),
mode
=
"r"
)
as
tabfile
:
df
=
pd
.
read_csv
(
tabfile
,
delimiter
=
'
\t
'
)
print
(
"df: {}"
.
format
(
df
))
sequences
=
df
[
'sequence'
]
...
...
Please
register
or
login
to post a comment