raphael-group / THetA

Tumor Heterogeneity Analysis (THetA) and THetA2 are algorithms that estimate the tumor purity and clonal/subclonal copy number aberrations directly from high-throughput DNA sequencing data. This repository includes the updated algorithm, called THetA2.
http://compbio.cs.brown.edu/projects/theta/
71 stars 33 forks source link

Restore SIGPIPE handler in createTHetAExomeInput.py #5

Closed jje42 closed 9 years ago

jje42 commented 9 years ago

This fix addresses a problem regarding broken pipe messages that has been discussed on the Google Groups help forum. See,

https://groups.google.com/forum/#!topic/theta-users/GwfdoQBTkYo

The function get_read_length() creates a POSIX pipe via the subprocess module can cause exceptions to be raise as Python has redefined the signal handler for SIGPIPE to ignore this signal. This fix restores the signal handler for the subprocess calls.