You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN R -q -e 'source("http://bioconductor.org/biocLite.R"); biocLite(c("devtools","RColorBrewer","ggplot2","gridExtra","readr","doParallel","foreach"))'
34
+
RUN R -q -e 'source("http://bioconductor.org/biocLite.R"); biocLite(c("gtools", "optparse", "devtools","RColorBrewer","ggplot2","gridExtra","readr","doParallel","foreach", "splines"))'
34
35
RUN R -q -e 'devtools::install_github("Crick-CancerGenomics/ascat/ASCAT")'
35
-
RUN R -q -e 'devtools::install_github("Wedge-Oxford/battenberg")'
36
36
37
-
RUN curl -sSL -o battenberg_wgs.R https://raw.githubusercontent.com/Wedge-Oxford/battenberg/master/inst/example/battenberg_wgs.R
37
+
RUN mkdir -p /opt/battenberg
38
+
COPY . /opt/battenberg/
39
+
RUN R -q -e 'install.packages("/opt/battenberg", repos=NULL, type="source")'
40
+
38
41
# modify paths to reference files
39
-
RUN cat battenberg_wgs.R | \
42
+
RUN cat /opt/battenberg/inst/example/battenberg_wgs.R | \
40
43
sed 's|IMPUTEINFOFILE = \".*|IMPUTEINFOFILE = \"/opt/battenberg_reference/1000genomes_2012_v3_impute/impute_info.txt\"|' | \
41
44
sed 's|G1000PREFIX = \".*|G1000PREFIX = \"/opt/battenberg_reference/1000genomes_2012_v3_loci/1000genomesAlleles2012_chr\"|' | \
42
45
sed 's|G1000PREFIX_AC = \".*|G1000PREFIX_AC = \"/opt/battenberg_reference/1000genomes_2012_v3_loci/1000genomesloci2012_chr\"|' | \
43
46
sed 's|GCCORRECTPREFIX = \".*|GCCORRECTPREFIX = \"/opt/battenberg_reference/1000genomes_2012_v3_gcContent/1000_genomes_GC_corr_chr_\"|' | \
#' @param imputeinfofile Full path to a Battenberg impute info file with pointers to Impute2 reference data
9
9
#' @param g1000prefix Full prefix path to 1000 Genomes SNP loci data, as part of the Battenberg reference data
10
10
#' @param problemloci Full path to a problem loci file that contains SNP loci that should be filtered out
11
-
#' @param gccorrectprefix Full prefix path to GC content files, as part of the Battenberg reference data, not required for SNP6 data (Default: NA)
11
+
#' @param gccorrectprefix Full prefix path to GC content files, as part of the Battenberg reference data, not required for SNP6 data (Default: NULL)
12
+
#' @param repliccorrectprefix Full prefix path to replication timing files, as part of the Battenberg reference data, not required for SNP6 data (Default: NULL)
12
13
#' @param g1000allelesprefix Full prefix path to 1000 Genomes SNP alleles data, as part of the Battenberg reference data, not required for SNP6 data (Default: NA)
13
14
#' @param ismale A boolean set to TRUE if the donor is male, set to FALSE if female, not required for SNP6 data (Default: NA)
14
15
#' @param data_type String that contains either wgs or snp6 depending on the supplied input data (Default: wgs)
@@ -30,7 +31,7 @@
30
31
#' @param min_normal_depth Minimum depth required in the matched normal for a SNP to be considered as part of the wgs analysis (Default: 10)
31
32
#' @param min_base_qual Minimum base quality required for a read to be counted when allele counting (Default: 20)
32
33
#' @param min_map_qual Minimum mapping quality required for a read to be counted when allele counting (Default: 35)
33
-
#' @param calc_seg_baf_option Sets way to calculate BAF per segment: 1=mean, 2=median(Default: 1)
34
+
#' @param calc_seg_baf_option Sets way to calculate BAF per segment: 1=mean, 2=median, 3=ifelse median==0 | 1, mean, median (Default: 3)
34
35
#' @param skip_allele_counting Provide TRUE when allele counting can be skipped (i.e. its already done) (Default: FALSE)
35
36
#' @param skip_preprocessing Provide TRUE when preprocessing is already complete (Default: FALSE)
36
37
#' @param skip_phasing Provide TRUE when phasing is already complete (Default: FALSE)
@@ -40,35 +41,45 @@
40
41
#' @param norm.geno.clust.exe Helper tool for extracting data from CEL files, SNP6 pipeline only (Default: normalize_affy_geno_cluster.pl)
41
42
#' @param birdseed_report_file Sex inference output file, SNP6 pipeline only (Default: birdseed.report.txt)
42
43
#' @param heterozygousFilter Legacy option to set a heterozygous SNP filter, SNP6 pipeline only (Default: "none")
44
+
#' @param prior_breakpoints_file A two column file with prior breakpoints to be used during segmentation (Default: NULL)
# If there aren't any clonally fit segments, the above yields NA. In this case, revert to the original grid search psi_t
1641
+
if (is.na(psi_t)) {
1642
+
print("Recalculated psi_t was NA, reverting to grid search solution. This occurs when no segment could be fit with a clonal state, check sample for contamination")
0 commit comments