INNER CODE UNIT · Go

gfa_print_page

lh3/gfatools · gfa-server.go:119

func gfa_print_page(w http.ResponseWriter, r *http.Request, graph_str string) {
	graph, genes, step, ori := "", "", "3", "";
	if len(r.Form["graph"]) > 0 {
		graph = r.Form["graph"][0];
	}
	if len(r.Form["gene"]) > 0 {
		genes = r.Form["gene"][0];
	}
	if len(r.Form["step"]) > 0 {
		step = r.Form["step"][0];
	}
	if len(r.Form["ori"]) > 0 {
		ori = r.Form["ori"][0];
	}
	w.Header().Set("Content-Type", "text/html; charset=utf-8");
	fmt.Fprintln(w, `<title>GFA view</title>`);
	fmt.Fprintln(w, `<style type="text/css">`);
	fmt.Fprintln(w, `  #canvas_graph,#canvas_walk { border: 1px solid #000; }`);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…