Hello, I have this type of file - 2 column list with genes in 1st and chromosomal position in second column.
1:924024
1:924310
SAMD11 1:930353
SAMD11 1:930939
NOC2L 1:944858
NOC2L 1:946247
KLHL17 1:960891
KLHL17 1:961945
It is needed to be converted to this list type, so that 2 column format is saved. Each set number goes for each gene.
1:na 1:924024
2:na 1:924310
3:SAMD11 1:930353
3:SAMD11 1:930939
4:NOC2L 1:944858
4:NOC2L 1:946247
5:KLHL17 1:960891
5:KLHL17 1:961945
Adding column numbers is easy, but is much more specific issue. Is there a way, how to do such thing in bash?
Thank you!
Thank you! I However, I struggle to make setID file, where each gene has different number, not each row:
SAMD11 is in set 3; NOC2L set 4, etc, etc.