# HG changeset patch # User artbio # Date 1570178033 14400 # Node ID 8b56955927844683cd306331f5c20b57f811cad1 # Parent 14adf24603b64ee74d3df5dd8b1a5e60145a2b7a "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit c3d728b98db4987821feae40952d9797c97eaf5a" diff -r 14adf24603b6 -r 8b5695592784 delphine --- a/delphine Thu Apr 25 12:49:05 2019 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -Proc-Type: 4,ENCRYPTED -DEK-Info: AES-128-CBC,0F428118B5D165772A9B414AC1C31A31 - -EjQgREw0ka00AK6us4JLeTo/M3/w74KeyrZLbuGvh5PC5LcrMjfCGC3tTbnD33MP -lZNFdPBw3aGfhweRCThTtB9v+GxRYgYvv7IWoOycaCoAaR+KnYnalgQLgQUhSO5Q -wCuoY4sI6liM5RmpScezlGjTcOr3FFDhtz+roeGI3Te/3KJX/B3nQHc8LeG3Xu8C -yp76PGJQnZUAag+SUSMcxV/qYBnfqiTmtPZASyTtkNwgEHwjZcM+z/vAXit2rl8C -LlU/IjD/82olYM2UTFVlW32DInlgX7oUjo7pKl1cFJpkCfbGKWg1MsdVPNb4uE0h -KuDdOmHQFPluQUJEKPmhO9NfJypR+/7zJVZQSe20APBxZ3teGPR1Adk1A9VJQWyj -imgvoJmnwFj+Xds5I0clin0nJle0WSZfj5nfV7UEgJGxXaszKV1bIbUVRRJY5FfL -6meAo6AvgMRJD4fZp7CP8GtYJGLfD0vpBIMvj1Aqzu5OtxvGF5zls15K+NvVQIfg -UyQxwJbVePqEdv5+vDum3faapYIjjNF/gbQ09U7iTmcTXTWyrJEB47Q7AKnBc/SV -j7nR6/1HaKwpY5LmPp+CgoX7lm6L9B9hxFYZCiUsNSyl4nmjPDEvSST6yLNOYKgA -2Ia12aKlakqm8p3rjJ2OVDyPO5kbKw0r7u3yqjdfnd/kL1mdM2//0ti9k1kEl928 -qeaYfKUXCXjVuG5a3m4KHIOXEKd/5hnkRaG+IZxR2ZBt/M4n+Uj1Rivw0FL503TL -ms71iJ5YonaPoAgrj7mcKIWTHmcSARwUihuUaZGG9N0WX3S3A+z0HCoqWFHXyIEs -UfsqVMiucTuHyeNwQLTYmvN5EB8r54c4NyACVt6nsnYz87CtLqmXpQDBMGUjXUYA -dpIIXSml0WYoQiLw0jSrp18UlWEidaED2aukax6LNTHYrN0GQ+GCVoIYiVpAGQDX -2LJ/VCVSYVStLZjOSRBWHskbLeXfUkQaoPQEL+5K/c7a0c4IJxSluirKufZ7xn3+ -LrUiyomy71kijrrpY1rIHwcAIHPxXI3avJMxq5tZYR5wEqQkH0eWsy8yew73ejyQ -rY+k7nWVFaE/oW0cBo814HJ70BuFhaRJ2siEQvs5RpXevlnhyfZao1X/J7ZUg9l+ -+TUVcEGUwCyagIEQebzp38Y9rQfh3ek3j8TM5vxIuFxkdVNtH+pgF09vX/QyqLcE -CwybkCYyOjEYveGCaHTHedih+YqCGbiBQvw+b14AnZBWivusnXHogpY9WJTis+eW -6EXrdt05ExqypISt/B6EnZWEv3Tc80TPcvf64Z61PabY8f2lvbq2mPaKKxYEvuuy -5R6qfX28zaRFp3MOQ753DAwNWwdwha1ZIglndLw3M9CAI2emn+4yLod7h6b/hl4Y -TNAtcD4zUWH9KkN7diPjIc2W2njZ00bu1TcT/jShHiTdY7i9w7VrUWcvQISrpbCS -TpYLYqY10D9SLO7lPU27jFGe5Mcbsw2JFkJjG+JwEIkLzoIDDSFL3RIkZ+Ql1nDT -hk9pxr+k+V0dyp+Ul2TGFZC/vIB22a9sBRodNYzxKDtbRjNrDEqEe8QzQwfI/if5 ------END RSA PRIVATE KEY----- diff -r 14adf24603b6 -r 8b5695592784 delphine.pub --- a/delphine.pub Thu Apr 25 12:49:05 2019 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCutrZRQSP+aGOboaDMnrazTziyuI9iAeK9CVtgOCKFzg5c+oBj7pkGPiYsWnJpYWn8vHyhAk/VSCmPHHlGR3aNMKg1x1NKNQXzodljdnXfAMs012rZnI4r8Gl/ww6rhVFfbxptVIKNdZxlLBDBxjvWJ6G6Y8MqGPCpFQsFWtKPRgYl9A8UNqtReindJKOc/TuIFFeHvuPMSU7m2ZqCMuKGCjbWPU9RwvPuYURxYiTXP7ooMZLRD1tbc+vQUGIMDX+gXpQ7ntonZVtDGxC5qQJeUKVtGgp1RKKJ4Zbje5UNd47E3TiJQPMgJJL8TqjjHcFQBqtQVyzBJdVlnHxCgnoB chris@GED-Server diff -r 14adf24603b6 -r 8b5695592784 small_rna_maps.py --- a/small_rna_maps.py Thu Apr 25 12:49:05 2019 -0400 +++ b/small_rna_maps.py Fri Oct 04 04:33:53 2019 -0400 @@ -243,9 +243,9 @@ map_dictionary[(chrom, pos+1, 'F')] = [] for key in map_dictionary: coverage = self.bam_object.count_coverage( - reference=key[0], + contig=key[0], start=key[1]-1, - end=key[1], + stop=key[1], quality_threshold=quality) """ Add the 4 coverage values """ coverage = [sum(x) for x in zip(*coverage)] @@ -298,7 +298,7 @@ sizeness[size] += sizedic[chrom][polarity][size] Strandbias = strandness['F'] + strandness['R'] if Strandbias: - Strandbias = strandness['F'] / float(Strandbias) + Strandbias = round(strandness['F'] / float(Strandbias), 2) else: Strandbias = 2 Mean = numpy.mean(sizeness.values()) @@ -313,10 +313,10 @@ try: line = [self.sample_name, chrom, polarity, size, sizedic[chrom][polarity][size], - Strandbias, sizeness[size]] + Strandbias, round(sizeness[size], 3)] except KeyError: line = [self.sample_name, chrom, polarity, size, 0, - Strandbias, sizeness[size]] + Strandbias, round(sizeness[size], 3)] line = [str(i) for i in line] out.write('\t'.join(line) + '\n') diff -r 14adf24603b6 -r 8b5695592784 small_rna_maps.xml --- a/small_rna_maps.xml Thu Apr 25 12:49:05 2019 -0400 +++ b/small_rna_maps.xml Fri Oct 04 04:33:53 2019 -0400 @@ -1,13 +1,15 @@ - + numpy - pysam - r-optparse - r-latticeextra - r-gridextra - r-reshape2 + pysam + r-optparse + r-latticeextra + r-gridextra + r-reshape2 sambamba + samtools + icu @@ -79,7 +81,9 @@ + help="Enter normalisation factors separated by space eg [0.75 1.23 1.1], no normalization if no values, + ignored if a single sample" + value="1"/>