Mercurial > repos > artbio > mircounts
comparison mircounts.py @ 4:da1aa7de2b19 draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/mircounts commit ddaf9622722487d010001cd1f255107adf0c332d
| author | artbio |
|---|---|
| date | Mon, 04 Sep 2017 17:55:01 -0400 |
| parents | da29af78a960 |
| children | 2a08a6eb471c |
comparison
equal
deleted
inserted
replaced
| 3:6b8adacd4750 | 4:da1aa7de2b19 |
|---|---|
| 102 """ | 102 """ |
| 103 Takes a dict[<gene_type name>]=count and | 103 Takes a dict[<gene_type name>]=count and |
| 104 writes a count table | 104 writes a count table |
| 105 """ | 105 """ |
| 106 F = open(outfile, 'w') | 106 F = open(outfile, 'w') |
| 107 F.write('Gene\tCounts\n') | |
| 108 for gene in sorted(countdict): | 107 for gene in sorted(countdict): |
| 109 F.write('%s\t%s\n' % (gene, str(countdict[gene]))) | 108 F.write('%s\t%s\n' % (gene, str(countdict[gene]))) |
| 110 F.close() | 109 F.close() |
| 111 | 110 |
| 112 | 111 |
