6 /cview/chr/index.mas - a mason component to view a chromosome with comparative features
10 This component essentially displays the SGN comparative viewer chromosome-level page.
18 specifies the chromosome to be displayed.
22 specifies the map to be displayed. Either map_id or map_version_id are required. Mutually exclusive with map_version_id.
26 specifies the version of the map to be displayed. Either map_id or map_version_id are required. Mutually exclusive with map_id.
30 The offset (usually in cM, but not always) that should be displayed zoomed in.
34 The map_id of the map that should be displayed when no map_id is provided.
38 =item $cview_db_backend
40 Provide the name of the cview db backend. Either cxgn or Cassava.
46 Lukas Mueller <lam87@cornell.edu>
56 $map_version_id => undef
66 $comp_map_version_id => undef
77 $default_map_id => undef
78 $cview_db_backend => 'cxgn'
83 use CXGN::Cview::ChromosomeViewer;
85 my $viewer = CXGN::Cview::ChromosomeViewer -> new($dbh);
87 $viewer -> set_temp_dir(File::Spec->catfile($c->get_conf('tempfiles_subdir'), "cview"));
88 $viewer -> set_basedir($c->get_conf('basepath'));
90 $viewer -> set_show_offsets($show_offsets);
91 $viewer -> set_map_id($map_id);
92 $viewer -> set_map_version_id($map_version_id);
93 $viewer -> set_ref_chr($chr_nr);
94 $viewer -> set_cM($cM);
95 $viewer -> set_clicked($clicked);
96 $viewer -> set_zoom($zoom);
97 $viewer -> set_show_physical($show_physical);
98 $viewer -> set_show_ruler($show_ruler);
99 $viewer -> set_show_IL($show_IL);
100 $viewer -> set_comp_map_id($comp_map_id);
101 $viewer -> set_comp_map_version_id($comp_map_version_id);
102 $viewer -> set_comp_chr($comp_chr);
103 $viewer -> set_color_model($color_model);
104 $viewer -> set_display_marker_type($marker_type);
105 $viewer -> set_force($force);
106 $viewer -> set_default_map_id($default_map_id);
107 $viewer -> set_db_backend($cview_db_backend);
109 if ($map_chr_select) {
110 my ($comp_map_id, $comp_chr) = split / /, $map_chr_select;
111 $viewer->set_comp_map_version_id($comp_map_id);
112 $viewer->set_comp_chr($comp_chr);
114 $viewer -> set_size($size);
115 $viewer -> set_hilite($hilite);
116 $viewer -> set_cM_start($cM_start);
117 $viewer -> set_cM_end($cM_end);
118 $viewer -> set_confidence($confidence);
119 $viewer -> set_show_zoomed($show_zoomed);
121 $viewer->generate_page();