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

« back to all changes in this revision

Viewing changes to bwtaln.h

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2011-02-08 16:11:12 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208161112-1fvt0mtygl8rhajf
Tags: 0.5.9-1
* New usptream release
  - Upstream moved to GitHub (debian/upstream-metadata.yaml).
  - Checked copyright; one file was removed (debian/copyright).
* Migrated the Debian source package to Git (debian/control).
* Use Debhelper 8 (debian/control, debian/compat).

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        bwa_cigar_t *cigar;
75
75
        // for multi-threading only
76
76
        int tid;
 
77
        // barcode
 
78
        char bc[16]; // null terminated; up to 15 bases
77
79
        // NM and MD tags
78
80
        uint32_t full_len:20, nm:12;
79
81
        char *md;
83
85
#define BWA_MODE_COMPREAD   0x02
84
86
#define BWA_MODE_LOGGAP     0x04
85
87
#define BWA_MODE_NONSTOP    0x10
 
88
#define BWA_MODE_BAM        0x20
 
89
#define BWA_MODE_BAM_SE     0x40
 
90
#define BWA_MODE_BAM_READ1  0x80
 
91
#define BWA_MODE_BAM_READ2  0x100
 
92
#define BWA_MODE_IL13       0x200
86
93
 
87
94
typedef struct {
88
95
        int s_mm, s_gapo, s_gape;
89
 
        int mode;
 
96
        int mode; // bit 24-31 are the barcode length
90
97
        int indel_end_skip, max_del_occ, max_entries;
91
98
        float fnr;
92
99
        int max_diff, max_gapo, max_gape;
118
125
        void bwa_aln_core(const char *prefix, const char *fn_fa, const gap_opt_t *opt);
119
126
 
120
127
        bwa_seqio_t *bwa_seq_open(const char *fn);
 
128
        bwa_seqio_t *bwa_bam_open(const char *fn, int which);
121
129
        void bwa_seq_close(bwa_seqio_t *bs);
122
130
        void seq_reverse(int len, ubyte_t *seq, int is_comp);
123
 
        bwa_seq_t *bwa_read_seq(bwa_seqio_t *seq, int n_needed, int *n, int is_comp, int trim_qual);
 
131
        bwa_seq_t *bwa_read_seq(bwa_seqio_t *seq, int n_needed, int *n, int mode, int trim_qual);
124
132
        void bwa_free_read_seq(int n_seqs, bwa_seq_t *seqs);
125
133
 
126
134
        int bwa_cal_maxdiff(int l, double err, double thres);