Skip to content

seaborn-v0_8-dark issue persisting in v0.1.8, attempts to re-run without re-modelling yields different passed variants #28

Description

@rachwo

Hi there!

After running cellsnp-lite, I attempted to run mquad using the following:

mquad \
-c /cellsnplite_allsamples/sample1 \
-o /outputfolder \
-p 20 \
--minDP 5

but get this issue:

Traceback (most recent call last):
  File "/hostservername/software/linux-x86_64-centos7/Anaconda3-4.10.1/lib/python3.8/site-packages/matplotlib/style/core.py", line 121, in use
    rc = rc_params_from_file(style, use_default_template=False)
  File "/hostservername/software/linux-x86_64-centos7/Anaconda3-4.10.1/lib/python3.8/site-packages/matplotlib/__init__.py", line 883, in rc_params_from_file
    config_from_file = _rc_params_in_file(fname, fail_on_error=fail_on_error)
  File "/hostservername/software/linux-x86_64-centos7/Anaconda3-4.10.1/lib/python3.8/site-packages/matplotlib/__init__.py", line 812, in _rc_params_in_file
    with _open_file_or_url(fname) as fd:
  File "/hostservername/software/linux-x86_64-centos7/Anaconda3-4.10.1/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/hostservername/software/linux-x86_64-centos7/Anaconda3-4.10.1/lib/python3.8/site-packages/matplotlib/__init__.py", line 790, in _open_file_or_url
    with open(fname, encoding=encoding) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'seaborn-v0_8-dark'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/myusername/.local/bin/mquad", line 8, in <module>
    sys.exit(main())
  File "/home/myusername/.local/lib/python3.8/site-packages/mquad/mquad_CLI.py", line 144, in main
    best_ad, best_dp = mdphd.selectInformativeVariants(min_cells = minCell, out_dir = out_dir, tenx_cutoff=cutoff)
  File "/home/myusername/.local/lib/python3.8/site-packages/mquad/mquad_batch_mixbin.py", line 242, in selectInformativeVariants
    plt.style.use('seaborn-v0_8-dark')
  File "/hostservername/software/linux-x86_64-centos7/Anaconda3-4.10.1/lib/python3.8/site-packages/matplotlib/style/core.py", line 124, in use
    raise IOError(
OSError: 'seaborn-v0_8-dark' not found in the style library and input is not a valid URL or path; see `style.available` for list of available styles

The output directory contained the following files:

  1. passed_variant_names.txt, 2) deltaBIC_cdf.pdf, 3) debug_unsorted_BIC_params.csv, and 4) BIC_params.csv

I was missing the passed_dp.mtx and passed_ad.mtx, and top variants heatmap.pdf so I attempted to re-run without re-fitting the model using:

mquad \
-c /cellsnplite_allsamples/sample1 \
-o /new_output_folder \
--BICparams /outputfolder/debug_unsorted_BIC_params.csv

This seemed to work and it generated

  1. passed_dp.mtx 2) passed_ad.mtx 3) top variants heatmap.pdf 4) another passed_variant_names.txt file and 5) another deltaBIC_cdf.pdf.

However, I noticed that the passed_variant_names.txt file contains a different list of variants than the first list. Why might that be? The variants in the top variants heatmap pdf match the variants in the passed_variant_names.txt file generated from the re-run attempt, but when I look at their scores* they seem to be incorrect. Is this expected behaviour?

*(I assume based on looking at the BIC_params.csv output. The passed_variant_names.txt generated from the initial run had a higher num_cells and deltaBIC. The passed variant names generated from the re-run pointed to variants that had deltaBIC <=0 and lower num_cells.)

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions