Mercurial > repos > drosofff > msp_sr_readmap_and_size_histograms
comparison readmap.py @ 19:f75315939afe draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 9237338d798251fb2667280d597746e852f3ffcc-dirty
author | drosofff |
---|---|
date | Thu, 04 Feb 2016 06:28:28 -0500 |
parents | 893560ece89f |
children | d6b93af0da55 |
comparison
equal
deleted
inserted
replaced
18:893560ece89f | 19:f75315939afe |
---|---|
75 """ | 75 """ |
76 gene, coordinate, count, orientation = item.split("\t") | 76 gene, coordinate, count, orientation = item.split("\t") |
77 return gene, coordinate, count, orientation | 77 return gene, coordinate, count, orientation |
78 | 78 |
79 def lookup_gene_length(gene, readDict): | 79 def lookup_gene_length(gene, readDict): |
80 return readDict[readDict.keys()[0]].instanceDict.values()[0].size | 80 return readDict[readDict.keys()[0]].instanceDict[gene].size |
81 | 81 |
82 def handle_start_stop_coordinates(plottable, readDict): | 82 def handle_start_stop_coordinates(plottable, readDict): |
83 """ | 83 """ |
84 To ensure that the plot area always includes the correct start and end coordinates, | 84 To ensure that the plot area always includes the correct start and end coordinates, |
85 we add an entry at start [coordinate 0] and end [last coordinate] of count 0, if these do not exist. | 85 we add an entry at start [coordinate 0] and end [last coordinate] of count 0, if these do not exist. |