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
UNLOCK
MGnify
Commits
52acdab7
Commit
52acdab7
authored
Jul 15, 2021
by
Jasper Koehorst
Browse files
sync, still in progress
parent
a0b006cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
run.py
View file @
52acdab7
...
...
@@ -102,13 +102,15 @@ if __name__ == "__main__":
identifiers
=
set
()
for
line
in
open
(
"identifiers.tsv"
):
if
"MGYG"
not
in
line
:
continue
identifier
=
line
.
strip
().
split
(
"
\t
"
)[
1
]
accession
=
line
.
strip
().
split
(
"
\t
"
)[
2
]
if
(
identifier
.
startswith
(
"MGYG"
)):
retrieval
(
identifier
,
accession
)
identifiers
.
add
(
identifier
)
conversion_stage
(
identifier
)
# break
# Number of cores
# num_cores = 3 # multiprocessing.cpu_count()
# results = Parallel(n_jobs=num_cores)(delayed(conversion_stage)(identifier) for identifier in identifiers)
if
"MGYG-HGUT-03178"
in
line
or
"MGYG-HGUT-00360"
in
line
:
print
(
line
)
identifier
=
line
.
strip
().
split
(
"
\t
"
)[
1
]
accession
=
line
.
strip
().
split
(
"
\t
"
)[
2
]
if
(
identifier
.
startswith
(
"MGYG"
)):
retrieval
(
identifier
,
accession
)
identifiers
.
add
(
identifier
)
conversion_stage
(
identifier
)
# break
# Number of cores
# num_cores = 3 # multiprocessing.cpu_count()
# results = Parallel(n_jobs=num_cores)(delayed(conversion_stage)(identifier) for identifier in identifiers)
Write
Preview
Markdown
is supported
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