def concat(fdarray): """Merge FlowData together """ pd_data = [fd.panda for fd in fdarray] new_panda = pd.concat(pd_data) md = fdarray[0]._metadata # Clean up the metadata md['$FIL'] = 'merged data' newfd = FlowData(panda=new_panda, metadata=md) return newfd
#! /opt/local/bin/python from flowdata import FlowData fd = FlowData('test.fcs') fd.tsne('visne', sample = 100) fd.write('test_write.fcs') #fcs.write('test_write.fcs',data, metadata)