Skip to content
Snippets Groups Projects
Commit bf22a459 authored by Blaise Li's avatar Blaise Li
Browse files

Use safe_load for yaml files.

parent 3563eda5
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ from tempfile import NamedTemporaryFile ...@@ -77,7 +77,7 @@ from tempfile import NamedTemporaryFile
from collections import defaultdict from collections import defaultdict
# from itertools import chain # from itertools import chain
from sqlite3 import OperationalError from sqlite3 import OperationalError
from yaml import load as yload from yaml import safe_load as yload
# https://pythonhosted.org/gffutils/ # https://pythonhosted.org/gffutils/
from gffutils import FeatureDB, create_db from gffutils import FeatureDB, create_db
# from deeptools import heatmapper # from deeptools import heatmapper
...@@ -254,7 +254,7 @@ PARAMETER_INFO = "\n".join(DEFAULT_PARAMETERS.keys()) ...@@ -254,7 +254,7 @@ PARAMETER_INFO = "\n".join(DEFAULT_PARAMETERS.keys())
# **extra_parameters): # **extra_parameters):
# """Combine information from bigwig files *bigwig_filenames* and bed file # """Combine information from bigwig files *bigwig_filenames* and bed file
# *bed_filename*. # *bed_filename*.
# #
# If *plot_filename* is set, write the corresponding meta profile # If *plot_filename* is set, write the corresponding meta profile
# in this file. # in this file.
# """ # """
...@@ -279,7 +279,7 @@ PARAMETER_INFO = "\n".join(DEFAULT_PARAMETERS.keys()) ...@@ -279,7 +279,7 @@ PARAMETER_INFO = "\n".join(DEFAULT_PARAMETERS.keys())
# val = [None] * nb_samples # val = [None] * nb_samples
# hm_params[key] = val # hm_params[key] = val
# heatm.parameters = hm_params # heatm.parameters = hm_params
# #
# if plot_filename is not None: # if plot_filename is not None:
# print(f"plotting profile to {plot_filename}") # print(f"plotting profile to {plot_filename}")
# prof_params = keyfilter(is_prof_param, parameters) # prof_params = keyfilter(is_prof_param, parameters)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment