Changeset 2953


Ignore:
Timestamp:
Jan 16, 2013, 8:39:27 AM (9 years ago)
Author:
Peter
Message:

implement BamHeader::target_length(). fixes #740

Location:
branches/0.10-stable
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.10-stable/test/Makefile.am

    r2930 r2953  
    77# Copyright (C) 2005 Jari Häkkinen, Peter Johansson
    88# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
    9 # Copyright (C) 2009, 2010, 2011, 2012 Peter Johansson
     9# Copyright (C) 2009, 2010, 2011, 2012, 2013 Peter Johansson
    1010#
    1111# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    4040  test/averager4.test \
    4141  test/bam_pair_analyse test/bam_iterator test/bam_region_iterator \
     42  test/bam_header \
    4243  test/codon.test test/commandline.test \
    4344  test/concept.test \
  • branches/0.10-stable/test/Suite.h

    r2940 r2953  
    66/*
    77  Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    8   Copyright (C) 2009, 2010, 2011, 2012 Peter Johansson
     8  Copyright (C) 2009, 2010, 2011, 2012, 2013 Peter Johansson
    99
    1010  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2828// used to tell automake that test should be skipped
    2929#define EXIT_SKIP 77
     30
     31// SKIP_BAM_TEST is defined if we should skip bam tests
     32#ifndef HAVE_LIBBAM
     33#define SKIP_BAM_TEST
     34#endif
     35#ifndef HAVE_SAMTOOLS
     36#define SKIP_BAM_TEST
     37#endif
    3038
    3139#include <yat/utility/VectorMutable.h>
  • branches/0.10-stable/yat/omic/BamHeader.cc

    r2883 r2953  
    11// $Id$
    22//
    3 // Copyright (C) 2012 Peter Johansson
     3// Copyright (C) 2012, 2013 Peter Johansson
    44//
    55// This program is free software; you can redistribute it and/or modify
     
    3232
    3333
     34  uint32_t BamHeader::target_length(size_t tid) const
     35  {
     36    assert(tid < static_cast<size_t>(n_targets()));
     37    return header_->target_len[tid];
     38  }
     39
     40
    3441  const char* BamHeader::target_name(size_t tid) const
    3542  {
Note: See TracChangeset for help on using the changeset viewer.