Commit 2cfda787 authored by Nijveen, Harm's avatar Nijveen, Harm
Browse files

removed the need for marker information in the experiment level json file

parent 8bf4f6cd
Pipeline #1787 skipped
......@@ -68,17 +68,6 @@ def createSettingsJsonForExperiment(experiment_name):
output_dic["chr"] = chr_dic
output_dic["pmarknames"] = dict()
for chromosome in chromosomes:
markers = Marker.objects.filter(experiment__experiment_name = experiment_name, chromosome__name =
marker_dic = {}
for marker in markers:
marker_dic[] = marker.start
output_dic["pmarknames"][] = sorted(marker_dic, key=lambda k: marker_dic[k])
out_file = os.path.join(settings.MEDIA_ROOT,'data/%s/%s.json' % (experiment_name,"settings"))
with open(out_file, 'w') as fo:
......@@ -206,8 +206,10 @@ draw = (data) ->
curves = svg.append("g").attr("id", "curves").attr("class", "probe_data")
for probe_data, i in probe_data_set
for c in data.chrnames
markers_for_chromosome = do(c)->m for m,ls of probe_data.lodscores when ls.chr is c
markers_for_chromosome.sort((a,b)-> probe_data.lodscores[a].start - probe_data.lodscores[b].start)
.attr("d", lodcurve(c,probe_data.lodscores))
.attr("class", "thickline")
.attr("stroke", lineColors(i))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment