This is a test version of Biostars. For the public version, visit https://www.biostars.org.
parse data in excel or using perl

Hi can anyone tell me how to parse a file which looks like this.

file1-- 
1
2
3
4
5

file 2
1  1234
1   7575
1   6467564
1   6473
1    2323

I need to compare this file and want to get a file like

1 1234 7575 6467564 6473 2323

Please do the needful...

genome

Wwaat

Please put some effort into your question if you want to be taken seriously.

Please give a more clear example, your description is hard to understand.

I added markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:

101010 Button

Your question is completely unclear and the same for your example, it's not obvious how the data in file 1 and file2 should be compared. Spent some more effort in explaining what you have and what you need, if you expect an answer to this.
If you are limiting yourself to "excel or perl" then it's also a good idea to tell us why you cannot use anything else.

  • Excel, read about VLOOKUP
  • R, use merge or %in% then paste

In any case avoid using Excel for bioinformatics, and please update/edit your post with more clarification.

Hello sharmatina189059!

We believe that this post does not fit the main topic of this site.

Not a bioinformatics question

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.