我有如下数据
>P1;gi|467971|gb|AA3.1|
-MASLAALLPLLALLVLCRLDPAQA
QAEPGAGG-LQELALQ---KRGIVE
QCCTSICSLYQLEN---
*
>P1;gi|307072|gb|AAA59179.1|
-MALWMRLLPLLALLALWGPDPAAA
FPK-TR-EAPGAGS-LEGSLQ--KRE
QCCTSICSLYQLENYCN
*
>P1;gi|387059|gb|AAA31.1|
-MALVLALLALWNTNQAFVS-RHLC
FYIPK-DRREG-LQLQ---KRGIVD
QCCTGTCTRHQLQS---
*
在 python 中,我如何将这些转换为如下所示的数据
-MASLAALLPLLALLVLCRLDPAQAQAEPGAGG-LQELALQ---KRGIVEQCCTSICSLYQLEN---,- MALWMRLLPLLALLALWGPDPAAAFPK-TR-EAPGAGS-LEGSLQ--KREQCCTSICSLYQLENYCN,-MALVLALLALWNTNQAFVS-RHLCFYIPK-DRREG-LQLQ---KRGIDQCCTGTCTRHQLQS---