File: testgenestat.c

package info (click to toggle)
wise 2.4.1-21
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 27,140 kB
  • sloc: ansic: 276,365; makefile: 1,003; perl: 886; lex: 93; yacc: 81; sh: 24
file content (46 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "genestats.h"
#include <stdio.h>
#include <stdlib.h>

#include "sequence.h"


int main(int argc,char ** argv)
{
  Sequence * seq;

  ComplexSequence * cs;
  ComplexSequenceEvalSet * cset;


  GeneStats * st;
  GeneModel * gm;
  GeneModelParam * gp;
  FILE * ifp;

  gp = std_GeneModelParam();


  seq = read_fasta_file_Sequence("../../test_data/human.genomic");
  
  ifp = openfile("/usr/share/wise/gene.stat","r");
  
  st = read_GeneStats(ifp); 
  
  /*  dump_GeneStats(st,stdout); */

  fflush(stdout);

  gm = GeneModel_from_GeneStats(st,gp);

  show_GeneModel(gm,stdout);

  fflush(stdout);

  cset = new_ComplexSequenceEvalSet_from_GeneModel(gm);

  cs = new_ComplexSequence(seq,cset);

  show_ComplexSequence(cs,stdout);

}