I want to rename my columns cause it's too long, for example:
chrX:99883666-99894988_TSPAN6_ENSG00000000003.10
to TSPAN6
chrX:99839798-99854882_TNMD_ENSG00000000005.5
to TNMD
chr20:49505584-49575092_DPM1_ENSG00000000419.8
to DPM1
How can I rename it consider the elements I want to delete differs from every columns?