找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1184|回复: 1
收起左侧

[求助]关于文本文件分割

[复制链接]

该用户从未签到

发表于 2007-6-21 14:07 | 显示全部楼层 |阅读模式
因在网站上查询基因序列后 保存下的文件为一个总文件
为方便分析与查找 总文件要分割成小文件 
文件分割器不能按自己的要求分割
就只能自己编写程序...
汗 不会 呵呵 只有想各位求援了
具体序列放附件里面了 
要分割为单个的 如:
>gi|1532267|gb|U68521.1|HIVU68521 HIV-1 sample 9939 patient 10 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAGTTAGATAAATGGGAAAGAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATAAATTAAAACATATAGTATGGGCAAGCAGGGAGCTAGAACGATTCGCAGTTAA
TCCTGGCCTTTTAGAAACATCAGAAGGCTGTAGACAAATACTGGGACAGCTACAACCAGCCCTTCAGACA
GGATCAGAAGAACTTAAATCATTACATAATACAGTAGCAGTCCTCTATTGTGTGCATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGAGAAAATAGAGGAAGAGCAAAACAAAAGTAAGAAAAAAGCACAGCA


-=-=-=- 以下内容由 poao1232007年06月21日 14:11 时添加 -=-=-=-
QQ:124674322

该用户从未签到

 楼主| 发表于 2007-6-21 14:09 | 显示全部楼层

[求助]关于文本文件分割

