karchinlab / schism Goto Github PK
View Code? Open in Web Editor NEWSubclonal Hierarchy Inference from Somatic Mutations
License: Other
Subclonal Hierarchy Inference from Somatic Mutations
License: Other
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?
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
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.
hi,
I want to download the Cairo and PyCairo package, but i canot open the link:https://gist.github.com/Niknafs/6b50d9df9d5396a2e92e, how to solve it?
thank you!
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.
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):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.