diff --git a/fdog/libs/addtaxon.py b/fdog/libs/addtaxon.py index 8e38620..94a34e6 100644 --- a/fdog/libs/addtaxon.py +++ b/fdog/libs/addtaxon.py @@ -54,6 +54,7 @@ def create_folders(outPath, spec_name, coreTaxa, noAnno): def generate_spec_name(tax_id, name, ver): + """ Create species name with the format @@ """ if name == "": ncbi_name = tree_fn.check_tax_id(tax_id) name = tree_fn.abbr_ncbi_name(ncbi_name) diff --git a/fdog/libs/alignment.py b/fdog/libs/alignment.py index 91dcc58..a3277b1 100644 --- a/fdog/libs/alignment.py +++ b/fdog/libs/alignment.py @@ -31,6 +31,7 @@ ##### FUNCTIONS RELATED TO SEQ ALIGNMENT ##### def check_fasta36_executable(fdogPath): + """ Check if FASTA36 installed in fdogPath """ try: fasta36_cmd = '%s/bin/aligner/bin/ggsearch36' % fdogPath subprocess.check_output(fasta36_cmd, shell = True, stderr = subprocess.STDOUT) diff --git a/fdog/libs/blast.py b/fdog/libs/blast.py index ff41608..ff07f76 100644 --- a/fdog/libs/blast.py +++ b/fdog/libs/blast.py @@ -72,6 +72,7 @@ def parse_blast_xml(blast_output): def make_blastdb(args): + """ Make blastDB in coreTaxa_dir (for fdog.addTaxon and fdog.addTaxa) """ (specName, specFile, outPath, silent) = args blastCmd = 'makeblastdb -dbtype prot -in %s -out %s/coreTaxa_dir/%s/%s' % (specFile, outPath, specName, specName) if silent == True: