MCPcopy Create free account
hub / github.com/BirolLab/abyss / translate_sequence_collection_orf_frame

Function translate_sequence_collection_orf_frame

dialign/translate.c:19–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include "io.h"
18
19void translate_sequence_collection_orf_frame(struct seq_col *in_seq_col)
20{
21 int i;
22 struct seq_col* tmp;
23 tmp = set_longest_orf(in_seq_col);
24/**************
25
26 reading frames :
27
28 0: 123 123 123 123 123 ...
29 1: X 123 123 123 123 123 ...
30 2: XX 123 123 123 123 123 ...
31 3: ... 321 321 321 321 321 XX
32 4: ... 321 321 321 321 321 X
33 5: ... 321 321 321 321 321
34
35**************/
36 for(i=0; i!= in_seq_col->length; ++i){
37 in_seq_col->seqs[i].orf_frame = tmp->seqs[i].orf_frame;
38 translate_sequence( &(in_seq_col->seqs[i]) );
39 free(tmp->seqs[i].data);
40 free(tmp->seqs[i].dna_num);
41 }
42
43 free(tmp);
44}
45
46
47void translate_sequence_collection_default(struct seq_col *in_seq_col)

Callers 1

mainFunction · 0.85

Calls 2

set_longest_orfFunction · 0.85
translate_sequenceFunction · 0.85

Tested by

no test coverage detected