Skip to content

Commit d7f7b5e

Browse files
committed
Flexible read-pair patterns according to the one edge case seen
1 parent 36b064f commit d7f7b5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LABEL_RES/scripts/interleavedSamples.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
$/ = "\n";
113113
if ( $byReadPairs ) {
114114
%indexByMolID = ();
115-
$REgetMolID = qr/@(.+?)[_ ][123]:.+/;
115+
$REgetMolID = qr/@(.+?)[_ \/][123](:.+)?/;
116116
while($hdr=<IN>) {
117117
$seq=<IN>;
118118
$junk=<IN>;
@@ -128,7 +128,7 @@
128128
$count[$index]++;
129129
}
130130
} else {
131-
die("Irregular header for fastQ read pairs.\n");
131+
die("Irregular header for fastQ read pairs:\n\t$hdr.\n");
132132
}
133133

134134
if ( !$fraction ) {

0 commit comments

Comments
 (0)