comparison get_chrom_sizes/calculating_chrom.sizes.py @ 24:feeee18b0084 draft

Uploaded
author jackcurragh
date Wed, 18 May 2022 10:28:29 +0000
parents cc021a23613b
children 9b2bb994fc76
comparison
equal deleted inserted replaced
23:ca6a237895f3 24:feeee18b0084
11 # genome = 'test-data/test.fasta' 11 # genome = 'test-data/test.fasta'
12 # output = "test-data/test_chrom.sizes" 12 # output = "test-data/test_chrom.sizes"
13 if fasta_source == 'builtin': 13 if fasta_source == 'builtin':
14 genome = builtin 14 genome = builtin
15 15
16 chromSizesoutput = open('output',"w") 16 chromSizesoutput = open(output,"w")
17 17
18 records = [] 18 records = []
19 record = False 19 record = False
20 for line in open(genome, 'r').readlines(): 20 for line in open(genome, 'r').readlines():
21 if line[0] == '>': 21 if line[0] == '>':