Esempio n. 1
0
void
bam_streamer::
report_state(std::ostream& os) const
{
    const bam_record* bamp(get_record_ptr());

    os << "\tbam_stream_label: " << name() << "\n";
    if (_is_region && (! _region.empty()))
    {
        os << "\tbam_stream_selected_region: " << _region << "\n";
    }
    if (nullptr != bamp)
    {
        os << "\tbam_stream_record_no: " << record_no() << "\n";
        os << "\tbam_record QNAME/read_number: " << bamp->qname() << "/" << bamp->read_no() << "\n";
        const char* chrom_name(target_id_to_name(bamp->target_id()));
        os << "\tbam record RNAME: " << chrom_name << "\n";
        os << "\tbam record POS: " << bamp->pos() << "\n";

    }
    else
    {
        os << "\tno bam record currently set\n";
    }
}
Esempio n. 2
0
void
tabix_streamer::
report_state(std::ostream& os) const {

    const char* line(getline());
    os << "\tvcf_stream_label: " << name() << "\n";
    if (NULL != line) {
        os << "\tvcf_stream_record_no: " << record_no() << "\n"
           << "\tvcf_record: '" << line << "'\n";
    } else {
        os << "\tno vcf record currently set\n";
    }
}