From bf22a459a69ee8f6f14037a95725aa7f1bb2df56 Mon Sep 17 00:00:00 2001
From: Blaise Li <blaise.li__git@nsup.org>
Date: Thu, 20 May 2021 12:21:43 +0200
Subject: [PATCH] Use safe_load for yaml files.

---
 scripts/create_metagene_profile.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/create_metagene_profile.py b/scripts/create_metagene_profile.py
index 6e95ce4..7b56569 100755
--- a/scripts/create_metagene_profile.py
+++ b/scripts/create_metagene_profile.py
@@ -77,7 +77,7 @@ from tempfile import NamedTemporaryFile
 from collections import defaultdict
 # from itertools import chain
 from sqlite3 import OperationalError
-from yaml import load as yload
+from yaml import safe_load as yload
 # https://pythonhosted.org/gffutils/
 from gffutils import FeatureDB, create_db
 # from deeptools import heatmapper
@@ -254,7 +254,7 @@ PARAMETER_INFO = "\n".join(DEFAULT_PARAMETERS.keys())
 #                    **extra_parameters):
 #     """Combine information from bigwig files *bigwig_filenames* and bed file
 #     *bed_filename*.
-# 
+#
 #     If *plot_filename* is set, write the corresponding meta profile
 #     in this file.
 #     """
@@ -279,7 +279,7 @@ PARAMETER_INFO = "\n".join(DEFAULT_PARAMETERS.keys())
 #                 val = [None] * nb_samples
 #         hm_params[key] = val
 #     heatm.parameters = hm_params
-# 
+#
 #     if plot_filename is not None:
 #         print(f"plotting profile to {plot_filename}")
 #         prof_params = keyfilter(is_prof_param, parameters)
-- 
GitLab