~ubuntu-branches/ubuntu/saucy/bwa/saucy

« back to all changes in this revision

Viewing changes to bntseq.h

  • Committer: Package Import Robot
  • Author(s): Charles Plessy, 9ce640c, e641dd6, 4ada685
  • Date: 2011-11-14 19:28:44 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20111114192844-0yqvb9dez02za2mq
Tags: 0.6.0-1
[9ce640c] New upstream release (not to use in a production pipeline).
[e641dd6] Corrected the name of the file downloaded by uscan.
[4ada685] Pass Dpkg build flags to the compiler through Debhelper 9.  Thanks, Niels Thykier!

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        bntseq_t *bns_restore(const char *prefix);
71
71
        bntseq_t *bns_restore_core(const char *ann_filename, const char* amb_filename, const char* pac_filename);
72
72
        void bns_destroy(bntseq_t *bns);
73
 
        int64_t bns_fasta2bntseq(gzFile fp_fa, const char *prefix);
74
 
        int bns_coor_pac2real(const bntseq_t *bns, int64_t pac_coor, int len, int32_t *real_seq);
 
73
        int64_t bns_fasta2bntseq(gzFile fp_fa, const char *prefix, int for_only);
 
74
        int bns_cnt_ambi(const bntseq_t *bns, int64_t pos_f, int len, int *ref_id);
75
75
 
76
76
#ifdef __cplusplus
77
77
}
78
78
#endif
79
79
 
 
80
static inline int64_t bns_depos(const bntseq_t *bns, int64_t pos, int *is_rev)
 
81
{
 
82
        return (*is_rev = (pos >= bns->l_pac))? (bns->l_pac<<1) - 1 - pos : pos;
 
83
}
 
84
 
80
85
#endif