I have the results of hmmer in the format of domtblout, so I would like to edit and use it.
But I don't know how to edit it because it isn't separated by tab.
Could you tell me how to use domtblout file?
For example, if you would like to extract gene ID, how dou you edit it?
I really appreciate for your advice.
I have the domtblout file like this, so I would like to extract only the gene ID column from this table.
In this case, it looks like difficult to solved this problem with grep.
My domtblout files have some tabular areas, but it's not always the case. Is your entire file tabular?
If so, awk is your friend. I don't see a gene ID column, I assume you mean query name? You should be able to get that column with awk '{print $4}' Pfam.domtblout (in my case awk automatically recognised the delimiter, you might have to tweak the -F flag a bit to get it to work)
I really appreciate for your advice. I have the domtblout file like this, so I would like to extract only the gene ID column from this table. In this case, it looks like difficult to solved this problem with grep.
My domtblout files have some tabular areas, but it's not always the case. Is your entire file tabular?
If so, awk is your friend. I don't see a gene ID column, I assume you mean query name? You should be able to get that column with
awk '{print $4}' Pfam.domtblout
(in my case awk automatically recognised the delimiter, you might have to tweak the -F flag a bit to get it to work)I solved this problem. Thank you very much for your help!