Git Product home page Git Product logo

schism's People

Contributors

niknafs avatar rachelkarchin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

schism's Issues

nan value in Hypothesis Testing

I'm getting a nan value on the Hypothesis testing while running the Step-Through mode. It seems that if the s.d. of some samples were 0 in the .cellularity file after using the prepare_for_hypothesist_test command. Once I added a small s.d. the issue resolved. Not sure if that's the appropriate course of action though.

Is this a bug?

Tree construction failed at last step

Hi Niknafs:

I try to use SCHISM to construct tree using data generated by Pyclone.

It works fine for the first 5 steps in 'step through' mode but failed at the last step.
The error message is:
'Traceback (most recent call last):
File "/anaconda2/bin/runSchism", line 155, in
main()
File "/anaconda2/bin/runSchism", line 152, in main
args.func(args)
File "/anaconda2/lib/python2.7/site-packages/SCHISM/GA.py", line 136, in generate_consensus_tree
plot_consensus_tree(args)
File "/anaconda2/lib/python2.7/site-packages/SCHISM/visualize.py", line 325, in plot_consensus_tree
root = list(set(vertices) - set(zip(*edges)[1]))[0]
IndexError: list index out of range'

I can't see what is going wrong, I also got my "E2.GA.consensusTree", which looks like:
c
WeChatf58c67b3f883ff898f1c29e61c10594c

Required vs optional CLI arguments

Is the config file a required argument? Might be nice to add required=True so that argparse catches this, or if there is default then put a default=XXX in the add_argument method. Not sure if other parameters might need this.

ValueError("Invalid RGBA argument: {!r}".format(orig_c))

Hello, it seems that there is a problem about the arguments related to matplotlib-v.2.2.3.

I am attempting to test the E1 example with SCHISM-v.1.1.2. After modifying the absolute path in E1.yaml. I run the following command as Usage Examples manual:

$ runSchism analyze --config E1.yaml

but it returns warnings:

  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/bin/runSchism", line 155, in <module>
    main()
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/bin/runSchism", line 152, in main
    args.func(args)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/bin/runSchism", line 137, in run_schism
    plot_mut_clust_cellularity(args)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/SCHISM/visualize.py", line 530, in plot_mut_clust_cellularity
    alpha = 0.5)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/__init__.py", line 1867, in inner
    return func(ax, *args, **kwargs)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 5165, in fill_between
    collection = mcoll.PolyCollection(polys, **kwargs)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/collections.py", line 961, in __init__
    Collection.__init__(self, **kwargs)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/collections.py", line 170, in __init__
    self.update(kwargs)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/artist.py", line 888, in update
    for k, v in props.items()]
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/artist.py", line 882, in _update_property
    return func(v)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/collections.py", line 677, in set_color
    self.set_facecolor(c)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/collections.py", line 705, in set_facecolor
    self._set_facecolor(c)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/collections.py", line 690, in _set_facecolor
    self._facecolors = mcolors.to_rgba_array(c, self._alpha)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/colors.py", line 267, in to_rgba_array
    result[i] = to_rgba(cc, alpha)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/colors.py", line 168, in to_rgba
    rgba = _to_rgba_no_colorcycle(c, alpha)
  File "/home/ninomoriaty/anaconda3/envs/EvolCancer/lib/python2.7/site-packages/matplotlib/colors.py", line 212, in _to_rgba_no_colorcycle
    raise ValueError("Invalid RGBA argument: {!r}".format(orig_c))
ValueError: Invalid RGBA argument: 'f'

And it returns the following output documents : 0_E1_result.cluster.cellularity, 0_E1_result.HT.cpov, 0_E1_result.HT.cpov.pdf, 0_E1_result.HT.pov, 0_E1_result.HT.pvalues, 0_E1_result.mutation.cellularity.

It seems that the problem is caused by the arguments which conflict with matplotlib-2.2.3. But I am not sure about how to deal with it. And that is why I am writing an issue for some recommendation and advice.

SCHISM GUI

I saw in interesting github package that turns python command line tools into GUI's (https://github.com/chriskiehl/Gooey). Works by figuring out the inputs from argparse. Seems to work on SCHISM (didn't bother to get cairo installed though):

picture1

picture2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.