-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
40 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM quay.io/wtsicgp/pcap-core:5.2.1 as builder | ||
FROM quay.io/wtsicgp/pcap-core:5.4.2 as builder | ||
|
||
USER root | ||
|
||
# ALL tool versions used by opt-build.sh | ||
ENV VER_CGPVCF="v2.2.1" | ||
ENV VER_VCFTOOLS="0.1.16" | ||
ENV VER_ALLELECOUNT="4.1.0" | ||
ENV VER_ALLELECOUNT="v4.2.1" | ||
|
||
RUN apt-get -yq update | ||
|
||
|
@@ -15,7 +15,7 @@ RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`-cran40/ | |
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | ||
RUN apt-get -yq update | ||
|
||
ENV DEBIAN_FRONTEND "noninteractive" | ||
ENV DEBIAN_FRONTEND "noninteractive" | ||
# no benefit of combined in builder stage | ||
RUN apt-get install -yq --no-install-recommends locales | ||
RUN apt-get install -yq --no-install-recommends g++ | ||
|
@@ -80,14 +80,13 @@ FROM ubuntu:20.04 | |
|
||
LABEL maintainer="[email protected]" \ | ||
uk.ac.sanger.cgp="Cancer, Ageing and Somatic Mutation, Wellcome Trust Sanger Institute" \ | ||
version="4.3.4" \ | ||
description="Ascat NGS docker" | ||
|
||
RUN apt-get -yq update \ | ||
&& apt-get install -qy --no-install-recommends lsb-release \ | ||
gnupg | ||
|
||
ENV DEBIAN_FRONTEND "noninteractive" | ||
ENV DEBIAN_FRONTEND "noninteractive" | ||
RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`-cran40/" >> /etc/apt/sources.list \ | ||
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 \ | ||
&& apt-get -yq update \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,7 +102,7 @@ Please see the [wiki][ascatngs-wiki] for how to obtain/generate the | |
## LICENCE | ||
|
||
``` | ||
Copyright (c) 2014-2019 Genome Research Ltd. | ||
Copyright (c) 2014-2020 Genome Research Ltd. | ||
Author: CASM/Cancer IT <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
########## LICENCE ########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
@@ -68,7 +68,7 @@ BEGIN | |
if ( $options->{'counts_input'} == 1) { | ||
my $ascat_out = File::Spec->catdir(abs_path($options->{'tmp'}),'ascat'); | ||
make_path($ascat_out) unless(-e $ascat_out); | ||
$threads->run(2, 'deploy_counts', $options); | ||
$threads->run(2, 'deploy_counts', $options); | ||
} | ||
Sanger::CGP::Ascat::Implement::ascat($options) if(!exists $options->{'process'} || $options->{'process'} eq 'ascat'); | ||
if(!exists $options->{'process'} || $options->{'process'} eq 'finalise') { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
@@ -50,14 +50,14 @@ BEGIN | |
|
||
{ | ||
my $opts = setup(); | ||
|
||
my $contigs; | ||
my $mt_samples; | ||
my $wt_samples; | ||
|
||
#If tumour and sample name are provided dont require BAM or ref files | ||
#and must build sample and ref object here | ||
if ( defined $opts->{'tn'} and defined $opts->{'nn'} ) { | ||
if ( defined $opts->{'tn'} and defined $opts->{'nn'} ) { | ||
$mt_samples->{ $opts->{'tn'} } = new Sanger::CGP::Vcf::Sample( | ||
-name => $opts->{'tn'} , | ||
-study => undef, | ||
|
@@ -239,7 +239,7 @@ sub setup{ | |
pod2usage(-message => "\nERROR: When using sample name arguments ref. species must be specified (-rs)\n", -verbose => 1, -output => \*STDERR) if( !( defined $opts{'rs'} && defined $opts{'rs'}) ); | ||
pod2usage(-message => "\nERROR: When using sample name arguments sequencing platform must be specified (-wsp & -msp)\n", -verbose => 1, -output => \*STDERR) if( !( defined $opts{'wsp'} && defined $opts{'wsp'}) and !( defined $opts{'msp'} && defined $opts{'msp'}) ); | ||
return \%opts; | ||
} | ||
} | ||
|
||
PCAP::Cli::file_for_reading('sbm', $opts{'sbm'}); | ||
PCAP::Cli::file_for_reading('sbw', $opts{'sbw'}); | ||
|
@@ -279,7 +279,7 @@ =head1 SYNOPSIS | |
-sample-accession-source-norm -wsc Normal sample accession source. | ||
-seq-platform-norm -wsp Normal sequencing platform [BAM HEADER]. | ||
Other: | ||
-tumour_name -tn Tumour sample name. For processing count file results | ||
-normal_name -nn Normal sample name. For processing count file results | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
@@ -50,7 +50,7 @@ BEGIN | |
$options->{'tumour'} = $options->{'bam'}; #map input file to tumour | ||
$options->{'tumour_name'} = (PCAP::Bam::sample_name($options->{'bam'}))[0]; | ||
my $threads = PCAP::Threaded->new($options->{'threads'}); | ||
|
||
# register any process that can run in parallel here | ||
$threads->add_function('allele_count', \&Sanger::CGP::Ascat::Implement::allele_count); | ||
|
||
|
@@ -149,7 +149,7 @@ sub setup { | |
make_path($logs) unless(-d $logs); | ||
|
||
$opts{'tmp'} = $tmpdir; | ||
|
||
return \%opts; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
########## LICENCE ########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
########## LICENCE ########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
@@ -26,12 +26,12 @@ use strict; | |
use Const::Fast qw(const); | ||
use base 'Exporter'; | ||
|
||
our $VERSION = '4.4.0'; | ||
our $VERSION = '4.4.1'; | ||
our @EXPORT = qw($VERSION); | ||
|
||
const my $LICENSE => | ||
'##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
@@ -530,7 +530,7 @@ sub deploy_counts { | |
if ($index_in == 2 ){ | ||
push @commands, sprintf 'zcat %s > %s',$options->{'normal'}, $normcount; | ||
} | ||
PCAP::Threaded::external_process_handler(File::Spec->catdir($tmp, 'logs'), \@commands, 0); | ||
PCAP::Threaded::external_process_handler(File::Spec->catdir($tmp, 'logs'), \@commands, 0); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: Peter Van Loo <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
########## LICENCE ########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
########## LICENCE ########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
##########LICENCE########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
########## LICENCE ########## | ||
# Copyright (c) 2014-2019 Genome Research Ltd. | ||
# Copyright (c) 2014-2020 Genome Research Ltd. | ||
# | ||
# Author: CASM/Cancer IT <[email protected]> | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters