How do you match elements from two files and then print the common elements?
file1:
col0 col1 col2 col3 
a     b    someinfo1 metainfo1
c     d    someinfo2 metainfo2
e     f   80    someinfo3 metainfo3
file2:
col0 col1
a    b   
desired ouput
col0 col1 col2 col3
a    b    someinfo1,someinfo2 metainfo1,metainfo2
a and b are integers and in some cases fall within or map to two or more someinfo. If they do, I would write them together like a tuple (that's my guess)
Edit: coordinatefile
  1   4831213 4857551 +
file2
1    4831213 4857551 +   ENSMUSG00000025903  Lypla1
1    4831213 4857551 +   ENSMUSG00000033813  Tcea1
desired output
1    4831213 4857551 +     ENSMUSG00000033813,ENSMUSG00000025903  Tcea1,Lypla