Commit 1ce17479 authored by mirandaa's avatar mirandaa

only slipt on starting >

parent 16ef78d7
......@@ -3,7 +3,6 @@ Created on 08.11.2018
@author: mirandaa
'''
import re
if __name__ == '__main__':
print('''program to get the fasta files from a list of accession numbers
......@@ -23,8 +22,7 @@ good luck!
with open('protg_uniprot-mouse20170704.fasta', 'r') as fasta_file:
fasta = fasta_file.read()
#parts = fasta.split('>')
parts =re.split('^>', fasta)
parts = fasta.split('\n>')
partsDict = {}
for part in parts:
part1 = part.split('\n')[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment