markowetzlab / CNsignatures

This is data and code from our first paper on copy number signatures (Macintyre et al., Nat Gen, 2018).
https://www.nature.com/articles/s41588-018-0179-8?proof=trueInJun
MIT License
6 stars 2 forks source link

CNsignatures

If you wish to generate copy number signature activities / exposures you can do so using the CINSignatureQuantification R package which supports both the new pan-cancer copy number signatures and the ovarian copy number signatures (ones described in this repository).

This repository contains all code and documentation necessary to reproduce the analysis undertaken in the manuscript Copy-number signatures and mutational processes in ovarian carcinoma

Source code

The source code for copy-number signature analysis is split across two files:

These functions require the following packages to be installed:
NMF
flexmix
QDNAseq
YAPSA

A brief description of the wrapper functions:

Data files

The following data files, located in data/ are required for copy-number signature analysis:

How to quantify existing signatures in your own samples

Once you have formatted your copy number data into a list of segment tables, run the following functions:

How to generate your own signatures (advanced user)

Once you have formatted your copy number data into a list of segment tables, run the following functions:

Manuscript analysis Rmarkdown

The manuscript_Rmarkdown/ directory contains a collection of markdown documents which when compiled, reproduce the entire analysis carried out in the manuscript. To compile this document run knitr to html on the CN_signature_main.R file.

Packages required to compile the Rmarkdown document include: knitr RColorBrewer ggplot2 plyr dplyr QDNAseq Biobase survival survcomp flexmix DOSE ppcor VariantAnnotation org.Hs.eg.db TxDb.Hsapiens.UCSC.hg19.knownGene rtracklayer ReactomePA Hmisc corrplot ggpubr NbClust kableExtra