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