Mercurial > repos > drosofff > msp_sr_readmap_and_size_histograms
comparison readmap.py @ 5:bcc0c7093e7a draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 9237338d798251fb2667280d597746e852f3ffcc-dirty
| author | mvdbeek |
|---|---|
| date | Thu, 04 Feb 2016 06:27:43 -0500 |
| parents | 4efe210c91f3 |
| children | be0c6b6466cc |
comparison
equal
deleted
inserted
replaced
| 4:4efe210c91f3 | 5:bcc0c7093e7a |
|---|---|
| 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. |
