comparison fastx_barcode_splitter.pl @ 3:e7b7cdc1834d draft

planemo upload for repository https://github.com/lparsons/galaxy_tools/tree/master/tools/fastx_barcode_splitter_enhanced commit a3b5b09c69f880529df96bdd5e050d712fa35cf4-dirty
author lparsons
date Fri, 11 Mar 2016 17:24:31 -0500
parents 84bbf4fd24c3
children 0fb7e9130a70
comparison
equal deleted inserted replaced
2:32304398ef67 3:e7b7cdc1834d
314 # Strip end of readids when matching to avoid mismatch between read 1, 2, 3, etc. 314 # Strip end of readids when matching to avoid mismatch between read 1, 2, 3, etc.
315 sub strip_read_id { 315 sub strip_read_id {
316 my $read_id = shift; 316 my $read_id = shift;
317 my $stripped_read_id = $read_id; 317 my $stripped_read_id = $read_id;
318 if ($read_id_check_strip_characters) { 318 if ($read_id_check_strip_characters) {
319 if ($read_id =~ /@([a-zA-Z0-9_-]+):([0-9]+):([a-zA-Z0-9]+):([0-9]+):([0-9]+):([0-9]+):([0-9]+) ([0-9]+):([YN]):([0-9]+):([ACGT]+){0,1}/) { # CASAVA 1.8+ 319 if ($read_id =~ /@([^:]+):([0-9]+):([^:]+):([0-9]+):([0-9]+):([0-9]+):([0-9]+) ([0-9]+):([YN]):([0-9]+):([ACGT]+){0,1}/) { # CASAVA 1.8+
320 my @parts = split(/ /,$read_id); 320 my @parts = split(/ /,$read_id);
321 $stripped_read_id = $parts[0]; 321 $stripped_read_id = $parts[0];
322 } else { # CASAVA 1.7 and earlier 322 } else { # CASAVA 1.7 and earlier
323 $stripped_read_id = substr($read_id, 0, length($read_id)-$read_id_check_strip_characters); 323 $stripped_read_id = substr($read_id, 0, length($read_id)-$read_id_check_strip_characters);
324 } 324 }