lib/Bio/Tradis/TradisPlot.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
plot
1.0
CRAP 1.0
« lib/Bio/Tradis/Parser/Fastq.pm ↑ Summary lib/Bio/Tradis/Analysis/Exceptions.pm »
1 package Bio::Tradis::TradisPlot;
2 3 $Bio::Tradis::TradisPlot::VERSION = '1.4.1';
3 # ABSTRACT: Generate plots as part of a tradis analysis
4  
5  
6 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Bio::Tradis::Analysis::InsertSite;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 has 'mappedfile' => ( is => 'rw', isa => 'Str', required => 1 );
10 3 has 'outfile' =>
11 ( is => 'rw', isa => 'Str', required => 1, default => 'tradis.plot' );
12 3 has 'mapping_score' =>
13 ( is => 'rw', isa => 'Int', required => 1, default => 30 );
14  
15 sub plot {
16 1 ▶ my ($self) = @_;
Subroutine plot: called CC=1 SCAR=0.0
Pod undocumented
17  
18 1 Bio::Tradis::Analysis::InsertSite->new(
19 filename => $self->mappedfile,
20 output_base_filename => $self->outfile,
21 mapping_score => $self->mapping_score
22 )->create_plots;
23  
24 1 return 1;
25 }
26  
27 3 __PACKAGE__->meta->make_immutable;
28 3 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 3 1;
30  
31 __END__
32  
33 =pod
34  
35 =encoding UTF-8
36  
37 =head1 NAME
38  
39 Bio::Tradis::TradisPlot - Generate plots as part of a tradis analysis
40  
41 =head1 VERSION
42  
43 version 1.4.1
44  
45 =head1 SYNOPSIS
46  
47 Generate insertion plots for Artemis from a mapped fastq file and a reference
48 in GFF format
49  
50 use Bio::Tradis::TradisPlot;
51
52 my $pipeline = Bio::Tradis::TradisPlot->new(mappedfile => 'abc');
53 $pipeline->plot();
54  
55 =head1 PARAMETERS
56  
57 =head2 Required
58  
59 C<mappedfile> - mapped and sorted BAM file
60  
61 =head2 Optional
62  
63 =over
64  
65 =item * C<outfile> - base name to assign to the resulting insertion site plot. Default = tradis.plot
66  
67 =item * C<mapping_score> - cutoff value for mapping score. Default = 30
68  
69 =back
70  
71 =head1 METHODS
72  
73 C<plot> - create insertion site plots for reads in `mappedfile`. This file will be readable by the L<Artemis genome browser|http://www.sanger.ac.uk/resources/software/artemis/>
74  
75 =head1 AUTHOR
76  
77 Carla Cummins <path-help@sanger.ac.uk>
78  
79 =head1 COPYRIGHT AND LICENSE
80  
81 This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
82  
83 This is free software, licensed under:
84  
85 The GNU General Public License, Version 3, June 2007
86  
87 =cut
« lib/Bio/Tradis/Parser/Fastq.pm ↑ Summary lib/Bio/Tradis/Analysis/Exceptions.pm »