Source code for sequana.modules_report.quast
# coding: utf-8
#
# This file is part of Sequana software
#
# Copyright (c) 2016 - Sequana Development Team
#
# File author(s):
# Dimitri Desvillechabrol <dimitri.desvillechabrol@pasteur.fr>,
# <d.desvillechabrol@gmail.com>
#
# Distributed under the terms of the 3-clause BSD license.
# The full license is in the LICENSE file, distributed with this software.
#
# website: https://github.com/sequana/sequana
# documentation: http://sequana.readthedocs.io
#
##############################################################################
"""Module to copy quast directory in the report directory"""
import os
import shutil
from sequana.utils import config
[docs]
def QuastModule(data):
"""Copy quast directory in report directory."""
quast = data
dst = os.path.join(config.output_dir, "quast")
if os.path.isdir(dst):
shutil.rmtree(dst)
elif os.path.isfile(dst):
os.remove(dst)
shutil.copytree(quast["directory"], dst)