annotate sync_reads @ 1:2367d00c5182 draft default tip

"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
author jdv
date Tue, 28 Sep 2021 06:12:40 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
1 #!/usr/bin/env perl
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
2
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
3 use strict;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
4 use warnings;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
5 use 5.012;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
6
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
7 use autodie qw/open close/;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
8 use BioX::Seq::Stream;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
9 use Getopt::Long;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
10 use Pod::Usage;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
11
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
12 my $reads1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
13 my $reads2;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
14 my $singles;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
15 my $sync_suffix = 'sync';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
16 my $singles_suffix = 'singles';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
17 my $compress = ''; # one of 'gzip' or 'dsrc'
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
18 my $outname1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
19 my $outname2;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
20 my $singles1_name;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
21 my $singles2_name;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
22
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
23 use constant DSRC_BIN => 'dsrc';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
24 use constant GZIP_BIN => 'gzip';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
25 use constant NAME => 'sync_reads';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
26 use constant VERSION => '0.005';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
27
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
28 GetOptions(
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
29
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
30 'fwd=s' => \$reads1,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
31 'rev=s' => \$reads2,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
32 'singles' => \$singles,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
33 'fwd_out=s' => \$outname1,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
34 'rev_out=s' => \$outname2,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
35 'fwd_singles_out=s' => \$singles1_name,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
36 'rev_singles_out=s' => \$singles2_name,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
37 'sync_suffix=s' => \$sync_suffix,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
38 'singles_suffix=s' => \$singles_suffix,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
39 'compress:s' => \$compress,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
40 'help' => sub{ pod2usage(-verbose => 2); },
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
41 'version' => sub{ print 'This is ', NAME, ' v', VERSION, "\n";exit; },
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
42
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
43 ) or pod2usage( -verbose => 1 );
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
44
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
45 pod2usage(-verbose => 1, -msg => "Error: input files can\'t be read")
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
46 if (! -r $reads1 || ! -r $reads2);
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
47
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
48 # open output filehandles, possibly with compression
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
49 if (! defined $outname1) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
50 $outname1 = $reads1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
51 $outname1 =~ s/([^\.]+)$/$sync_suffix\.$1/;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
52 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
53 if (! defined $outname2) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
54 $outname2 = $reads2;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
55 $outname2 =~ s/([^\.]+)$/$sync_suffix\.$1/;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
56 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
57 my $mode = $compress =~ /^(?:gzip|dsrc)$/ ? '|-' : '>';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
58 my $cmd = $compress eq 'gzip' ? GZIP_BIN . ' -c > '
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
59 : $compress eq 'dsrc' ? DSRC_BIN . ' c -m2 -s '
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
60 : '';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
61 my $suffix = $compress eq 'gzip' ? '.gz'
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
62 : $compress eq 'dsrc' ? '.dsrc'
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
63 : '';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
64 open my $s1, $mode, $cmd . $outname1 . $suffix;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
65 open my $s2, $mode, $cmd . $outname2 . $suffix;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
66
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
67
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
68 # open singles output filehandles if requested, possibly with compression
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
69 my $up1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
70 my $up2;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
71 if ($singles) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
72 if (! defined $singles1_name) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
73 $singles1_name = $reads1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
74 $singles1_name =~ s/([^\.]+)$/$singles_suffix\.$1/;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
75 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
76 if (! defined $singles2_name) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
77 $singles2_name = $reads2;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
78 $singles2_name =~ s/([^\.]+)$/$singles_suffix\.$1/;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
79 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
80 $mode = $compress =~ /^(?:gzip|dsrc)$/ ? '|-' : '>';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
81 $cmd = $compress eq 'gzip' ? GZIP_BIN . ' -c > '
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
82 : $compress eq 'dsrc' ? DSRC_BIN . ' c -m2 -s '
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
83 : '';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
84 my $suffix = $compress eq 'gzip' ? '.gz'
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
85 : $compress eq 'dsrc' ? '.dsrc'
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
86 : '';
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
87 open $up1, $mode, $cmd . $singles1_name . $suffix;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
88 open $up2, $mode, $cmd . $singles2_name . $suffix;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
89 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
90
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
91 my $ll_f1 = {};
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
92 my $ll_f2 = {};
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
93 my $f1_prev;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
94 my $f2_prev;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
95 my $f1_open = 1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
96 my $f2_open = 1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
97
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
98 my $parser1 = BioX::Seq::Stream->new($reads1);
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
99 my $parser2 = BioX::Seq::Stream->new($reads2);
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
100
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
101 while ($f1_open || $f2_open) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
102
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
103 # process next read for file 1
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
104 if ($f1_open && defined (my $seq = $parser1->next_seq)) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
105 my $name = $seq->id;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
106 $name =~ s/\/[12]$//; #remove directional tag if present
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
107 if (defined $ll_f2->{$name}) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
108 my $prev = $ll_f2->{$name}->{prev} // undef;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
109 purge_cache( $ll_f2, $prev, $up2 );
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
110 purge_cache( $ll_f1, $f1_prev, $up1 );
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
111 print {$s1} $seq->as_fastq;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
112 print {$s2} $ll_f2->{$name}->{read};
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
113 delete $ll_f2->{$name};
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
114 $f1_prev = undef;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
115 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
116 else {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
117 $ll_f1->{$name}->{read} = $seq->as_fastq;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
118 $ll_f1->{$name}->{prev} = $f1_prev // undef;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
119 $f1_prev = $name;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
120 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
121 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
122 else {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
123 $f1_open = 0;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
124 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
125
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
126 # process next read for file 2
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
127 if ($f2_open && defined (my $seq = $parser2->next_seq)) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
128 my $name = $seq->id;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
129 $name =~ s/\/[12]$//; #remove directional tag if present
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
130 if (defined $ll_f1->{$name}) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
131 my $prev = $ll_f1->{$name}->{prev} // undef;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
132 purge_cache( $ll_f1, $prev, $up1 );
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
133 purge_cache( $ll_f2, $f2_prev, $up2 );
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
134 print {$s2} $seq->as_fastq;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
135 print {$s1} $ll_f1->{$name}->{read};
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
136 delete $ll_f1->{$name};
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
137 $f2_prev = undef;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
138 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
139 else {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
140 $ll_f2->{$name}->{read} = $seq->as_fastq;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
141 $ll_f2->{$name}->{prev} = $f2_prev // undef;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
142 $f2_prev = $name;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
143 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
144 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
145 else {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
146 $f2_open = 0;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
147 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
148 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
149
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
150 #handle remaining unpaired reads if necessary
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
151 if ($singles) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
152 purge_cache( $ll_f1, $f1_prev, $up1 );
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
153 purge_cache( $ll_f2, $f2_prev, $up2 );
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
154 close $up1;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
155 close $up2;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
156 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
157
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
158 exit;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
159
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
160 sub purge_cache {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
161
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
162 my ($ll, $prev, $fh) = @_;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
163 while (defined $prev && defined $ll->{$prev}) {
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
164 my $prev2 = $ll->{$prev}->{prev} // undef;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
165 print {$fh} $ll->{$prev}->{read} if ($singles);
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
166 delete $ll->{$prev};
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
167 $prev = $prev2;
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
168 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
169
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
170 }
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
171
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
172
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
173 __END__
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
174
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
175 =head1 NAME
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
176
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
177 sync_reads - resynchronize paired FASTQ files
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
178
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
179 =head1 SYNOPSIS
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
180
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
181 sync_reads [options] --fwd I<left_reads> --rev I<right reads>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
182
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
183 =head1 DESCRIPTION
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
184
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
185 B<sync_reads> will re-synchronize two FASTQ files containing paired reads which
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
186 are no longer in sync due to individual removal of reads during pre-processing
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
187 (trimming, filtering, etc). In this case, "in sync" means that both files have
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
188 the same number of reads and, at any given read position in the files, the
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
189 corresponding reads represent proper pairs. The resulting files will contain
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
190 matching reads in order (assuming the input files were properly ordered). It
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
191 will optionally print out unpaired reads to separate files. Memory usage is
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
192 not dependent on the input file size but rather the maximum distance between
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
193 paired reads in the two files, as the read cache is flushed each time paired
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
194 reads are identified. In the worst-case scenario (one file has a single read
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
195 that pairs with the last read in the matching file) memory usage can approach
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
196 the largest file size, but in typical usage it rarely exceeds a few MB
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
197 regardless of file size.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
198
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
199 B<IMPORTANT:> Reads in input files MUST be in the same order, aside from
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
200 missing reads, or the output will report many valid pairs as singletons.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
201
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
202 =head1 OPTIONS
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
203
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
204 =head2 Mandatory
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
205
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
206 =over 4
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
207
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
208 =item B<--fwd> I<forward_fastq>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
209
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
210 Specify FASTQ file containing the first of the trimmed read pairs
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
211
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
212 =item B<--rev> I<reverse_fastq>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
213
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
214 Specify FASTQ file containing the second of the trimmed read pairs
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
215
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
216 =back
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
217
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
218 =head2 Optional
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
219
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
220 =over 4
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
221
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
222 =item B<--fwd_out> I<filename>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
223
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
224 Specify output name for synced forward reads
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
225
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
226 =item B<--rev_out> I<filename>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
227
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
228 Specify output name for synced reverse reads
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
229
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
230 =item B<--fwd_singles_out> I<filename>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
231
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
232 Specify output name for forward singleton reads
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
233
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
234 =item B<--rev_singles_out> I<filename>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
235
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
236 Specify output name for reverse singleton reads
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
237
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
238 =item B<--sync_suffix> I<suffix>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
239
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
240 Specify suffix to add to synced read output files. This will be added to the
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
241 input read name before the final suffix (i.e. after the last period). Default
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
242 is 'sync'.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
243
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
244 =item B<--compress> I<gzip|dsrc>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
245
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
246 Specify type of compression for output files (will compress all output files)
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
247
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
248 =item B<--singles>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
249
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
250 If given, unpaired reads will be written to separate output files. Default is
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
251 FALSE.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
252
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
253 =item B<--singles_suffix> I<suffix>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
254
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
255 Specify suffix to add to singles read output files. This will be added to the
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
256 input read name before the final suffix (i.e. after the last period). Default
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
257 is 'singles'.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
258
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
259 =item B<--help>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
260
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
261 Display this usage page
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
262
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
263 =item B<--version>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
264
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
265 Print version information
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
266
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
267 =back
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
268
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
269 =head1 CAVEATS AND BUGS
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
270
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
271 Currently no input validation is performed on the input files. Files are
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
272 assumed to be standard FASTQ file format with each read represented by four
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
273 lines and no other extraneous information present. B<CRITICALLY>, they are also
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
274 assumed to be in the same input order after accounting for deleted reads
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
275 (the software will fail miserably if this is not the case).
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
276
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
277 Please submit bug reports to the issue tracker in the distribution repository.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
278
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
279 =head1 AUTHOR
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
280
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
281 Jeremy Volkening <jdv@base2bio.com>
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
282
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
283 =head1 COPYRIGHT AND LICENSE
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
284
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
285 Copyright 2014-16 Jeremy Volkening
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
286
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
287 This program is free software: you can redistribute it and/or modify
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
288 it under the terms of the GNU General Public License as published by
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
289 the Free Software Foundation, either version 3 of the License, or
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
290 (at your option) any later version.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
291
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
292 This program is distributed in the hope that it will be useful,
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
293 but WITHOUT ANY WARRANTY; without even the implied warranty of
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
294 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
295 GNU General Public License for more details.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
296
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
297 You should have received a copy of the GNU General Public License
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
298 along with this program. If not, see <http://www.gnu.org/licenses/>.
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
299
2367d00c5182 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff changeset
300 =cut