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
2e39ac2d
Commit
2e39ac2d
authored
5 years ago
by
Amandine PERRIN
Browse files
Options
Downloads
Patches
Plain Diff
Update docstrings
parent
b54af626
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
PanACoTA/prepare_module/filter_genomes.py
+1
-1
1 addition, 1 deletion
PanACoTA/prepare_module/filter_genomes.py
PanACoTA/subcommands/prepare.py
+4
-5
4 additions, 5 deletions
PanACoTA/subcommands/prepare.py
with
5 additions
and
6 deletions
PanACoTA/prepare_module/filter_genomes.py
+
1
−
1
View file @
2e39ac2d
...
...
@@ -295,7 +295,7 @@ def mash_step(to_try, corresp, mat_sp, genomes_removed, min_dist, max_dist):
----------
to_try : list
list of genome_file (keys of
'
genomes
'
) to compare, ordered by decreasing L90/nbcont
corresp
_file
: dict
corresp : dict
{genome_file : num_of_genome in sorted_genomes}
mat_sp : scipy.sparse.dok.dok_matrix
matrix containing pairwise distance comparisons
...
...
This diff is collapsed.
Click to expand it.
PanACoTA/subcommands/prepare.py
+
4
−
5
View file @
2e39ac2d
...
...
@@ -21,6 +21,7 @@ from PanACoTA import utils
from
PanACoTA.prepare_module
import
download_genomes_func
as
dgf
from
PanACoTA.prepare_module
import
filter_genomes
as
fg
def
main_from_parse
(
arguments
):
"""
Call main function from the arguments given by parser
...
...
@@ -38,7 +39,6 @@ def main_from_parse(arguments):
arguments
.
verbose
,
arguments
.
quiet
)
def
main
(
cmd
,
NCBI_species
,
NCBI_taxid
,
outdir
,
tmp_dir
,
threads
,
no_refseq
,
only_mash
,
info_file
,
l90
,
nbcont
,
cutn
,
min_dist
,
verbose
,
quiet
):
"""
...
...
@@ -61,6 +61,8 @@ def main(cmd, NCBI_species, NCBI_taxid, outdir, tmp_dir, threads, no_refseq, onl
species taxid given in NCBI
outdir : str
path to output directory (where created database will be saved).
tmp_dir : str
Path to directory where tmp files are saved (sequences split at each stretch of
'
N
'
)
threads : int
max number of threads to use
no_refseq : bool
...
...
@@ -88,12 +90,10 @@ def main(cmd, NCBI_species, NCBI_taxid, outdir, tmp_dir, threads, no_refseq, onl
from info to debug
quiet : bool
True if nothing must be sent to stdout/stderr, False otherwise
"""
# Fixed limits. For now, we do not propose to user to give its own limits
max_dist
=
0.06
# get species name in NCBI format
# -> will be used to name output directory
# -> will be used to download summary file if given species corresponds to NCBI name
...
...
@@ -117,7 +117,6 @@ def main(cmd, NCBI_species, NCBI_taxid, outdir, tmp_dir, threads, no_refseq, onl
os
.
makedirs
(
outdir
,
exist_ok
=
True
)
os
.
makedirs
(
tmp_dir
,
exist_ok
=
True
)
# Initialize logger
# set level of logger: level is the minimum level that will be considered.
if
verbose
<=
1
:
...
...
@@ -296,7 +295,7 @@ def build_parser(parser):
def
parse
(
parser
,
argu
):
"""
arse arguments given to parser
P
arse arguments given to parser
Parameters
----------
...
...
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