Hi,
Could provide the faster way to filter this data :
chr1 43 1000 gene_name=boby gene_type=trucA
chr2 44 1000 gene_name=natt gene_type=trucB
chr3 45 1000 gene_name=alurika gene_type=trucC
To :
chr1 43 1000 boby trucA
chr1 44 1000 natt trucB
chr1 45 1000 alurika trucC
CORRECTION : Original text data looks like this :
chr1 43 1000 TEST gene_name=boby;gene_type=trucA;foo=34
chr2 44 1000 TRUC gene_name=natt;gene_type=trucB;foo=34
chr3 45 1000 PASS gene_name=alurika;gene_type=trucC;foo=34
What did you try so far? Is this really a bioinformatics question? What is the logic between input and output change? It looks rather random to me, e.g. "..trucB chr3 45 1000.." becomes "..trucB chr1 45 1000.."?
I just answered it, but I agree with you, regarding chr3 -> chr1, I think its just a typo!