Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
panacota
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amandine PERRIN
panacota
Commits
3b48775b
Commit
3b48775b
authored
5 years ago
by
Amandine PERRIN
Browse files
Options
Downloads
Patches
Plain Diff
docstring on download_genomes_func.py
parent
dbaca83c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PanACoTA/prepare_module/download_genomes_func.py
+7
-4
7 additions, 4 deletions
PanACoTA/prepare_module/download_genomes_func.py
with
7 additions
and
4 deletions
PanACoTA/prepare_module/download_genomes_func.py
+
7
−
4
View file @
3b48775b
...
...
@@ -18,7 +18,7 @@ import ncbi_genome_download as ngd
from
PanACoTA
import
utils
logger
=
logging
.
getLogger
(
"
ddg.log_
dds
"
)
logger
=
logging
.
getLogger
(
"
prepare.
dds
"
)
def
download_from_refseq
(
species_linked
,
NCBI_species
,
NCBI_taxid
,
outdir
,
threads
):
...
...
@@ -93,7 +93,6 @@ def download_from_refseq(species_linked, NCBI_species, NCBI_taxid, outdir, threa
# Error message
logger
.
error
(
error_message
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
nb_gen
,
db_dir
=
to_database
(
outdir
)
logger
.
info
(
"
Downloaded {} genomes.
"
.
format
(
nb_gen
))
return
db_dir
...
...
@@ -103,9 +102,13 @@ def to_database(outdir):
"""
Move .fna.gz files to
'
database_init
'
folder, and uncompress them.
outdir : directory where all results are (for now, refseq folders, assembly summary and log
Parameters
----------
outdir : str
directory where all results are (for now, refseq folders, assembly summary and log
Return:
Returns
-------
nb_gen : number of genomes downloaded
db_dir : directory where are all fna files downloaded from refseq
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment