/** ** Copyright (c) 2007-2010 Illumina, Inc. ** ** This software is covered by the "Illumina Genome Analyzer Software ** License Agreement" and the "Illumina Source Code License Agreement", ** and certain third party copyright/licenses, and any user of this ** source file is bound by the terms therein (see accompanying files ** Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ** Illumina_Source_Code_License_Agreement.pdf and third party ** copyright/license notices). ** ** This file is part of the Consensus Assessment of Sequence And VAriation ** (CASAVA) software package. ** **/ #include #include "smallRna/TrimmerReport.h" void TrimmerReport::Print() const { if ( m_fp ) { fprintf( m_fp, "Length\tCount\n" ); for ( int i=0; i<=m_maxInputLength; i++ ) { fprintf( m_fp, "%d\t%d\n", i, m_histogram[i] ); } } } TrimmerReport::TrimmerReport( FILE *fp) : m_count(0), m_maxInputLength(0), m_fp( fp ) { for ( int i=0; i m_maxInputLength ) { m_maxInputLength = originalLength; } } int TrimmerReport::Flag() const { return (m_fp!=NULL); }