blib/lib/Bio/Tradis/TradisPlot.pm

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