Roth-Lab / pyclone

Probabilistic model for inferring clonal population structure from deep NGS sequencing.
https://bitbucket.org/aroth85/pyclone/wiki/Home
Other
99 stars 37 forks source link

Specify loaders for `yaml.load` #15

Closed erobitschek closed 4 years ago

erobitschek commented 4 years ago

Currently, this warning comes up when running build_table and other stuff:

pyclone/post_process/loci.py:112: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml.load(fh)

This commit specifies a loader as recommended in the pyyaml wiki (https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation#how-to-disable-the-warning)