晕 不能上传 
序列
>gi|1532267|gb|U68521.1|HIVU68521 HIV-1 sample 9939 patient 10 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAGTTAGATAAATGGGAAAGAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATAAATTAAAACATATAGTATGGGCAAGCAGGGAGCTAGAACGATTCGCAGTTAA
TCCTGGCCTTTTAGAAACATCAGAAGGCTGTAGACAAATACTGGGACAGCTACAACCAGCCCTTCAGACA
GGATCAGAAGAACTTAAATCATTACATAATACAGTAGCAGTCCTCTATTGTGTGCATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGAGAAAATAGAGGAAGAGCAAAACAAAAGTAAGAAAAAAGCACAGCA
AGCAGCAGCTGACACAGGAAACAACAGCCAGGTCAGCCAAAATTACCCTATAGTGCAGAACCTTCAGGGG
CAAATGGTA
>gi|1532263|gb|U68519.1|HIVU68519 HIV-1 sample 256 patient 9 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAATTAGATAAATGGGAAAAAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATAAATTAAAACATATAGTATGGGCAAGCAGGGAGCTAGAACGATTCGCAGTTAA
TCCTAGCCTTTTAGAGACATCAGAAGGCTGTAGACAAATACTGGGACAGCTACAACCGGCCCTTCAGACA
GGATCAGAAGAACTTAAATCATTACATAATACAGTAGCAGTCCTCTATTGTGTGCATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGAGAAGATAGAGGAAGAGCAAAACAAAAGCAAGAAAAAGGCACAGCA
AGCAGCAGCTGACACAGGAAACAACAGCCAGGTCAGCCAAAATTACCCTATAGTGCAGAACCTCCAGGGG
CAAATGGTA
>gi|1532259|gb|U68517.1|HIVU68517 HIV-1 sample 159 patient 8 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAATTAGATAGATGGGAAAAAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATAAATTAAAACATATAGTATGGGCAAGAAGGGAGCTAGAACGATTCGMAGTTAA
TCCTGGCCTTTTAGAGACATCAGAAGGTTGTAGACAAATACTGGGACAGCTACAGCCATCCCTTCAGACA
GGATCAGAAGAACTTAAATCATTACATAATACAGTAGCAGTCCTCTATTGTGTGCATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGACAAAATAGAGGAAGAGCAAAACAAAAGTAAGAAAAAAGCACAGCA
AGCAGCAGCTGACACAGGAAACAACAGCCAGGTCAGTCAAAATTACCCTATAGTGCAGAACCTTCAGGGG
CAAATGGTA
>gi|1532257|gb|U68516.1|HIVU68516 HIV-1 sample 6760 patient 7 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAATTAGATAAATGGGAAAAAATTCGGTTAAGGCCAG
GGGGAAGGAAAAAGTATAAATTAAAACATCTAGTATGGGCAAGCAGGGAGCTAGAACGATATGCAGTTAA
TCCTGGCCTTTTAGAGACATCAGAAGGCTGTAGACAAATATTAGGACAGCTACAACCAGCCATTCAGACA
GGATCAGAAGAACTTAAATCATTATATAATACAGTAGTAACCCTCTACTGTGTGCATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGACAAGGTAGAGGAAGAACAAAACAAAAGTAAGAAAAAAGCACAGCA
AGCAGCAGCTGACACAGGAAACAGCGGCAAGGTCAGCCAAAATTTCCCTATAGTGCAGAACCTACAGGGG
CAAATGGTA
>gi|1532255|gb|U68515.1|HIVU68515 HIV-1 sample 6767 patient 6 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAATTAGATAAATGGGAAAAAATTCGGTTACGGCCAG
GGGGAAAGAAAAAATATCAATTAAAACATATAGTATGGGCAAGCAGGGAGCTAGAACGATTCGCAGTTAA
TCCTGGCCTTTTAGAGACATCAGAAGGCTGTAGACAAATATTGGGACAGTTACAACCATCCCTTCAGACA
GGATCAGAAGAACTTAAATCATTATATAATACAGTAGCAACCCTCTATTGTGTGCATCAAAAGATAGATA
TAAAAGACACCAAGGAAGCTTTAGAGAAGATAGAGGAAGAGCAAAACAAATGTAAGAAAAAGGCACAGCA
AGCCGCTGCTAACACAGGAAGCAGCAGCCAGGTCAGCCAAAATTACCCTATAGTGCAGAACCTCCAGGGG
CAAATGGTA
>gi|1532253|gb|U68514.1|HIVU68514 HIV-1 sample 317 patient 5 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTACTAAGCGGGGGAGAATTAGATAAATGGGAAAAAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATCAATTAAAACATCTAGTATGGGCAAGCAGGGAGCTAGAACGATTCTCAATTAA
TCCTGGTCTTTTAGAGACATCAGAAGGCTGTAGACAAATATTGAGACAGCTACAACCATCCCTTCAGACA
GGATCAGAAGAACTTAAATCATTATATAATACAGTAGCAGTCCTCTATTGTGTGCATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGAAAAGATAGAGGAAGAGCAAAACAAAAGTAAGAAAAAGGCACAGCA
AGCAGCAGCTGACACAGGAAACAGCAGCCAGGTCAGCCAAAATTACCCTATAGTGCAGAACCTCCAGGGG
CAAATGGTA
>gi|1532249|gb|U68512.1|HIVU68512 HIV-1 sample 105 patient 3 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAATTAGATAAATGGGAAAAAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATAAATTAAAACATATAGTATGGGCAAGCAGGGAGCTAGAACGATTCGCAGTTAA
TCCTGGCCTTTTAGAGACATCAGAAGGCTGTAGACAAATATTGGGACAGCTACAACCAGCCCTTCAGACA
GGATCAGAAGAACTTAGATCATTATATAATACAGTAGCAACCCTCTATTGTGTACATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGAGAAGATAGAGGAAGAGCAAAACAAAAGTAAGAAAAAAGCACAGCA
AGCAGCAGCTGACACAGGAAGCAGCAGCCAGGTCAGCCAAAATTACCCTATAGTGCAGAACTTACAGGGG
CAAATGGTA
>gi|1532247|gb|U68511.1|HIVU68511 HIV-1 sample 135 patient 2 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCAGTATTAAGCGGGGGAGAATTAGATAAATGGGAAAAAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATAAATTAAAACATATAGTATGGGCAAGCAGGGAGCTAGAACGATTCGCAGTTAA
TCCTGGCCTTTTAGAGACATCAGAAGGCTGTAGACAAATATTGGGACAGCTACAACCAGCCCTTCAGACA
GGATCAGAAGAACTTAAATCATTATATAATACAGTAGCAACCCTCTATTGTGTACATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGAGAAGATAGAGGAAGAGCAAAACAAAAGTAAGAAAAAGGCACAGCA
AGCAGCAGCTGACACAGGAAGCAGCAGCCAGGTCAACCAAAATTACCCTATAGTGCAGAACTTACAGGGG
CAAATGGTA
>gi|1532243|gb|U68509.1|HIVU68509 HIV-1 sample 136 patient 1 from Sweden matrix protein (gag) gene, p17 region, partial cds
ATGGGTGCGAGAGCGTCRGTATTAAGCGGGGGAGAATTAGATAAATGGGAAAAAATTCGGTTAAGGCCAG
GGGGAAAGAAAAAATATAAATTAAAACATATAGTATGGGCAAGCAGGGAGCTAGAACGATTCGCAGTTAA
TCCTGGCCTTTTAGAGACATCAGAAGGCTGTAGACAAATATTGGGACAGCTACAACCATCCCTTCAGACA
GGATCAGAAGAACTTAGATCATTATATAATACAGTAGCAGTCCTCTATTGTGTGCATCAAAGGATAGATG
TAAAAGACACCAAGGAAGCTTTAGAGAAGATAGAGGAAGAGCAAAACAAAAGTAAGAAAAAGGCACAGCA
AGCAGCAGCCGCAGCAGCTGACACAGGAAACAGCAGYCAGGTCAGCCAAAATTACCCTATAGTGCAGAAC
CTACAGGGGCAAATGGTA
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|《唐诗宋词》网站 ( 苏ICP备2021032776号 )

GMT+8, 2024-11-26 01:55 , Processed in 0.070481 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表