-
Notifications
You must be signed in to change notification settings - Fork 23
SB Make ids unique
Steve Bond edited this page Feb 17, 2016
·
3 revisions
It is often problematic if multiple records in a single file have the exact same ID, so use this tool to prepend numbers to the ends of repeated IDs to make them unique.
Optional. Add some string to separate the original ID from the new numbers being appended.
Optional. Pad the identifier number with zeros.
>Seq10A
mrlsekstshdckacitrshnddcarrwgitiddgwdqlnrsfmfgllvv
>Seq10B
mrlqekstshdckacitrshnedcarrwgitiddgwdqlnrsfmfgllvg
>Seq11
mlisslvqfsrlspfkeitiddgwdqlnrsfmfvlmvicgtivtvrqhtg
>Seq12A
mvidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A
mkidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A
mvifilsgfkgitpfygitlddgwsqinrsfmfvlcvlmgtvvtvrqyaa
>Seq13
sfrseafvdeycwtqgiytlreaydlentkipypgiipegfpncmpyerw
$: sb Duplicates.fa -miu
>Seq10A
mrlsekstshdckacitrshnddcarrwgitiddgwdqlnrsfmfgllvv
>Seq10B
mrlqekstshdckacitrshnedcarrwgitiddgwdqlnrsfmfgllvg
>Seq11
mlisslvqfsrlspfkeitiddgwdqlnrsfmfvlmvicgtivtvrqhtg
>Seq12A1
mvidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A2
mkidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A3
mvifilsgfkgitpfygitlddgwsqinrsfmfvlcvlmgtvvtvrqyaa
>Seq13
sfrseafvdeycwtqgiytlreaydlentkipypgiipegfpncmpyerw
$: sb Duplicates.fa -miu 4
>Seq10A
mrlsekstshdckacitrshnddcarrwgitiddgwdqlnrsfmfgllvv
>Seq10B
mrlqekstshdckacitrshnedcarrwgitiddgwdqlnrsfmfgllvg
>Seq11
mlisslvqfsrlspfkeitiddgwdqlnrsfmfvlmvicgtivtvrqhtg
>Seq12A0001
mvidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A0002
mkidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A0003
mvifilsgfkgitpfygitlddgwsqinrsfmfvlcvlmgtvvtvrqyaa
>Seq13
sfrseafvdeycwtqgiytlreaydlentkipypgiipegfpncmpyerw
$: sb Duplicates.fa -miu 4 "-"
>Seq10A
mrlsekstshdckacitrshnddcarrwgitiddgwdqlnrsfmfgllvv
>Seq10B
mrlqekstshdckacitrshnedcarrwgitiddgwdqlnrsfmfgllvg
>Seq11
mlisslvqfsrlspfkeitiddgwdqlnrsfmfvlmvicgtivtvrqhtg
>Seq12A-0001
mvidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A-0002
mkidilsgfkgitpfkgitlddgwdqinrsfmfvlcvlmgtvvtvrqyag
>Seq12A-0003
mvifilsgfkgitpfygitlddgwsqinrsfmfvlcvlmgtvvtvrqyaa
>Seq13
sfrseafvdeycwtqgiytlreaydlentkipypgiipegfpncmpyerw