line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package NCBIx::Geo::Item; |
2
|
1
|
|
|
1
|
|
6
|
use base qw(NCBIx::Geo::Base); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
79
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
6
|
1
|
|
|
1
|
|
5
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
65
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
4
|
use version; our $VERSION = qv('1.0.0'); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
{ |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my %series_title_of :ATTR( :get :set :default<''> :init_arg ); |
13
|
|
|
|
|
|
|
my %n_samples_of :ATTR( :get :set :default<''> :init_arg ); |
14
|
|
|
|
|
|
|
my %gds_type_of :ATTR( :get :set :default<''> :init_arg ); |
15
|
|
|
|
|
|
|
my %ptech_type_of :ATTR( :get :set :default<''> :init_arg ); |
16
|
|
|
|
|
|
|
my %samples_of :ATTR( :get :set :default<''> :init_arg ); |
17
|
|
|
|
|
|
|
my %projects_of :ATTR( :get :set :default<''> :init_arg ); |
18
|
|
|
|
|
|
|
my %gse_of :ATTR( :get :set :default<''> :init_arg ); |
19
|
|
|
|
|
|
|
my %summary_of :ATTR( :get :set :default<''> :init_arg ); |
20
|
|
|
|
|
|
|
my %gsm_titles_l_of :ATTR( :get :set :default<''> :init_arg ); |
21
|
|
|
|
|
|
|
my %pubmed_ids_of :ATTR( :get :set :default<''> :init_arg ); |
22
|
|
|
|
|
|
|
my %relations_of :ATTR( :get :set :default<''> :init_arg ); |
23
|
|
|
|
|
|
|
my %gpl_of :ATTR( :get :set :default<''> :init_arg ); |
24
|
|
|
|
|
|
|
my %ss_info_of :ATTR( :get :set :default<''> :init_arg ); |
25
|
|
|
|
|
|
|
my %supp_file_of :ATTR( :get :set :default<''> :init_arg ); |
26
|
|
|
|
|
|
|
my %taxon_of :ATTR( :get :set :default<''> :init_arg ); |
27
|
|
|
|
|
|
|
my %gsm_l_of :ATTR( :get :set :default<''> :init_arg ); |
28
|
|
|
|
|
|
|
my %entry_type_of :ATTR( :get :set :default<''> :init_arg ); |
29
|
|
|
|
|
|
|
my %val_type_of :ATTR( :get :set :default<''> :init_arg ); |
30
|
|
|
|
|
|
|
my %pdat_of :ATTR( :get :set :default<''> :init_arg ); |
31
|
|
|
|
|
|
|
my %platform_taxa_of :ATTR( :get :set :default<''> :init_arg ); |
32
|
|
|
|
|
|
|
my %samples_taxa_of :ATTR( :get :set :default<''> :init_arg ); |
33
|
|
|
|
|
|
|
my %gds_of :ATTR( :get :set :default<''> :init_arg ); |
34
|
|
|
|
|
|
|
my %subset_info_of :ATTR( :get :set :default<''> :init_arg ); |
35
|
|
|
|
|
|
|
my %title_of :ATTR( :get :set :default<''> :init_arg ); |
36
|
|
|
|
|
|
|
my %platform_title_of :ATTR( :get :set :default<''> :init_arg ); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my %related_gpl_of :ATTR( :get :set :default<''> :init_arg ); |
39
|
|
|
|
|
|
|
my %related_gds_of :ATTR( :get :set :default<''> :init_arg ); |
40
|
|
|
|
|
|
|
my %related_gse_of :ATTR( :get :set :default<''> :init_arg ); |
41
|
|
|
|
|
|
|
my %samples_count_of :ATTR( :get :set :default<''> :init_arg ); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub START { |
44
|
0
|
|
|
0
|
0
|
|
my ($self, $ident, $arg_ref) = @_; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
return; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub add_related { |
51
|
0
|
|
|
0
|
0
|
|
my ( $self, $item ) = @_; |
52
|
0
|
|
|
|
|
|
my $acc_type = $item->get_entry_type(); |
53
|
0
|
0
|
|
|
|
|
if ( $acc_type =~ m/GPL/ ) { $self->set_related_gpl( $item ); } |
|
0
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
54
|
0
|
|
|
|
|
|
elsif ( $acc_type =~ m/GDS/ ) { $self->set_related_gds( $item ); } |
55
|
0
|
|
|
|
|
|
elsif ( $acc_type =~ m/GSE/ ) { $self->set_related_gse( $item ); } |
56
|
0
|
|
|
|
|
|
return $self; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub get_sample_ids { |
60
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
61
|
0
|
|
|
|
|
|
my @sample_accns; |
62
|
0
|
|
|
|
|
|
foreach my $sample ( @{ $self->get_samples() } ) { |
|
0
|
|
|
|
|
|
|
63
|
0
|
|
|
|
|
|
push @sample_accns, $sample->{Accession}; |
64
|
|
|
|
|
|
|
} |
65
|
0
|
|
|
|
|
|
return join( ';', @sample_accns ); |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub get_sample_descs { |
69
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
70
|
0
|
|
|
|
|
|
my @sample_accns; |
71
|
0
|
|
|
|
|
|
foreach my $sample ( @{ $self->get_samples() } ) { |
|
0
|
|
|
|
|
|
|
72
|
0
|
|
|
|
|
|
push @sample_accns, $sample->{Accession} . "\t" . $sample->{Title}; |
73
|
|
|
|
|
|
|
} |
74
|
0
|
|
|
|
|
|
return join( "\n", @sample_accns ) . "\n"; |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
sub desc { |
78
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
79
|
0
|
|
|
|
|
|
my $entry_type = $self->get_entry_type(); |
80
|
0
|
|
|
|
|
|
my $gse = $self->get_gse(); |
81
|
0
|
|
|
|
|
|
my $gpl = $self->get_gpl(); |
82
|
0
|
|
|
|
|
|
my $gds = $self->get_gds(); |
83
|
|
|
|
|
|
|
|
84
|
0
|
|
|
|
|
|
my $desc = "[$entry_type] GPL: $gpl \n"; |
85
|
0
|
|
|
|
|
|
$desc .= "[$entry_type] GDS: $gds \n"; |
86
|
0
|
|
|
|
|
|
$desc .= "[$entry_type] GSE: $gse \n\n"; |
87
|
|
|
|
|
|
|
|
88
|
0
|
|
|
|
|
|
return $desc; |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub dump { |
92
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
93
|
0
|
|
|
|
|
|
my $series_title = $self->get_series_title(); |
94
|
0
|
|
|
|
|
|
my $n_samples = $self->get_n_samples(); |
95
|
0
|
|
|
|
|
|
my $gds_type = $self->get_gds_type(); |
96
|
0
|
|
|
|
|
|
my $ptech_type = $self->get_ptech_type(); |
97
|
0
|
|
|
|
|
|
my $samples = $self->get_samples(); |
98
|
0
|
|
|
|
|
|
my $projects = $self->get_projects(); |
99
|
0
|
|
|
|
|
|
my $gse = $self->get_gse(); |
100
|
0
|
|
|
|
|
|
my $summary = $self->get_summary(); |
101
|
0
|
|
|
|
|
|
my $gsm_titles_l = $self->get_gsm_titles_l(); |
102
|
0
|
|
|
|
|
|
my $pubmed_ids = $self->get_pubmed_ids(); |
103
|
0
|
|
|
|
|
|
my $relations = $self->get_relations(); |
104
|
0
|
|
|
|
|
|
my $gpl = $self->get_gpl(); |
105
|
0
|
|
|
|
|
|
my $ss_info = $self->get_ss_info(); |
106
|
0
|
|
|
|
|
|
my $supp_file = $self->get_supp_file(); |
107
|
0
|
|
|
|
|
|
my $taxon = $self->get_taxon(); |
108
|
0
|
|
|
|
|
|
my $gsm_l = $self->get_gsm_l(); |
109
|
0
|
|
|
|
|
|
my $entry_type = $self->get_entry_type(); |
110
|
0
|
|
|
|
|
|
my $val_type = $self->get_val_type(); |
111
|
0
|
|
|
|
|
|
my $pdat = $self->get_pdat(); |
112
|
0
|
|
|
|
|
|
my $platform_taxa = $self->get_platform_taxa(); |
113
|
0
|
|
|
|
|
|
my $samples_taxa = $self->get_samples_taxa(); |
114
|
0
|
|
|
|
|
|
my $gds = $self->get_gds(); |
115
|
0
|
|
|
|
|
|
my $subset_info = $self->get_subset_info(); |
116
|
0
|
|
|
|
|
|
my $title = $self->get_title(); |
117
|
0
|
|
|
|
|
|
my $platform_title = $self->get_platform_title(); |
118
|
|
|
|
|
|
|
|
119
|
0
|
|
|
|
|
|
print " ITEM: $series_title, $n_samples, $gds_type, $ptech_type, $samples, $projects, $gse, $summary, $gsm_titles_l, $pubmed_ids, $relations, $gpl, $ss_info, $supp_file, $taxon, $gsm_l, $entry_type, $val_type, $pdat, $platform_taxa, $samples_taxa, $gds, $subset_info, $title, $platform_title \n"; |
120
|
|
|
|
|
|
|
|
121
|
0
|
|
|
|
|
|
return; |
122
|
|
|
|
|
|
|
} |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
sub check_sample_count { |
125
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
126
|
0
|
|
|
|
|
|
my $n_samples = $self->get_n_samples(); |
127
|
0
|
|
|
|
|
|
my $samples_count = scalar( @{ $self->get_samples() } ); |
|
0
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
|
129
|
0
|
0
|
0
|
|
|
|
if ( $n_samples || $samples_count ) { |
130
|
0
|
0
|
|
|
|
|
if ( $n_samples != $samples_count ) { return 0; } |
|
0
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
} |
132
|
|
|
|
|
|
|
|
133
|
0
|
|
|
|
|
|
return 1; |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
} |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
139
|
|
|
|
|
|
|
__END__ |