Lines Matching refs:seq
646 $seq = '110'; // left guard
654 $seq .= $chr[$digit];
656 $seq .= '1001'; // right guard
658 return $this->binseq_to_array($seq, $bararray);
689 $seq = '11011010';
697 $seq .= $chr[$digit];
699 $seq .= '1101011';
701 return $this->binseq_to_array($seq, $bararray);
706 * @param $seq (string) barcode as binary sequence.
712 protected function binseq_to_array($seq, $bararray) {
713 $len = strlen($seq);
718 if (($i == ($len - 1)) OR (($i < ($len - 1)) AND ($seq[$i] != $seq[($i+1)]))) {
719 if ($seq[$i] == '1') {
777 $seq = '';
780 $seq .= $chr[$char_bar][$s] . $chr[$char_space][$s];
782 $seqlen = strlen($seq);
789 $w = $seq[$j];
1015 foreach ($sequence as $key => $seq) {
1016 switch($seq[0]) {
1021 if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'B') AND (!isset($sequence[($key - 1)][3]))) {
1030 for ($i = 0; $i < $seq[2]; ++$i) {
1031 $char = $seq[1][$i];
1043 $tmpchr = ord($seq[1][0]);
1044 if (($seq[2] == 1) AND ($tmpchr >= 241) AND ($tmpchr <= 244) AND isset($sequence[($key + 1)]) AND ($sequence[($key + 1)][0] != 'B')) {
1064 if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'A') AND (!isset($sequence[($key - 1)][3]))) {
1073 for ($i = 0; $i < $seq[2]; ++$i) {
1074 $char = $seq[1][$i];
1090 for ($i = 0; $i < $seq[2]; $i+=2) {
1091 $chrnum = $seq[1][$i].$seq[1][$i+1];
1115 $seq = $chr[$val];
1122 $w = $seq[$j];
1313 $seq = '101'; // left guard bar
1318 $seq .= $codes[$p[$i]][$upce_code[$i]];
1320 $seq .= '010101'; // right guard bar
1326 $seq .= $codes['A'][$code[$i]];
1331 $seq .= $codes[$p[$i-1]][$code[$i]];
1334 $seq .= '01010'; // center guard bar
1336 $seq .= $codes['C'][$code[$i]];
1338 $seq .= '101'; // right guard bar
1340 $clen = strlen($seq);
1344 if (($i == ($clen - 1)) OR (($i < ($clen - 1)) AND ($seq[$i] != $seq[($i+1)]))) {
1345 if ($seq[$i] == '1') {
1425 $seq = '1011'; // left guard bar
1426 $seq .= $codes[$p[0]][$code[0]];
1428 $seq .= '01'; // separator
1429 $seq .= $codes[$p[$i]][$code[$i]];
1432 return $this->binseq_to_array($seq, $bararray);
1693 $seq = '';
1700 $seq = $chr[$code[$i]];
1707 $w = $seq[$j];
1741 $seq = '';
1791 $seq = $chr[$code[$i]];
1798 $w = $seq[$j];
1815 $seq = '';
1819 $seq .= '11100';
1822 $seq .= '100';
1827 $seq = substr($seq, 0, -2);
1828 $seq = strrev($seq);
1830 return $this->binseq_to_array($seq, $bararray);
1841 $seq = '';
1846 $seq .= '3';
1851 $seq .= '1';
1856 $seq .= '2';
1862 $seq = strrev($seq);
1865 $len = strlen($seq);
1867 switch ($seq[$i]) {