项目作者: ShixiangWang

项目描述 :
:package: Automate Absolute Copy Number Calling using 'ABSOLUTE' package
高级语言: R
项目地址: git://github.com/ShixiangWang/DoAbsolute.git
创建时间: 2019-01-07T10:39:28Z
项目社区:https://github.com/ShixiangWang/DoAbsolute

开源协议:Other

下载


DoAbsolute

lifecycle
GitHub
tag
Hits

The goal of DoAbsolute is to automate ABSOLUTE calling for multiple
samples in batch-processing.

Running this tool with 1 thread (default setting) is highly
recommended
, see note!!!!

ABSOLUTE is a famous
software developed by Broad Institute, however, the RunAbsolute
function is designed for computing one sample each time and set no
default values. DoAbsolute helps user set default parameters
according to ABSOLUTE
documentation
,
provides a uniform interface to input data easily and runs
RunAbsolute parallelly.

More detail about how to analyze ABSOLUTE results please see this
link
.

Installation

You can install the released version of DoAbsolute with:

  1. # Option 1: GitHub
  2. devtools::install_github("ShixiangWang/DoAbsolute")
  3. # Option 2: r-universe
  4. #
  5. # Enable repository from shixiangwang
  6. options(repos = c(
  7. shixiangwang = 'https://shixiangwang.r-universe.dev',
  8. CRAN = 'https://cloud.r-project.org'))
  9. install.packages('DoAbsolute')

Install ABSOLUTE, the version provided by DoAbsolute is 1.0.6. You can
find available versions at
https://software.broadinstitute.org/cancer/cga/absolute_download.
Users of DoAbsolute all should accept LICENCE from Firehorse.

  1. install.packages("numDeriv")
  2. path_to_file = system.file("extdata", "ABSOLUTE_1.0.6.tar.gz", package = "DoAbsolute", mustWork = T)
  3. install.packages(path_to_file, repos = NULL, type="source")

NOTE: the builtin ABSOLUTE package is modified for fitting current R
version and reducing some errors (this may be described in NEWS.md).
If you want to use the raw package without modification, you can find
it
here.
Remember the raw package (v1.0.6) is only working under R4.2.

Example

This is a basic example which shows you how to run DoAbsolute using
example data from ABSOLUTE
documentation
.

Load package.

  1. library(DoAbsolute)
  1. example_path = system.file("extdata", package = "DoAbsolute", mustWork = T)
  2. library(data.table)
  3. # Load Test Data ----------------------------------------------------------
  4. # segmentation file
  5. seg_normal = file.path(example_path, "SNP6_blood_normal.seg.txt")
  6. seg_solid = file.path(example_path, "SNP6_solid_tumor.seg.txt")
  7. seg_metastatic = file.path(example_path, "SNP6_metastatic_tumor.seg.txt")
  8. # MAF file
  9. maf_solid = file.path(example_path, "solid_tumor.maf.txt")
  10. maf_metastatic = file.path(example_path, "metastatic_tumor.maf.txt")
  11. # read data
  12. seg_normal = fread(seg_normal)
  13. seg_solid = fread(seg_solid)
  14. seg_metastatic = fread(seg_metastatic)
  15. maf_solid = fread(maf_solid)
  16. maf_metastatic = fread(maf_metastatic)
  17. # merge data
  18. Seg = Reduce(rbind, list(seg_normal, seg_solid, seg_metastatic))
  19. Maf = Reduce(rbind, list(maf_solid, maf_metastatic))
  20. Seg$Sample = substr(Seg$Sample, 1, 15)
  21. Maf$Tumor_Sample_Barcode = substr(Maf$Tumor_Sample_Barcode, 1, 15)
  22. # test function
  23. DoAbsolute(Seg = Seg, Maf = Maf, platform = "SNP_6.0", copy.num.type = "total",
  24. results.dir = "test", keepAllResult = TRUE, verbose = TRUE)

NOTE!!!

Some inconsistent results have been reported in some issues (See
discussion in https://github.com/ShixiangWang/DoAbsolute/issues/23 and
https://github.com/ShixiangWang/DoAbsolute/issues/26), and it possibly
relates to the parallel computation backend. So, at default, run this
tool with only 1 thread is highly recommended
!

Citation

  1. Wang, Shixiang, et al. "The predictive power of tumor mutational burden
  2. in lung cancer immunotherapy response is influenced by patients' sex."
  3. International journal of cancer (2019).

Reference:

  • Carter, Scott L., et al. “Absolute quantification of somatic DNA
    alterations in human cancer.” Nature biotechnology 30.5 (2012): 413.