void core_fasta_input_init(struct biosal_input_format *input) { char *file; struct core_fasta_input *fasta; uint64_t offset; fasta = (struct core_fasta_input *)biosal_input_format_implementation(input); file = biosal_input_format_file(input); CORE_DEBUGGER_ASSERT(input->operations != NULL); #if 0 printf("DEBUG BEFORE faulty call.\n"); #endif offset = biosal_input_format_start_offset(input); core_buffered_reader_init(&fasta->reader, file, offset); fasta->buffer = NULL; fasta->next_header = NULL; fasta->has_header = 0; fasta->has_first = 0; }
void core_fastq_input_init(struct biosal_input_format *input) { char *file; struct core_fastq_input *fastq; uint64_t offset; file = biosal_input_format_file(input); offset = biosal_input_format_start_offset(input); #ifdef BIOSAL_FASTQ_INPUT_DEBUG printf("DEBUG core_fastq_input_init %s\n", file); #endif fastq = (struct core_fastq_input *)biosal_input_format_implementation(input); core_buffered_reader_init(&fastq->reader, file, offset); fastq->buffer = NULL; fastq->has_first = 0; }