Skip to content

Commit 76d0a4d

Browse files
authored
Merge pull request #50 from dufeiyu/minor_update
Minor Update
2 parents 2b77362 + cf14482 commit 76d0a4d

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

MyeloseqHD.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"MyeloseqHD.DataTransfer":"true",
99
"MyeloseqHD.MinReads":5,
1010
"MyeloseqHD.MinVaf":0.02,
11-
"MyeloseqHD.Queue":"gtac-mgi",
11+
"MyeloseqHD.Queue":"pathology",
1212
"MyeloseqHD.JobGroup":"/cle/wdl/haloplex"
1313
}

scripts/launcher.pl

+10-6
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,14 @@
131131
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";
132132
}
133133

134+
if ($exception =~ /NOTRANSFER/ and $exception =~ /RESEQ/) {
135+
die "$lib has both NOTRANSFER and RESEQ as exception and only one is allowed.";
136+
}
137+
134138
my $id = $mrn.'_'.$accession;
135139
unless (exists $hash{$id}) {
136-
if ($exception and $exception =~ /NOTRANSFER/) {
137-
print "$id is NOTRANSFER and no-matching of CoPath dump is ok\n";
140+
if ($exception and $exception =~ /NOTRANSFER|RESEQ/) {
141+
print "$id is NOTRANSFER or RESEQ and no-matching of CoPath dump is ok\n";
138142
}
139143
else {
140144
die "FAIL to find matching $mrn and $accession from CoPath dump for library: $lib";
@@ -144,11 +148,11 @@
144148
my ($index) = $index_str =~ /([ATGC]{8})AT\-AAAAAAAAAA/;
145149

146150
if ($exception) {
147-
if ($exception =~ /NOTRANSFER/) {
148-
push @cases_excluded, $lib.'_'.$index;
149-
$exception =~ s/,?NOTRANSFER//;
151+
if ($exception =~ /NOTRANSFER|RESEQ/) {
152+
$exception =~ s/,?(NOTRANSFER|RESEQ),?//;
150153
$exception = 'NONE' if $exception =~ /^\s*$/;
151154
}
155+
push @cases_excluded, $lib.'_'.$index if $exception =~ /NOTRANSFER/;
152156
}
153157
else {
154158
$exception = 'NONE';
@@ -162,7 +166,7 @@
162166
die "Unknown gender: $sex for library: $lib";
163167
}
164168
}
165-
else { #NOTRANSFER
169+
else { #NOTRANSFER RESEQ
166170
($mrn, $accession, $sex, $DOB) = ('NONE') x 4;
167171
}
168172

0 commit comments

Comments
 (0)