blib/lib/Bio/ViennaNGS.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Makefile.PL ↑ Summary blib/lib/Bio/ViennaNGS/ExtFeature.pm »
1 # -*-CPerl-*-
2 # Last changed Time-stamp: <2018-02-15 12:52:17 mtw>
3  
4 package Bio::ViennaNGS;
5 1 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use version; our $VERSION = version->declare("v0.18");
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 our @ISA = qw(Exporter);
8 1 our @EXPORT = ($VERSION);
9 1 1;
10  
11 =head1 NAME
12  
13 Bio::ViennaNGS - A Perl distribution for Next-Generation Sequencing
14 (NGS) data analysis
15  
16 =head1 DESCRIPTION
17  
18 Bio::ViennaNGS is a distribution of Perl modules and utilities for
19 building efficient Next-Generation Sequencing (NGS) analysis
20 pipelines. It covers various aspects of NGS data analysis, including
21 (but not limited to) conversion of sequence annotation, evaluation of
22 mapped data, expression quantification and visualization.
23  
24 The main Bio::ViennaNGS module is shipped with a complementary set of
25 (sub)modules:
26  
27 =over
28  
29 =item L<Bio::ViennaNGS::AnnoC>: A Moose interface for storage and
30 conversion of sequence annotation data.
31  
32 =item L<Bio::ViennaNGS::Bam>: Routines for high-level manipulation of
33 BAM files.
34  
35 =item L<Bio::ViennaNGS::Bed>: A L<Moose> interface for manipulation of
36 genomic interval data in BED format.
37  
38 =item L<Bio::ViennaNGS::BedGraphEntry>: A L<Moose> interface for
39 storing genomic cvoerage and interval data in bedGraph format.
40  
41 =item L<Bio::ViennaNGS::Expression>: An object oriented interface for
42 read-count based gene expression analysis.
43  
44 =item L<Bio::ViennaNGS::ExtFeature>: A L<Moose> wrapper for extended
45 BED6 entries.
46  
47 =item L<Bio::ViennaNGS::Fasta>: Routines for accessing genomic
48 sequences implemented through a L<Moose> interface to
49 L<Bio::DB::Fasta>.
50  
51 =item L<Bio::ViennaNGS::Feature>: A L<Moose> based BED6 wrapper.
52  
53 =item L<Bio::ViennaNGS::FeatureChain>: Yet another L<Moose> class for
54 chaining gene annotation features.
55  
56 =item L<Bio::ViennaNGS::FeatureInterval>: A L<Moose> interface for
57 handling elementary genomic intervals, corresponding to BED3.
58  
59 =item L<Bio::ViennaNGS::FeatureIO>: A L<Moose> interface for efficient
60 input/output handling of genomic annotation formats.
61  
62 =item L<Bio::ViennaNGS::FeatureLine>: An abstract L<Moose> class for
63 combining several L<Bio::ViennaNGS::FeatureChain> objects.
64  
65 =item L<Bio::ViennaNGS::MinimalFeature>: A L<Moose> interface for
66 handling elementary gene annotation, corresponding to BED4.
67  
68 =item L<Bio::ViennaNGS::Peak>: A L<Moose> interface for identification
69 and characterization of peaks/enriched regions in RNA-seq data.
70  
71 =item L<Bio::ViennaNGS::SpliceJunc>: A collection of routines for
72 alternative splicing analysis.
73  
74 =item L<Bio::ViennaNGS::Subtypes>: Moose subtypes for internal usage.
75  
76 =item L<Bio::ViennaNGS::Tutorial>: A comprehensive tutorial of the
77 L<Bio::ViennaNGS> core routines with real-world NGS data.
78  
79 =item L<Bio::ViennaNGS::UCSC>: Routines for visualization of genomics
80 data with the UCSC genome browser.
81  
82 =item L<Bio::ViennaNGS::Util>: A collection of wrapper routines for
83 commonly used third-party NGS utilities, code for normalization of
84 gene expression values based on read count data and a set of utility
85 functions.
86  
87 =back
88  
89 =head1 UTILITIES
90  
91 L<Bio::ViennaNGS> comes with a collection of command line utilities
92 for accomplishing routine tasks often required in NGS data
93 processing. These utilities serve as reference implementation of the
94 routines implemented throughout the modules and can readily be used
95 for atomic tasks in NGS data processing:
96  
97 =over
98  
99 =item F<assembly_hub_constructor.pl>: The UCSC genome browser offers
100 the possibility to visualize any organism (including organisms that
101 are not included in the standard UCSC browser bundle) through hso
102 called 'Assembly Hubs'. This script constructs Assembly Hubs from
103 genomic sequence and annotation data.
104  
105 =item F<bam_split.pl>: Split (paired-end and single-end) BAM alignment
106 files by strand and compute statistics. Optionally create BED output,
107 as well as normalized bedGraph and bigWig files for coverage
108 visualization in genome browsers (see dependencies on third-patry
109 tools below).
110  
111 =item F<bam_to_bigWig.pl>: Produce bigWig coverage profiles from
112 (aligned) BAM files, explicitly considering strandedness. The most
113 natural use case of this tool is to create strand-aware coverage
114 profiles in bigWig format for genome browser visualization.
115  
116 =item F<bam_uniq.pl>: Extract unique and multi mapping reads from BAM
117 alignment files and create a separate BAM file for both uniqe (.uniq.)
118 and multi (.mult.) mappers.
119  
120 =item F<bed2bedGraph.pl>: Convert BED files to (strand specific)
121 bedGraph files, allowing additional annotation and automatic
122 generation of bedGraph files which can easily be converted to big-type
123 files for easy UCSC visualization.
124  
125 =item F<bed2nt2aa.pl>: Provide nucleotide and amino acid sequences for
126 BED6 intervals.
127  
128 =item F<bed62bed12.pl>: A simple BED6 -> BED12 converter.
129  
130 =item F<fasta_multigrep.pl>: Extract indivudual (whole) sequences from
131 a multi Fasta file.
132  
133 =item F<fasta_subgrep.pl>: Extract subsequences from (multi) Fasta
134 files.
135  
136 =item F<gff2bed.pl>: Convert RefSeq GFF3 annotation files to BED12
137 format. Individual BED12 files are created for each feature type
138 (CDS/tRNA/rRNA/etc.). Tested with RefSeq bacterial GFF3 annotation.
139  
140 =item F<kmer_analysis.pl>: Count k-mers of predefined length in FastQ
141 and Fasta files
142  
143 =item F<MEME_XML_motif_extractor.pl>: Compute simple statistics from
144 MEME XML output and return a list of found motifs with the number of
145 sequences containing those motifs as well as nice ggplot graphs.
146  
147 =item F<newUCSCdb.pl>: Create a new genome database to a locally
148 installed instance of the UCSC genome browser in order to add a novel
149 organism for visualization. Based on L<this Genomewiki
150 article|http://genomewiki.ucsc.edu/index.php/Building_a_new_genome_database>.
151  
152 =item F<normalize_multicov.pl>: Compute normalized expression data in
153 RPKM and TPM from (raw) read counts in bedtools multicov format. TPM
154 reference: Wagner et al, Theory Biosci. 131(4), pp 281-85 (2012).
155  
156 =item F<rnaseq_peakfinder.pl>: Find and characterize peaks/enriched
157 regions of certain size and coverage in RNA-seq data.
158  
159 =item F<sj_visualizer.pl>: Convert splice junctions from mapped
160 RNA-seq data in segemehl BED6 splice junction format to BED12 for easy
161 visualization in genome Browsers.
162  
163 =item F<splice_site_summary.pl>: Identify and characterize splice
164 junctions from RNA-seq data by intersecting them with annotated splice
165 junctions.
166  
167 =item F<track_hub_constructor.pl>: Analogous to
168 assembly_hub_constructor.pl, construct a Track Hub for an organism
169 listed in the UCSC Genome Browser.
170  
171 =item F<trim_fastq.pl>: Trim sequence and quality string fields in a
172 Fastq file by user defined length.
173  
174 =back
175  
176 =head1 DEPENDENCIES
177  
178 The L<Bio::ViennaNGS> modules and classes depend on a set of Perl
179 modules, some of which are part of the Perl core distribution, most
180 notably L<Bio::Perl> >= 1.00690001 and L<Bio::DB::Sam> >= 1.37.
181  
182 In addition, L<Bio::ViennaNGS> depends on third-party tools and
183 libraries which are required for specific filtering and file format
184 conversion tasks as well as for building internally used Perl modules:
185  
186 =over
187  
188 =item L<bedtools2|https://github.com/arq5x/bedtools2>
189  
190 =item F<bedGraphToBigWig>, F<fetchChromSizes>, F<faToTwoBit> from the
191 L<UCSC Genome Browser
192 applications|http://hgdownload.cse.ucsc.edu/admin/exe>
193  
194 =item L<R|http://www.r-project.org/>
195  
196 =item samtools E<lt>=v0.1.19 for building L<Bio::DB::Sam>.
197  
198 =back
199  
200 Please ensure that all third-party utilities are available on your
201 system, and that hey can be found and executed by the Perl
202 interpreter.
203  
204 =head1 SOURCE AVAILABILITY
205  
206 Source code for this distribution is available from the L<ViennaNGS
207 Github repository|https://github.com/mtw/Bio-ViennaNGS>.
208  
209 =head1 PAPERS
210  
211 If the L<Bio::ViennaNGS> suite is useful for your work or if you use
212 any component of the distribution in a custom pipeline, please cite
213 the following publication:
214  
215 B<"ViennaNGS - A toolbox for building efficient next-generation sequencing
216 analysis pipelines">
217  
218 I<Michael T. Wolfinger, Joerg Fallmann, Florian Eggenhofer and Fabian Amman>
219  
220 F1000Research 2015, 4:50 (doi: L<10.12688E<sol>f1000research.6157.2|http://dx.doi.org/10.12688/f1000research.6157.2>)
221  
222 =head1 NOTES
223  
224 The L<Bio::ViennaNGS> suite is actively developed and tested on
225 different flavours of Linux and Mac OS X. We have taken care of
226 writing platform-independent code that should run out of the box on
227 most UNIX-based systems, however we do not have access to machines
228 running Microsoft Windows. As such, we have not tested and will not
229 test Windows compatibility.
230  
231 =head1 SEE ALSO
232  
233 =over
234  
235 =item L<Bio::ViennaNGS::AnnoC>
236  
237 =item L<Bio::ViennaNGS::Bam>
238  
239 =item L<Bio::ViennaNGS::Bed>
240  
241 =item L<Bio::ViennaNGS::BedGraphEntry>
242  
243 =item L<Bio::ViennaNGS::Expression>
244  
245 =item L<Bio::ViennaNGS::ExtFeature>
246  
247 =item L<Bio::ViennaNGS::Fasta>
248  
249 =item L<Bio::ViennaNGS::Feature>
250  
251 =item L<Bio::ViennaNGS::FeatureChain>
252  
253 =item L<Bio::ViennaNGS::FeatureInterval>
254  
255 =item L<Bio::ViennaNGS::FeatureIO>
256  
257 =item L<Bio::ViennaNGS::FeatureLine>
258  
259 =item L<Bio::ViennaNGS::MinimalFeature>
260  
261 =item L<Bio::ViennaNGS::Peak>
262  
263 =item L<Bio::ViennaNGS::SpliceJunc>
264  
265 =item L<Bio::ViennaNGS::Subtypes>
266  
267 =item L<Bio::ViennaNGS::Tutorial>
268  
269 =item L<Bio::ViennaNGS::UCSC>
270  
271 =item L<Bio::ViennaNGS::Util>
272  
273 =back
274  
275 =head1 AUTHORS
276  
277 =over
278  
279 =item Michael T. Wolfinger E<lt>michael@wolfinger.euE<gt>
280  
281 =item Joerg Fallmann E<lt>fall@tbi.univie.ac.atE<gt>
282  
283 =item Florian Eggenhofer E<lt>florian.eggenhofer@tbi.univie.ac.atE<gt>
284  
285 =item Fabian Amman E<lt>fabian@tbi.univie.ac.at<gt>
286  
287 =back
288  
289 =head1 COPYRIGHT AND LICENSE
290  
291 Copyright (C) 2014-2017 Michael T. Wolfinger
292 E<lt>michael@wolfinger.euE<gt>
293  
294 This library is free software; you can redistribute it and/or modify
295 it under the same terms as Perl itself, either Perl version 5.10.0 or,
296 at your option, any later version of Perl 5 you may have available.
297  
298 This software is distributed in the hope that it will be useful, but
299 WITHOUT ANY WARRANTY; without even the implied warranty of
300 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
301  
302 =cut
303  
304  
« Makefile.PL ↑ Summary blib/lib/Bio/ViennaNGS/ExtFeature.pm »