forked from broadinstitute/mutect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_regression.pl
executable file
·37 lines (32 loc) · 1.35 KB
/
run_regression.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/perl -w
use strict;
my $size = shift() || "micro";
my $REF="/seq/references/Homo_sapiens_assembly19/v1/Homo_sapiens_assembly19.fasta";
my $DBSNP="/xchip/cga/reference/hg19/dbsnp_132.b37.vcf";
my $COSMIC="/xchip/cga/reference/hg19/hg19_cosmic_v54_120711.vcf";
my $PON="/xchip/cga/reference/hg19/refseq_exome_10bp_hg19_300_1kg_normal_panel.vcf";
my $MUTECT_JAR=`find target -name "mutect-*.jar"`;
my $OUTPUT_DIR="/tmp/regression_trial";
my $JAVA_OPTS = "";
#$JAVA_OPTS = "-agentpath:/Applications/jprofiler7/bin/macos/libjprofilerti.jnilib=port=8849";
chomp($MUTECT_JAR);
my $cmd =
"mkdir -p $OUTPUT_DIR && java -Xmx1g " . $JAVA_OPTS . " " .
"-jar $MUTECT_JAR " .
"--analysis_type MuTect " .
"--reference_sequence $REF " .
"--dbsnp $DBSNP " .
"--cosmic $COSMIC " .
"--normal_panel $PON " .
"--tumor_sample_name Tumor --normal_sample_name Normal " .
"--fraction_contamination 0.01 " .
"--force_output " .
"-dt NONE " .
"-I:normal testdata/HCC1143_BL.cghub.ccle.$size.bam " .
"-I:tumor testdata/HCC1143.cghub.ccle.$size.bam " .
"-o $OUTPUT_DIR/ccle.$size.call_stats.txt " .
"-vcf $OUTPUT_DIR/ccle.$size.vcf " .
"--tumor_depth_file $OUTPUT_DIR/ccle.$size.tumor.depth.wig.txt " .
"--normal_depth_file $OUTPUT_DIR/ccle.$size.normal.depth.wig.txt " .
"-L testdata/target.exons.$size.bed";
system($cmd) == 0 or die();