Skip to main content

An inference tool for tumour subclonal composition

Project description

FastClone

FastClone is a fast algorithm to infer tumour heterogeneity. Given somatic mutation frequencies and copy number data, FastClone infers subclonal composition and phylogeny. The algorithm won the first place in DREAM Somatic Mutation Calling -- Heterogeneity Challenge.

Installation

FastClone needs Python 3.5 or later version. It needs logbook, python-fire, scikit-learn, and pandas. To install the package using Pip,

git clone https://github.com/GuanLab/FastClone_GuanLab.git
pip install FastClone_GuanLab/

(Please make sure you have the slash at the end, which forces pip to install from local directory, otherwise it will run into error)

You also can directly pip install FastClone with the command below.

pip install fastclone-guanlab

Usage

FastClone accepts either MuTect VCF + Battenberg format (specified in the DREAM SMC-Het Challenge) or PyClone format.

The general format of command line for reading PyClone format files:

fastclone load-pyclone prop [FILE_NAME] [TUMOR_PURITY] solve [OUTPUT_PATHWAY]

(If purity is unavailable, input "None" at the position of [TUMOUR__PURITY], and FastClone will infer purity automatically)

A pseudo example to load samples from PyClone format files and infer (t1.tsv is included in this repository):

fastclone load-pyclone prop t1.tsv 0.8 solve ./fastclone_result

(Please make sure t1.tsv is under your current directory. Note this pseudo example only has one clone with a purity ~0.15)

The general format of command line for reading VCF + Battenberg format files:

fastclone load-mutect-battenberg prop [VCF_FILE_NAME] [TUMOR_/_NORMAL_COLUMN] [BATTENBERG_FILE_NAME] solve [OUTPUT_PATHWAY]

A pseudo example to load samples from VCF + Battenberg files (VCF + Battenberg mode does not need tumor purity):

fastclone load-mutect-battenberg prop 0009b464-b376-4fbc-8a56-da538269a02f tumor 0009b464-b376-4fbc-8a56-da538269a02f.consensus.20170119.somatic.cna.txt solve ./fastclone_result

(Example files are in the folder called Battenberg_VCF_sample)

Run fastclone for more help information.

If MuTect VCF and PyClone samples are provided, note that MuTect mutations are labelled as 'Chromosome:Coordinate:AltBase', such as 'Y:15989697:G'. Make sure PyClone ID uses the same ID.

Separately, subclone.py will infer purity (whether a starter value is given or not), and subclone identification and assignment; phylogeny.py will infer phylogeny.

Output

1.subclones.csv gives proportion of each clone in a tumor sample.

2.scores.csv gives SNPs assignment. Each column corresponding to a clone, and the entries in each column indicates how likely the SNP is assigned to the clone.

3.phylogeny.png shows the tree structure of clones.

4.phylogeny_proportion.csv gives the proportion of a subclone in its parent clone.

(We named clones with numeric values, which starts from 0, and the names are consistent within all output files)

Versions

1.0.9

  • Fix the phlogeny module, and add a new function to output the proportion of a subclone in its parent clone.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastclone-guanlab-1.0.9.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastclone_guanlab-1.0.9-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file fastclone-guanlab-1.0.9.tar.gz.

File metadata

  • Download URL: fastclone-guanlab-1.0.9.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastclone-guanlab-1.0.9.tar.gz
Algorithm Hash digest
SHA256 391499d0a551707506d2bac9d7d4344523a32b953cfd29c56a384813c00bf839
MD5 d55f092c5338a1b16ae432ddb6def929
BLAKE2b-256 b3d814810cea31577e32aa9541d6b0e2e4ac9e4752daf8578ff502f9a75bbb02

See more details on using hashes here.

File details

Details for the file fastclone_guanlab-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: fastclone_guanlab-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastclone_guanlab-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fe95106ae514e58f0b0deaaa903b146fe3a41dab5a0121e7e311c395b4185eea
MD5 d06d4226e6c06f98387b85df95c01b2a
BLAKE2b-256 d56d073947a3f438f3808ca4f549b17b101193a6eea303b34e52651451d8c1fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page