lib/App/Sandy/Read/SingleEnd.pm

filter: Statementstmt 100% 3 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 4 / 4 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/App/Sandy/Read/PairedEnd.pm ↑ Summary lib/App/Sandy/Role/BSearch.pm »
1 package App::Sandy::Read::SingleEnd;
2 # ABSTRACT: App::Sandy::Read subclass for simulate single-end reads.
3  
4 1 ▶use App::Sandy::Base 'class';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 extends 'App::Sandy::Read';
7  
8 our $VERSION = '0.25'; # VERSION
9  
10 sub gen_read {
11 my ($self, $ptable, $ptable_size, $read_size, $is_leader, $rng, $blacklist) = @_;
12  
13 if ($ptable_size < $read_size) {
14 croak sprintf "ptable_size (%d) must be greater or equal to read_size (%d)"
15 => $ptable_size, $read_size;
16 }
17  
18 my ($read_ref, $attr) = $self->subseq_rand_ptable($ptable,
19 $ptable_size, $read_size, $read_size, $rng, $blacklist);
20  
21 unless ($is_leader) {
22 $self->reverse_complement($read_ref);
23 }
24  
25 $attr->{error} = $self->insert_sequencing_error($read_ref, $read_size, $rng);
26  
27 return ($read_ref, $attr);
28 }
29  
30 __END__
« lib/App/Sandy/Read/PairedEnd.pm ↑ Summary lib/App/Sandy/Role/BSearch.pm »