mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
correct the gml writer
This commit is contained in:
@ -94,11 +94,11 @@ func Gml(seqs *[]*seqPCR, sample string, statThreshold int) string {
|
|||||||
comment "Obiclean graph for sample {{ Name }}"
|
comment "Obiclean graph for sample {{ Name }}"
|
||||||
directed 1
|
directed 1
|
||||||
{{range $index, $data:= .}}
|
{{range $index, $data:= .}}
|
||||||
{{ if or $data.Fathers $data.HasSon}}
|
{{ if or $data.Fathers (gt $data.SonCount 0)}}
|
||||||
node [ id {{$index}}
|
node [ id {{$index}}
|
||||||
graphics [
|
graphics [
|
||||||
type "{{ Shape $data.Count }}"
|
type "{{ Shape $data.Count }}"
|
||||||
fill "{{ if and $data.HasSon (not $data.Fathers)}}#0000FF{{ else }}#00FF00{{ end }}"
|
fill "{{ if and (gt $data.SonCount 0) (not $data.Fathers)}}#0000FF{{ else }}#00FF00{{ end }}"
|
||||||
h {{ Sqrt $data.Count }}
|
h {{ Sqrt $data.Count }}
|
||||||
w {{ Sqrt $data.Count }}
|
w {{ Sqrt $data.Count }}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user