This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can i add the same sequence starting from the last of a sequence in a multi-fasta file?

actually i want to extend the sequences in fasta file by adding same sequence next to a sequence..

sequence sequencing rna-seq next-gen assembly

And what have you tried? Where do you need our help?

:)

Ali Syed

Biostars is not meant for ready-made answers. We do not encourage asking for direct solutions. Show us your efforts and let us know where you are stuck. We will then try to put you on the right track.

thanks a lot.. i have figure it out by using "paste" command.. it really works

paste -d "\0" unp_bef60.fa unp_bef60-2.fa > unp_bef60_dup.fa

here,

  • unp_bef60.fa original fasta file
  • unp_bef60-2.fa is same file with another name..
  • unp_bef60_dup.fa is final file after duplication..

just need to remove duplicated headers which is an easy task.

0 answers

No answers yet.

Log in to answer this question.