OncodriveCLUSTL is a clustering method to identify cancer drivers
pip install oncodriveclustl==1.1.0
One of the main goals of cancer research is the identification of the genomic elements that drive tumorigenesis. OncodriveCLUSTL is a new nucleotide sequence-based clustering algorithm to detect cancer drivers in genomic regions. OncodriveCLUSTL is based on a local background model derived from the nucleotide context mutational probabilities of the chort under study. Our method is able to identify well-known cancer drivers in coding regions. It can be applied to non-coding regions and non-human data.
OncodriveCLUSTL is available to the general public subject to certain conditions described in its LICENSE.
OncodriveCLUSTL depends on Python 3.5 and some external libraries. We recommend to install it using conda:
$ conda install -c bbglab oncodriveclustl
Note
The first time that you run OncodriveCLUSTL it will download the genome reference from our servers. By default the
downloaded datasets go to ~/.bgdata
. If you want to move these datasets to another folder you have to define the
system environment variable BGDATA_LOCAL with an export command.
The following command will show you the help:
$ oncodriveclustl --help
OncodriveCLUSTL only requires two main inputs:
Mutations file. TSV file containing the substitutions from whole exome (WXS) or whole genome (WGS) data mapped to a reference genome (e.g., human hg19 or mice c3h). This file must contain, at least, the following columns with header:
- CHROMOSOME: 1, 2,..., X, Y
- POSITION: Integer indicating the position of the mutation
- REF: Reference nucleotide
- ALT: Alternate nucleotide
- SAMPLE: Identifier of the sample
Annotations file. TSV GZIP compressed file without headers containing the genomic positions annotations of genomic elements (GEs):
- Chromosome: 1, 2,..., X, Y
- Start: Starting position of the genomic region
- End: Final position of the genomic region
- Strand: Strand of the genomic region ("+" or "-")
- Element ID: Identifier of the genomic element
- Transcript ID: Identifier of the transcript
- Symbol: Symbol of the genomic element
You can check the input formats in the files provided in the example.
OncodriveCLUSTL generates three output files :
Elements results file ('elements_results.txt'). TSV file containing results of the analyzed elements:
- SYMBOL: GE symbol
- ENSID: GE ID
- CGC: True if GE in the CGC list
- CHROMOSOME: 1, 2,..., X, Y
- STRAND: Strand of the GE ("+" or "-")
- LENGTH: length (bp) of the GE
- TOTAL_MUT: total mutations observed in the GE
- CLUSTERED_MUT: number of mutations in a cluster
- CLUSTERS: number of clusters
- SIM_CLUSTERS: number of simulated clusters
- SCORE: GE score
- P_EMPIRICAL: empirical p-value of the GE
- Q_EMPIRICAL: empirical q-value of the GE
- P_ANALYTICAL: analytical p-value of the GE
- Q_ANALYTICAL: analytical q-value of the GE
- P_TOPCLUSTER: analytical p-value of the cluster with highest cluster score
- Q_TOPCLUSTER: analytical q-value of the cluster with highest cluster score
Clusters results file ('clusters_results.tsv'). TSV file containing results of the clusters observed in the analyzed elements:
- RANK: Position of the GE in the list of
- SYMBOL: GE symbol
- ENSID: GE ID
- CGC: True if GE in the CGC list
- CHROMOSOME: 1, 2,..., X, Y
- STRAND: Strand of the GE ("+" or "-")
- COORDINATES: genomic coordinates of the cluster. It can be 'coord1,coord2' for clusters inside a single region or 'coord1,coord2;coord3,coord4' for those spanning regions (--concatenate flag)
- MAX_COORD: genomic position with the highest smoothing score inside the cluster
- WIDTH: cluster's width (pb)
- N_MUT: number of mutations in the cluster
- N_SAMPLES: number of samples with a mutation in the cluster
- FRA_UNIQ_SAMPLES: proportion of unique samples mutated in the cluster out of the total of mutations in the cluster
- SCORE: cluster score
- P: analytical p-value of the cluster
Log file ('results.log'). TXT file containing OncodriveCLUSTL's run information
After installing OncodriveCLUSTL, you can run an example of TCGA pancreatic adenocarcinomas (Ellrott et al. 2018) for coding regions (Mularoni et al., 2016) using 1000 simulations. First you need to download the example folder. Then you run OncodriveCLUSTL with default parameters as:
$ oncodriveclustl -i ~/example/PAAD.tsv.gz -r ~/example/cds_regions.gz -o ~/example/output_example
The results will be saved in a folder named output_example
.
You can compute a more sophisticated analysis and generate a quantile-quantile plot by typing:
$ oncodriveclustl -i ~/example/PAAD.tsv.gz -r ~/example/cds_regions.gz -o ~/example/output_example -sw 15 -cw 15 -simw 35 -sim region_restricted --concatenate --qqplot
If you want to run a specific GE and generate a plot its observed clusters, you can type:
$ oncodriveclustl -i ~/example/PAAD.tsv.gz -r ~/example/cds_regions.gz -o ~/example/output_example -sw 15 -cw 15 -simw 35 -sim region_restricted --concatenate --clustplot -e KRAS