XT-neighbor
|
A collection of patching functions that add airr-format compatibility to cli.cu. More...
Functions | |
int | split_offset (char *str, int *&offsetOutput, int nColumn) |
private function More... | |
int | find_idx (char *haystack, const char *needle, int *offsets, int offsetLen) |
private function More... | |
int | find_header (char *line, int &cdrIndexOut, int &freqIndexOut, bool doubleCol) |
private function More... | |
int | extract_data (char *line, int cdrIndex, int freqIndex, int nColumn, int lineNumber, SeqArray *seqOut, int &freqOut, bool doubleCol) |
private function More... | |
int | parse_airr_input (char *path, SeqArray *seqOut, SeqInfo *freqOut, int len, bool doubleCol) |
read and parse input airr file to SeqArray and maybe SeqInfo More... | |
Variables | |
const int | DEFAULT_MAX_COLUMN = 300 |
maximum number of tsv columns More... | |
const int | DEFAULT_LINE_SIZE = 5000 |
maximum number of characters in a line More... | |
const char | DELIMITER = '\t' |
tsv delimitter More... | |
const char | CDR_FIELD [8] = "cdr3_aa" |
field header for sequence data More... | |
const char | FREQ_FIELD [16] = "duplicate_count" |
field header for sequence data More... | |
A collection of patching functions that add airr-format compatibility to cli.cu.
int extract_data | ( | char * | line, |
int | cdrIndex, | ||
int | freqIndex, | ||
int | nColumn, | ||
int | lineNumber, | ||
SeqArray * | seqOut, | ||
int & | freqOut, | ||
bool | doubleCol | ||
) |
private function
int find_header | ( | char * | line, |
int & | cdrIndexOut, | ||
int & | freqIndexOut, | ||
bool | doubleCol | ||
) |
private function
int find_idx | ( | char * | haystack, |
const char * | needle, | ||
int * | offsets, | ||
int | offsetLen | ||
) |
private function
int split_offset | ( | char * | str, |
int *& | offsetOutput, | ||
int | nColumn | ||
) |
private function
const char CDR_FIELD[8] = "cdr3_aa" |
field header for sequence data
const int DEFAULT_LINE_SIZE = 5000 |
maximum number of characters in a line
const int DEFAULT_MAX_COLUMN = 300 |
maximum number of tsv columns
const char DELIMITER = '\t' |
tsv delimitter
const char FREQ_FIELD[16] = "duplicate_count" |
field header for sequence data