| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package App::Sandy::Read::SingleEnd; |
|
2
|
|
|
|
|
|
|
# ABSTRACT: App::Sandy::Read subclass for simulate single-end reads. |
|
3
|
|
|
|
|
|
|
|
|
4
|
6
|
|
|
6
|
|
1580
|
use App::Sandy::Base 'class'; |
|
|
6
|
|
|
|
|
13
|
|
|
|
6
|
|
|
|
|
58
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'App::Sandy::Read'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.25'; # VERSION |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub gen_read { |
|
11
|
4662
|
|
|
4662
|
0
|
47451
|
my ($self, $ptable, $ptable_size, $read_size, $is_leader, $rng, $blacklist) = @_; |
|
12
|
|
|
|
|
|
|
|
|
13
|
4662
|
50
|
|
|
|
10736
|
if ($ptable_size < $read_size) { |
|
14
|
0
|
|
|
|
|
0
|
croak sprintf "ptable_size (%d) must be greater or equal to read_size (%d)" |
|
15
|
|
|
|
|
|
|
=> $ptable_size, $read_size; |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
4662
|
|
|
|
|
16240
|
my ($read_ref, $attr) = $self->subseq_rand_ptable($ptable, |
|
19
|
|
|
|
|
|
|
$ptable_size, $read_size, $read_size, $rng, $blacklist); |
|
20
|
|
|
|
|
|
|
|
|
21
|
4662
|
100
|
|
|
|
11145
|
unless ($is_leader) { |
|
22
|
2367
|
|
|
|
|
5911
|
$self->reverse_complement($read_ref); |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
4662
|
|
|
|
|
11151
|
$attr->{error} = $self->insert_sequencing_error($read_ref, $read_size, $rng); |
|
26
|
|
|
|
|
|
|
|
|
27
|
4662
|
|
|
|
|
17984
|
return ($read_ref, $attr); |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
App::Sandy::Read::SingleEnd - App::Sandy::Read subclass for simulate single-end reads. |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 VERSION |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
version 0.25 |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHORS |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=over 4 |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item * |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Thiago L. A. Miller <tmiller@mochsl.org.br> |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
J. Leonel Buzzo <lbuzzo@mochsl.org.br> |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item * |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Felipe R. C. dos Santos <fsantos@mochsl.org.br> |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item * |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Helena B. Conceição <hconceicao@mochsl.org.br> |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item * |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Rodrigo Barreiro <rbarreiro@mochsl.org.br> |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=item * |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Gabriela Guardia <gguardia@mochsl.org.br> |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item * |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Fernanda Orpinelli <forpinelli@mochsl.org.br> |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item * |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Rafael Mercuri <rmercuri@mochsl.org.br> |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item * |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Rodrigo Barreiro <rbarreiro@mochsl.org.br> |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item * |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Pedro A. F. Galante <pgalante@mochsl.org.br> |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=back |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This software is Copyright (c) 2023 by Teaching and Research Institute from Sírio-Libanês Hospital. |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
This is free software, licensed under: |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=cut |