25 void AP_sequence_simple_protein::set(
const char *isequence) {
31 sequence =
new ap_pro[sequence_len+1];
32 memset(sequence, s2str[
'.']->
index, (
size_t)(
sizeof(
ap_pro) * sequence_len));
34 const char *
s = isequence;
39 int sindex = s2str[
's']->
index;
42 int iseqlen = strlen(isequence);
45 if (pos >= iseqlen)
continue;
46 unsigned char c = s[pos];
50 int ind = s2str[simplify[c]]->
index;
51 if (ind >= sindex) ind --;
58 for (i = j = 0; i < flen; ++i) {
59 unsigned char c = s[i];
63 int ind = s2str[simplify[c]]->
index;
64 if (ind >= sindex) ind--;
74 void AP_sequence_simple_protein::unset() {
const uchar * get_simplify_table() const
size_t bootstrapped_seqpos(size_t bpos) const
AP_sequence_simple_protein(const AliView *aliview)
~AP_sequence_simple_protein() OVERRIDE
bool does_bootstrap() const
const AP_filter * get_filter() const
const arb_r2a_pro_2_nuc *const * S2strArray() const
size_t get_length() const
void mark_sequence_set(bool is_set)
size_t get_filtered_length() const
const AliView * get_aliview() const
AWT_translator * AWT_get_user_translator(GBDATA *gb_main)
size_t get_sequence_length() const
AP_sequence * dup() const OVERRIDE
bool use_position(size_t pos) const
GBDATA * get_gb_main(DbSel db)
GB_write_int const char s