increase maximum barcode length limit to 63bp
This commit is contained in:
parent
243e735431
commit
a74523a68d
|
|
@ -149,8 +149,8 @@ bwa_seq_t *bwa_read_seq(bwa_seqio_t *bs, int n_needed, int *n, int mode, int tri
|
||||||
int n_seqs, l, i, is_comp = mode&BWA_MODE_COMPREAD, is_64 = mode&BWA_MODE_IL13, l_bc = mode>>24;
|
int n_seqs, l, i, is_comp = mode&BWA_MODE_COMPREAD, is_64 = mode&BWA_MODE_IL13, l_bc = mode>>24;
|
||||||
long n_trimmed = 0, n_tot = 0;
|
long n_trimmed = 0, n_tot = 0;
|
||||||
|
|
||||||
if (l_bc > 15) {
|
if (l_bc > BWA_MAX_BCLEN) {
|
||||||
fprintf(stderr, "[%s] the maximum barcode length is 15.\n", __func__);
|
fprintf(stderr, "[%s] the maximum barcode length is %d.\n", __func__, BWA_MAX_BCLEN);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (bs->is_bam) return bwa_read_bam(bs, n_needed, n, is_comp, trim_qual); // l_bc has no effect for BAM input
|
if (bs->is_bam) return bwa_read_bam(bs, n_needed, n, is_comp, trim_qual); // l_bc has no effect for BAM input
|
||||||
|
|
|
||||||
4
bwtaln.h
4
bwtaln.h
|
|
@ -22,6 +22,8 @@
|
||||||
#define BWA_AVG_ERR 0.02
|
#define BWA_AVG_ERR 0.02
|
||||||
#define BWA_MIN_RDLEN 35 // for read trimming
|
#define BWA_MIN_RDLEN 35 // for read trimming
|
||||||
|
|
||||||
|
#define BWA_MAX_BCLEN 63 // maximum barcode length; 127 is the maximum
|
||||||
|
|
||||||
#ifndef bns_pac
|
#ifndef bns_pac
|
||||||
#define bns_pac(pac, k) ((pac)[(k)>>2] >> ((~(k)&3)<<1) & 3)
|
#define bns_pac(pac, k) ((pac)[(k)>>2] >> ((~(k)&3)<<1) & 3)
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -75,7 +77,7 @@ typedef struct {
|
||||||
// for multi-threading only
|
// for multi-threading only
|
||||||
int tid;
|
int tid;
|
||||||
// barcode
|
// barcode
|
||||||
char bc[16]; // null terminated; up to 15 bases
|
char bc[BWA_MAX_BCLEN+1]; // null terminated; up to BWA_MAX_BCLEN bases
|
||||||
// NM and MD tags
|
// NM and MD tags
|
||||||
uint32_t full_len:20, nm:12;
|
uint32_t full_len:20, nm:12;
|
||||||
char *md;
|
char *md;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue