Perform Cytoscans/Oncoscans CNV analysis with EaCoN

public public 1yr ago Version: v1.2 0 bookmarks

This is the Snakemake workflow for CEL Oncoscan/Cytoscan analysis, powered by EaCoN .

Each tool belong to their respective authors.

See wiki for more information.

For additional informations, see STRonGR

Code Snippets

46
47
48
49
50
51
52
    script:
        "../scripts/EaCoN_process.R"


"""
This rule performs segmentation
"""
 98
 99
100
101
102
103
104
    script:
        "../scripts/EaCoN_segment.R"


"""
This rule tries to build a copy number model
"""
141
142
143
144
145
146
147
    script:
        "../scripts/EaCoN_ascn.R"


"""
This rule covers instability score
"""
SnakeMake From line 141 of rules/eacon.smk
174
175
176
177
178
179
180
    wrapper:
        "/bio/eacon/instability"


"""
This rule writes a HTML report
"""
SnakeMake From line 174 of rules/eacon.smk
232
233
script:
    "../scripts/EaCoN_annotate.R"
SnakeMake From line 232 of rules/eacon.smk
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library("EaCoN");
library("devtools");

Sys.setenv(
  PATH = paste(
    Sys.getenv("PATH"),
    snakemake@config[["params"]][["scripts"]],
    sep=":"
  )
);

EaCoN::Annotate.ff(
  RDS.file = snakemake@input[["rds"]],
  author.name = "STRonGR",
  ldb = snakemake@config[["params"]][["ldb"]],
  solo = TRUE
);
3
4
5
6
7
8
library("EaCoN");

EaCoN::ASCN.ff(
  RDS.file = snakemake@input[["rds"]],
  force = TRUE
);
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library("EaCoN");

if ("ATChannelCel" %in% names(snakemake@input)) {
  EaCoN::OS.Process(
    ATChannelCel = snakemake@input[["ATChannelCel"]],
    GCChannelCel = snakemake@input[["GCChannelCel"]],
    samplename = snakemake@wildcards[["sample"]],
    apt.build = snakemake@config[["params"]][["nar"]],
    force = TRUE
  );
} else {
  EaCoN::CS.Process(
    CEL = snakemake@input[["CEL"]],
    samplename = snakemake@wildcards[["sample"]],
    force = TRUE
  );
}
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library("EaCoN");

smooth_k <- base::as.numeric(snakemake@config[["params"]][["smooth_k"]]);
if ((is.null(snakemake@config[["params"]][["smooth_k"]])) | (snakemake@config[["params"]][["smooth_k"]] == 'NULL')) {
  smooth_k <- NULL;
}

EaCoN::Segment.ff(
  RDS.file = snakemake@input[["rds"]],
  segmenter = snakemake@config[["params"]][["segmenter"]],
  smooth.k = smooth_k,
  BAF.filter = base::as.numeric(snakemake@config[["params"]][["baf_filter"]]),
  SER.pen = base::as.numeric(snakemake@config[["params"]][["ser_pen"]]),
  nrf = base::as.numeric(snakemake@config[["params"]][["nrf"]]),
  penalty = base::as.numeric(snakemake@config[["params"]][["penalty"]]),
  force = TRUE
);
ShowHide 8 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/tdayris/cel-cnv-eacon
Name: cel-cnv-eacon
Version: v1.2
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: MIT License
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...