This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gerge branch 'activeDev' of https://github.com/CCBR/Pipeliner into ac…
…tiveDev
- Loading branch information
Showing
34 changed files
with
810 additions
and
424 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
Results-template/Scripts/make_freec_pass1_exome_tn_config.pl
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use List::Util 'shuffle'; | ||
|
||
#INPUT | ||
|
||
#my $mergedmaf = $ARGV[1] . '_out/oncotator_out/' . $ARGV[1] . '_merged.maf'; #to fix... | ||
#open C, ">$mergedmaf"; | ||
|
||
my $outfile = $ARGV[0] . '/freec_exome_config.txt'; | ||
my $chrLenFile = $ARGV[1]; | ||
my $chrFiles = $ARGV[2]; | ||
my $tumormateFile = $ARGV[3]; | ||
my $controlmateFile = $ARGV[4]; | ||
my $makePileup = $ARGV[5]; | ||
my $fastaFile = $ARGV[6]; | ||
my $SNPfile = $ARGV[7]; | ||
my $targets = $ARGV[8]; | ||
|
||
open C, ">$outfile"; | ||
|
||
print C '[general]' . "\n\n"; | ||
|
||
print C "BedGraphOutput = TRUE\ndegree = 1\nforceGCcontentNormalization = 1\nminCNAlength = 3\nnoisyData = TRUE\nreadCountThreshold = 50\n"; | ||
print C "chrLenFile = $chrLenFile\n"; | ||
print C "ploidy = 2,3,4,5\nbreakPointThreshold = 0.8\nwindow = 0\n"; | ||
print C "chrFiles = $chrFiles\n"; | ||
print C "minimalSubclonePresence = 30\nprintNA = FALSE\ncontaminationAdjustment = TRUE\nmaxThreads = 24\nnumberOfProcesses = 24\n"; | ||
print C "outputDir = $ARGV[0]\n\n"; | ||
|
||
print C '[sample]' . "\n\n"; | ||
|
||
print C "mateFile = $tumormateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[control]' . "\n\n"; | ||
|
||
print C "mateFile = $controlmateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[target]' . "\n\n"; | ||
|
||
print C "captureRegions = $targets\n\n"; | ||
|
||
print C '[BAF]' . "\n\n"; | ||
|
||
print C "makePileup = $makePileup\n"; | ||
print C "fastaFile = $fastaFile\n"; | ||
print C "minimalCoveragePerPosition = 20\nminimalQualityPerPosition = 20\n"; | ||
print C "SNPfile = $SNPfile"; |
46 changes: 46 additions & 0 deletions
46
Results-template/Scripts/make_freec_pass1_wgs_tn_config.pl
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use List::Util 'shuffle'; | ||
|
||
#INPUT | ||
|
||
#my $mergedmaf = $ARGV[1] . '_out/oncotator_out/' . $ARGV[1] . '_merged.maf'; #to fix... | ||
#open C, ">$mergedmaf"; | ||
|
||
my $outfile = $ARGV[0] . '/freec_wgs_config.txt'; | ||
my $chrLenFile = $ARGV[1]; | ||
my $chrFiles = $ARGV[2]; | ||
my $tumormateFile = $ARGV[3]; | ||
my $controlmateFile = $ARGV[4]; | ||
my $makePileup = $ARGV[5]; | ||
my $fastaFile = $ARGV[6]; | ||
my $SNPfile = $ARGV[7]; | ||
|
||
open C, ">$outfile"; | ||
|
||
print C '[general]' . "\n\n"; | ||
|
||
print C "chrLenFile = $chrLenFile\n"; | ||
print C "ploidy = 2,3,4,5,6\nbreakPointThreshold = 0.8\nwindow = 1000\n"; | ||
print C "chrFiles = $chrFiles\n"; | ||
print C "minimalSubclonePresence = 20\ncontaminationAdjustment = TRUE\nmaxThreads = 24\nnumberOfProcesses = 24\n"; | ||
print C "outputDir = $ARGV[0]\n\n"; | ||
|
||
print C '[sample]' . "\n\n"; | ||
|
||
print C "mateFile = $tumormateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[control]' . "\n\n"; | ||
|
||
print C "mateFile = $controlmateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[target]' . "\n\n"; | ||
|
||
print C '[BAF]' . "\n\n"; | ||
|
||
print C "makePileup = $makePileup\n"; | ||
print C "fastaFile = $fastaFile\n"; | ||
print C "minimalCoveragePerPosition = 20\nminimalQualityPerPosition = 20\n"; | ||
print C "SNPfile = $SNPfile"; |
68 changes: 68 additions & 0 deletions
68
Results-template/Scripts/make_freec_pass2_exome_tn_config.pl
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use List::Util 'shuffle'; | ||
|
||
#INPUT | ||
|
||
#my $mergedmaf = $ARGV[1] . '_out/oncotator_out/' . $ARGV[1] . '_merged.maf'; #to fix... | ||
#open C, ">$mergedmaf"; | ||
|
||
my $outfile = $ARGV[0] . '/freec_exome_config.txt'; | ||
my $chrLenFile = $ARGV[1]; | ||
my $chrFiles = $ARGV[2]; | ||
my $tumormateFile = $ARGV[3]; | ||
my $controlmateFile = $ARGV[4]; | ||
my $makePileup = $ARGV[5]; | ||
my $fastaFile = $ARGV[6]; | ||
my $SNPfile = $ARGV[7]; | ||
my $targets = $ARGV[8]; | ||
my @line=(); | ||
my $contamination=''; | ||
my $ploidy=''; | ||
my $rep=0; | ||
|
||
my $infile=$ARGV[9]; | ||
open G, "<$infile"; | ||
while (<G>){ | ||
chomp; | ||
last if m/^$/; | ||
@line = split; | ||
next if ($line[0] =~ m'cellularity'); | ||
if ($rep==0) { | ||
$contamination=(1-$line[0]); | ||
$ploidy=$line[1]; | ||
$rep++; | ||
} | ||
} | ||
|
||
open C, ">$outfile"; | ||
|
||
print C '[general]' . "\n\n"; | ||
|
||
print C "BedGraphOutput = TRUE\ndegree = 1\nforceGCcontentNormalization = 1\nminCNAlength = 3\nnoisyData = TRUE\nreadCountThreshold = 50\n"; | ||
print C "chrLenFile = $chrLenFile\n"; | ||
print C "ploidy = $ploidy\ncontamination=$contamination\nbreakPointThreshold = 0.8\nwindow = 0\n"; | ||
print C "chrFiles = $chrFiles\n"; | ||
print C "minimalSubclonePresence = 30\nprintNA = FALSE\ncontaminationAdjustment = TRUE\nmaxThreads = 24\nnumberOfProcesses = 24\n"; | ||
print C "outputDir = $ARGV[0]\n\n"; | ||
|
||
print C '[sample]' . "\n\n"; | ||
|
||
print C "mateFile = $tumormateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[control]' . "\n\n"; | ||
|
||
print C "mateFile = $controlmateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[target]' . "\n\n"; | ||
|
||
print C "captureRegions = $targets\n\n"; | ||
|
||
print C '[BAF]' . "\n\n"; | ||
|
||
print C "makePileup = $makePileup\n"; | ||
print C "fastaFile = $fastaFile\n"; | ||
print C "minimalCoveragePerPosition = 20\nminimalQualityPerPosition = 20\n"; | ||
print C "SNPfile = $SNPfile"; |
64 changes: 64 additions & 0 deletions
64
Results-template/Scripts/make_freec_pass2_wgs_tn_config.pl
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use List::Util 'shuffle'; | ||
|
||
#INPUT | ||
|
||
#my $mergedmaf = $ARGV[1] . '_out/oncotator_out/' . $ARGV[1] . '_merged.maf'; #to fix... | ||
#open C, ">$mergedmaf"; | ||
|
||
my $outfile = $ARGV[0] . '/freec_wgs_config.txt'; | ||
my $chrLenFile = $ARGV[1]; | ||
my $chrFiles = $ARGV[2]; | ||
my $tumormateFile = $ARGV[3]; | ||
my $controlmateFile = $ARGV[4]; | ||
my $makePileup = $ARGV[5]; | ||
my $fastaFile = $ARGV[6]; | ||
my $SNPfile = $ARGV[7]; | ||
my @line=(); | ||
my $contamination=''; | ||
my $ploidy=''; | ||
my $rep=0; | ||
|
||
my $infile=$ARGV[8]; | ||
open G, "<$infile"; | ||
while (<G>){ | ||
chomp; | ||
last if m/^$/; | ||
@line = split; | ||
next if ($line[0] =~ m'cellularity'); | ||
if ($rep==0) { | ||
$contamination=(1-$line[0]); | ||
$ploidy=$line[1]; | ||
$rep++; | ||
} | ||
} | ||
|
||
open C, ">$outfile"; | ||
|
||
print C '[general]' . "\n\n"; | ||
|
||
print C "chrLenFile = $chrLenFile\n"; | ||
print C "ploidy = 2,3,4,5,6\nbreakPointThreshold = 0.8\nwindow = 1000\n"; | ||
print C "chrFiles = $chrFiles\n"; | ||
print C "minimalSubclonePresence = 20\ncontaminationAdjustment = TRUE\nmaxThreads = 24\nnumberOfProcesses = 24\n"; | ||
print C "outputDir = $ARGV[0]\n\n"; | ||
|
||
print C '[sample]' . "\n\n"; | ||
|
||
print C "mateFile = $tumormateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[control]' . "\n\n"; | ||
|
||
print C "mateFile = $controlmateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[target]' . "\n\n"; | ||
|
||
print C '[BAF]' . "\n\n"; | ||
|
||
print C "makePileup = $makePileup\n"; | ||
print C "fastaFile = $fastaFile\n"; | ||
print C "minimalCoveragePerPosition = 20\nminimalQualityPerPosition = 20\n"; | ||
print C "SNPfile = $SNPfile"; |
62 changes: 62 additions & 0 deletions
62
Results-template/Scripts/make_freec_wgs_tumoronly_config.pl
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/perl -w | ||
use strict; | ||
use List::Util 'shuffle'; | ||
|
||
#INPUT | ||
|
||
#my $mergedmaf = $ARGV[1] . '_out/oncotator_out/' . $ARGV[1] . '_merged.maf'; #to fix... | ||
#open C, ">$mergedmaf"; | ||
|
||
my $canvasfile=$ARGV[7]; | ||
my $outfile = $ARGV[0] . '/freec_wgs_config.txt'; | ||
my $chrLenFile = $ARGV[1]; | ||
my $chrFiles = $ARGV[2]; | ||
my $tumormateFile = $ARGV[3]; | ||
my $makePileup = $ARGV[4]; | ||
my $fastaFile = $ARGV[5]; | ||
my $SNPfile = $ARGV[6]; | ||
|
||
my $cmd=''; | ||
my $contamination='' | ||
my $ploidy='' | ||
|
||
$cmd='zgrep EstimatedTumorPurity ' . $canvasfile . ' >> purity_ploidy_prior.txt; zgrep OverallPloidy ' . $canvasfile . ' >> ' . $ARGV[0] . '/purity_ploidy_prior.txt'; | ||
system($cmd); | ||
|
||
my $infile=$ARGV[0] . '/purity_ploidy_prior.txt'; | ||
open G, "<$infile"; | ||
while (<G>){ | ||
chomp; | ||
last if m/^$/; | ||
@line = split '=', $_; | ||
if ($line[0] =~ m'Purity') { | ||
$contamination=(1-$line[1]); | ||
} | ||
if ($line[0] =~ m'Ploidy') { | ||
$ploidy=$line[1]; | ||
} | ||
} | ||
|
||
open C, ">$outfile"; | ||
|
||
print C '[general]' . "\n\n"; | ||
|
||
print C "chrLenFile = $chrLenFile\n"; | ||
print C "ploidy = $ploidy\ncontamination = $contamination\nbreakPointThreshold = 0.8\nwindow = 1000\n"; | ||
print C "chrFiles = $chrFiles\n"; | ||
print C "minimalSubclonePresence = 20\ncontaminationAdjustment = TRUE\nmaxThreads = 24\nnumberOfProcesses = 24\n"; | ||
print C "outputDir = $ARGV[0]\n\n"; | ||
|
||
print C '[sample]' . "\n\n"; | ||
|
||
print C "mateFile = $tumormateFile\n"; | ||
print C "inputFormat = BAM\nmateOrientation = FR\n\n"; | ||
|
||
print C '[target]' . "\n\n"; | ||
|
||
print C '[BAF]' . "\n\n"; | ||
|
||
print C "makePileup = $makePileup\n"; | ||
print C "fastaFile = $fastaFile\n"; | ||
print C "minimalCoveragePerPosition = 20\nminimalQualityPerPosition = 20\n"; | ||
print C "SNPfile = $SNPfile"; |
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
Oops, something went wrong.