- const Transcript& transcript = transcripts.getTranscriptAt(i + 1);
- if (out_header->target_name[i] != transcript.getTranscriptID()) {
- fprintf(stderr, "Reference sequence %d's name recorded in the header is not correct! \n", i);
- fprintf(stderr, "Name in the header: %s\n", out_header->target_name[i]);
- fprintf(stderr, "Should be: %s\n", transcript.getTranscriptID().c_str());
- exit(-1);
- }
- out_header->target_len[i] = transcript.getLength(); // transcript length without poly(A) tail