Mercurial > repos > jdv > b2b_bam2consensus
annotate summarize_assembly @ 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 |
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 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
|
8 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
|
9 use List::Util qw/sum max min/; |
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 List::MoreUtils qw/uniq/; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
11 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
|
12 |
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 $PROGRAM = 'summarize_assembly'; |
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 $VERSION = 0.002; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
15 |
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 $fn_fasta; |
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 @cutoffs; |
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 $strip = 0; |
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 $split = 0; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
20 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
21 # Collect command-line parameters |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
22 my $err_msg = 'Syntax error: please check your syntax'; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
23 GetOptions( |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
24 'fasta=s' => \$fn_fasta, |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
25 'cutoffs:i{,}' => \@cutoffs, |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
26 'strip_N' => \$strip, |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
27 'split_N' => \$split, |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
28 '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
|
29 'version' => sub{ print "This is $PROGRAM 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
|
30 ) or pod2usage( -msg => $err_msg, -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
|
31 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
32 # Set default cutoffs if necessary and sort |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
33 if (! scalar @cutoffs) { |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
34 warn "No cutoff supplied, defaulting to N50\n"; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
35 push @cutoffs, 50; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
36 } |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
37 @cutoffs = sort {$a <=> $b} uniq @cutoffs; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
38 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
39 # Only one of 'strip_N' or 'split_N' is valid |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
40 if ($strip && $split) { |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
41 warn "Only one of --strip_N or --split_N is valid, ignoring --strip_N\n"; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
42 $strip = 0; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
43 } |
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 # Check for a few necessary conditions |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
46 die "Can't open FASTA file for reading" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
47 if (defined $fn_fasta && ! -r $fn_fasta); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
48 die "One or more cutoffs outside valid range (1-99)" |
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 (grep {$_ < 1 || $_ > 99} @cutoffs); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
50 die "Cutoffs must be integer values" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
51 if (grep {$_ ne int($_)} @cutoffs); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
52 my @lens; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
53 my $N_sum = 0; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
54 my $GC_sum = 0; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
55 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
56 # Read in sequences and calculate descriptive stats |
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 $stream = BioX::Seq::Stream->new( $fn_fasta ); #STDIN if undefined |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
58 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
59 SEQ: |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
60 while (my $seq = $stream->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
|
61 my @parts = ($seq); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
62 @parts = split(/n+/i, $seq) if $split; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
63 for (@parts) { |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
64 my $Ns = ($_ =~ tr/Nn//); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
65 $N_sum += $Ns; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
66 $GC_sum += ($_ =~ tr/GCgc//); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
67 push @lens, length($_) - $Ns * $strip; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
68 } |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
69 } |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
70 @lens = sort {$b <=> $a} @lens; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
71 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
72 # Calculate basic stats |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
73 my $scaffold_count = scalar @lens; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
74 my $total_len = sum @lens; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
75 my $N_fraction = round( $N_sum/($total_len + $N_sum*$strip), 2 )*100; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
76 my $max_length = max @lens; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
77 my $min_length = min @lens; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
78 my $mean_length = round($total_len/$scaffold_count, 0); |
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 # GC percentage calculated from non-ambiguous bases only |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
81 my $GC_fraction = round( $GC_sum/($total_len + ($strip - 1)*$N_sum), 2 )*100; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
82 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
83 # Calculate Nx (N50, N80, etc) values |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
84 # For example, N50 is the size of the smallest contig for which it and all |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
85 # larger contigs contain 50% of the total nucleotides in the database |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
86 my $cum_length = 0; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
87 my @fractions = map {$_/100} @cutoffs; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
88 my @Nx; |
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 LEN: |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
91 for (@lens) { |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
92 $cum_length += $_; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
93 if ($cum_length/$total_len >= $fractions[0]) { |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
94 push @Nx, $_; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
95 shift @fractions; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
96 last LEN if (@fractions < 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 } |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
99 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
100 # Print summary |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
101 print '-' x 40 . "\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
102 . "Summary\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
103 . '-' x 40 . "\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
104 . "number of scaffolds: $scaffold_count\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
105 . "total length: $total_len\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
106 . "average length: $mean_length\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
107 . "G/C content: $GC_fraction\%\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
108 . "ambiguous content: $N_fraction\%\n" |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
109 . "longest scaffold: $max_length\n"; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
110 for (0..$#Nx) { |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
111 my $label = sprintf "N%02d", $cutoffs[$_]; |
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 "$label: $Nx[$_]\n"; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
113 } |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
114 print "shortest scaffold: $min_length\n"; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
115 print "NOTE: Ns were stripped for above calculations\n" if ($strip); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
116 print "NOTE: Scaffolds were split on Ns for above calculations\n" if ($split); |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
117 print '-' x 40 . "\n"; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
118 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
119 exit; |
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 sub round { |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
122 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
123 my ($val,$places) = @_; |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
124 return int($val*10**$places+0.5)/10**$places; |
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 } |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
127 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
128 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
129 __END__ |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
130 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
131 =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
|
132 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
133 summarize_assembly - print basic summary info for a file of assembly scaffolds |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
134 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
135 =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
|
136 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
137 summarize_assembly [--cutoffs I<cutoff_1> I<cutoff_2> .. I<cutoff_N> --strip_N --split_N ] --fasta I<input_file>] |
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 =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
|
140 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
141 This program takes a FASTA file and optionally a list of cutoff values as |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
142 input and prints out summary information about the contigs/scaffolds contained |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
143 in the file. You can, of course, supply a FASTA file of any sort of nucleic |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
144 acid sequences, but the summary information makes most sense for contigs from |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
145 genomic sequencing assemblies. |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
146 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
147 =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
|
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 =over |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
150 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
151 =item B<--fasta> 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
|
152 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
153 Specify contig/scaffold file from which to read input (default: STDIN) |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
154 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
155 =item B<--cutoffs> |
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 Space-separated integer list of cutoffs to calculate (e.g. '--cutoffs 50 90' |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
158 will output N50 and N90 values) (default: 50) |
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 =item B<--strip_N> |
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 If specified, Ns will be stripped from scaffold sequences before statistics |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
163 are calculated (default: FALSE) |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
164 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
165 =item B<--split_N> |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
166 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
167 If specified, scaffold sequences will be split at regions of one or more Ns |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
168 before statistics are calculated (e.g. to get contig-level stats from a |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
169 scaffold file). Note that if this flag is specified, the value of '--strip_N' |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
170 will be ignored. (default: FALSE) |
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 =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
|
173 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
174 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
|
175 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
176 =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
|
177 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
178 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
|
179 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
180 =back |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
181 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
182 =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
|
183 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
184 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
|
185 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
186 =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
|
187 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
188 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
|
189 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
190 =head1 LICENSE AND COPYRIGHT |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
191 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
192 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
|
193 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
194 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
|
195 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
|
196 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
|
197 (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
|
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 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
|
200 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
|
201 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
|
202 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
|
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 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
|
205 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
|
206 |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
207 =cut |
2367d00c5182
"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/b2b_utils commit 9bf8a0462bd44f170c0371b6cae67dd0c3b3da9f-dirty"
jdv
parents:
diff
changeset
|
208 |