Skip to content

Commit

Permalink
Merge pull request #50 from dufeiyu/minor_update
Browse files Browse the repository at this point in the history
Minor Update
  • Loading branch information
dufeiyu authored Jun 7, 2022
2 parents 2b77362 + cf14482 commit 76d0a4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MyeloseqHD.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"MyeloseqHD.DataTransfer":"true",
"MyeloseqHD.MinReads":5,
"MyeloseqHD.MinVaf":0.02,
"MyeloseqHD.Queue":"gtac-mgi",
"MyeloseqHD.Queue":"pathology",
"MyeloseqHD.JobGroup":"/cle/wdl/haloplex"
}
16 changes: 10 additions & 6 deletions scripts/launcher.pl
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,14 @@
die "$lib has invalid MRN: $1 MRN must be either a 10-digit number starting with 99 or a 9-digit number starting with 1i or 2";
}

if ($exception =~ /NOTRANSFER/ and $exception =~ /RESEQ/) {
die "$lib has both NOTRANSFER and RESEQ as exception and only one is allowed.";
}

my $id = $mrn.'_'.$accession;
unless (exists $hash{$id}) {
if ($exception and $exception =~ /NOTRANSFER/) {
print "$id is NOTRANSFER and no-matching of CoPath dump is ok\n";
if ($exception and $exception =~ /NOTRANSFER|RESEQ/) {
print "$id is NOTRANSFER or RESEQ and no-matching of CoPath dump is ok\n";
}
else {
die "FAIL to find matching $mrn and $accession from CoPath dump for library: $lib";
Expand All @@ -144,11 +148,11 @@
my ($index) = $index_str =~ /([ATGC]{8})AT\-AAAAAAAAAA/;

if ($exception) {
if ($exception =~ /NOTRANSFER/) {
push @cases_excluded, $lib.'_'.$index;
$exception =~ s/,?NOTRANSFER//;
if ($exception =~ /NOTRANSFER|RESEQ/) {
$exception =~ s/,?(NOTRANSFER|RESEQ),?//;
$exception = 'NONE' if $exception =~ /^\s*$/;
}
push @cases_excluded, $lib.'_'.$index if $exception =~ /NOTRANSFER/;
}
else {
$exception = 'NONE';
Expand All @@ -162,7 +166,7 @@
die "Unknown gender: $sex for library: $lib";
}
}
else { #NOTRANSFER
else { #NOTRANSFER RESEQ
($mrn, $accession, $sex, $DOB) = ('NONE') x 4;
}

Expand Down

0 comments on commit 76d0a4d

Please sign in to comment.