replace header in a file with list of lines in another file
1
vote
4
answers
381
views
I have a fasta file contained ~28000 sequence. I want to replace header of these sequences by a list of lines in another file.
Example:
File 1:
sp|B7UM99|TIR_ECO27
MPIGNLGNNVNGNHLIPPAPP.....
sp|P0ACF8|HNS_ECOLI
MSEALKILNNIRTLRAQ........
sp|P24232|HMP_ECOLI
MLDAQTIATVKATIPLLVET..........
File 2:
sp|B7UM99|TIR_ECO27OS=Escherichia coli
sp|P0ACF8|HNS_ECOLI=Human
sp|P24232|HMP_ECOLI=Flavohemoprotein
Desired Output:
sp|B7UM99|TIR_ECO27OS=Escherichia coli
MPIGNLGNNVNGNHLIPPAPP.....
sp|P0ACF8|HNS_ECOLI=Human
MSEALKILNNIRTLRAQ........
sp|P24232|HMP_ECOLI=Flavohemoprotein
MLDAQTIATVKATIPLLVET..........
Asked by Manoj Kumar
(41 rep)
May 9, 2019, 03:58 PM
Last activity: Apr 2, 2024, 11:08 AM
Last activity: Apr 2, 2024, 11:08 AM