File: mapgene.h

package info (click to toggle)
ncbi-tools6 6.1.20120620-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 241,628 kB
  • ctags: 101,236
  • sloc: ansic: 1,431,713; cpp: 6,248; pascal: 3,949; xml: 3,390; sh: 3,090; perl: 1,077; csh: 488; makefile: 449; ruby: 93; lisp: 81
file content (105 lines) | stat: -rw-r--r-- 3,359 bytes parent folder | download | duplicates (15)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#ifndef _MAPGENE_
#define _MAPGENE_


#include <glbpic.h>

/************************************************************
*
*	map the one or two genes to a list Seq-locs
*	the slp_list will be stored at gdraw_p->slp_list
*	gdraw_p: the Drawing structure
*	g_list: a list of genes
*	pgdata: store the GeneDataPtr created
*	fp:	if not NULL, dump out the text between a region
*	is_html: if TRUE, dump out a html page for the fp
*
************************************************************/
Boolean map_gene_location PROTO((GlobalDrawPtr gdraw_p, ValNodePtr g_list, GeneDataPtr PNTR pgdata, FILE *fp, Boolean is_html));


/*********************************************************
*
*       map the location of the current slp to the
*       list of slps based on consistent alignment, FISH
*       etc
*
*********************************************************/
ValNodePtr map_one_location_to_slp_list PROTO((SeqEntryPtr sep, SeqLocPtr slp, Int4 window_size));


/*map a cytogenetic band to a location on the physical map
 *return TRUE for success and FALSE for failure. If the results are 
 *success, gdraw_p->slp will be replaced with the newly mapped slp_list*/
Boolean MapCytoBand PROTO((CharPtr band_name, GlobalDrawPtr gdraw_p, BioseqPtr cyto_bsp, Boolean correct_distortion, Uint1Ptr end_band));


/*
*
*       slp is the Seq-loc for a contig on the map. If include_amb,
*       all the ambiguously mapped YAC on the contig will be
*       included. Otherwise, they will be filterd from the list
*       of the alignnode. db can be either YAC_MIT or YAC_NHGRI
*
*/
ValNodePtr LoadContigAlign PROTO((SeqLocPtr slp, Boolean include_amb, Uint1 db, SeqIdPtr chr_id));

/*
*
*       print out the alignnode for YACs as a tabular form
*       contig name is the name of the contig where the YAC is
*       mapped. band_name is the name of the chromosome band
*       that it mapped to
*
*/
Boolean PrintContigAlign PROTO((CharPtr band_name, CharPtr contig_name, ValNodePtr anp_list, FILE *fp));


/*
*
*       Print out the H1 header for each band. this includes the 
*       link to OMIM and the large sequencing centers
*
*/
void PrintBandHeader PROTO((FILE *fp, CharPtr band_name, Uint1 db_option, Boolean graphic, CharPtr tx_buf));

void print_contig_html_color PROTO((FILE *fp, CharPtr band_name));
 
/*
*
*	print out the html page that displays the YACs for the selected 
*	contigs
*	chr_id: id of the mapping center
*	contig_list: the list of the Seq-loc for contigs
*	band_name: the name of the chromosome band
*	first: if TRUE, print out the HTML header, else don't
*	if(include_amb): including the ambiguous YACs
*
*/ 	
Boolean PrintContigForOneMap PROTO((SeqIdPtr chr_id, ValNodePtr contig_list, 
		CharPtr band_name, Boolean include_amb, BoolPtr pfirst, FILE *fp));


/*
*
*       print the genethon marker to the HTML page
*	if(end_band == 0), it is an internal band
*	if(end_band == 1), it is the first band to the ptel
*	if(end_band == 2), it is the last band before qtel
*
*/
Boolean PrintGeneticMarkerForOneMap PROTO((SeqLocPtr chr_slp, Boolean first,
                CharPtr band_name, Uint1 end_band, Uint1 chr, FILE *fp));

void print_database_link PROTO((FILE *fp, Uint1 db_option));

/*
*
*       make the links to the transcript map
*
*/
Boolean MakeTxLink PROTO((SeqLocPtr chr_slp, CharPtr buf, Uint1 chr, Uint1 end_band));


#endif