Skip to content

Commit f445446

Browse files
committed
RFCT Avoid code repetition
1 parent 37044a2 commit f445446

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gmsc_mapper/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,17 +375,17 @@ def generate_fasta(output,queryfile,resultfile):
375375
def habitat(args,resultfile):
376376
from gmsc_mapper.map_habitat import smorf_habitat
377377
logger.debug('Starting habitat annotation...')
378-
single_number,single_percentage,multi_number,multi_percentage = smorf_habitat(args.habitatindex,args.output,args.habitat,resultfile)
378+
r_habitat = smorf_habitat(args.habitatindex,args.output,args.habitat,resultfile)
379379
logger.info('habitat annotation has done.')
380-
return single_number,single_percentage,multi_number,multi_percentage
380+
return r_habitat
381381

382382
def taxonomy(args,resultfile,tmpdirname):
383383
from gmsc_mapper.map_taxonomy import deep_lca,taxa_summary
384384
logger.debug('Start taxonomy annotation...')
385385
deep_lca(args.taxonomyindex,args.taxonomy,args.output,resultfile,tmpdirname)
386-
annotated_number,rank_number,rank_percentage = taxa_summary(args.output)
386+
r_summary = taxa_summary(args.output)
387387
logger.info('Taxonomy annotation complete.')
388-
return annotated_number,rank_number,rank_percentage
388+
return r_summary
389389

390390
def quality(args,resultfile):
391391
from gmsc_mapper.map_quality import smorf_quality

0 commit comments

Comments
 (0)