I like to know is there any way to merge the same coordinate in a table.

Table:

    chr1	155944562	155945214	fantom_neuron	GSM1554667	 9.84447	
    chr1	155944562	155945214	fantom_neuron	GSM1554672   7.43630	
    chr1	155944562	155945214	fantom_neuron	GSM1554678	 32.77627
    chr1	155945743	155946196	fantom_neuron	BAMPE  	     3.87072	
    chr1	155945743	155946196	fantom_neuron	GSM1554666 	18.14939
    chr1	155945746	155946202	fantom_neuron	GSM1554655 	1.14939

Expected table:

    chr1	155944562	155945214	fantom_neuron	GSM1554667,GSM1554672,GSM1554678	 9.84447,7.43630,32.77627	
    chr1	155945743	155946196	fantom_neuron	BAMPE,GSM1554666 	18.14939 ,3.87072	
    chr1	155945746	155946202	fantom_neuron	GSM1554655 	1.14939


Agreeing with Wouter, check out [bedtools merge](https://bedtools.readthedocs.io/en/latest/content/tools/merge.html):

    bedtools merge -i foo.bed -c 4,5 -o collapse