Skip to content
Snippets Groups Projects
Commit 2e39ac2d authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Update docstrings

parent b54af626
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
Parse arguments given to parser
Parameters
----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment