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

Allow paths/filenames with spaces when calling samtools #4

Closed etal closed 10 years ago

etal commented 10 years ago

In createTHetAExomeInput.py, quote the filename arguments inside each call to os.system to prevent the shell from parsing the space-containing argument as multiple tokens (i.e. garbage).

Alternative solutions not attempted here:

  1. use subprocess & avoid using the shell altogether; or
  2. use pysam & avoid creating the pileup files on disk.

Also fixed a typo.