I'm working with an output list that contains the following information:
[start position, stop position, chromosome,
[('sample name', 'sample value'),
('sample name','sample value')...]]
[[59000, 59500, chr1,
[('cn_04', '1.362352462'), ('cn_01', '1.802001235')]],
[100000, 110000, chr1,
[('cn_03', '1.887268908'), ('cn_02', '1.990457407'), ('cn_01', '4.302275763')]],
[63500, 64000, chr1,
[('cn_03', '1.887268908'), ('cn_02', '1.990457407'), ('cn_01', '4.302275763')]]
...]
I want to write it to an excel file that will format it with the sample names as the titles of columns and then the values for the samples in columns. Some samples don't have values so these spaces would be blank or have no data notation. Something that looks Like this (sorry had to use >> to denote column separations):
cn_01 cn_02 cn_03 cn_04 cn_05 cn_06 start stop chromosome
1.802 "" "" 1.362 "" "" 59000 59500 chr1
4.302 1.990 1.887 "" "" "" 100000 110000 chr1
Any help would be great. Thanks!