Mercurial > repos > mheinzl > variant_analyzer2
diff mut2sscs.py @ 8:ced1a529e7cd draft
planemo upload for repository https://github.com/Single-Molecule-Genetics/VariantAnalyzerGalaxy/tree/master/tools/variant_analyzer commit ee4a8e6cf290e6c8a4d55f9cd2839d60ab3b11c8
author | mheinzl |
---|---|
date | Thu, 04 Feb 2021 08:55:35 +0000 |
parents | ded0dc6a20d3 |
children | e18c5293aac7 |
line wrap: on
line diff
--- a/mut2sscs.py Mon Jan 25 13:21:55 2021 +0000 +++ b/mut2sscs.py Thu Feb 04 08:55:35 2021 +0000 @@ -68,7 +68,10 @@ stop_pos = variant.start #chrom_stop_pos = str(chrom) + "#" + str(stop_pos) ref = variant.REF - alt = variant.ALT[0] + if len(variant.ALT) > 0: + alt = variant.ALT[0] + else: + alt = variant.ALT chrom_stop_pos = str(chrom) + "#" + str(stop_pos) + "#" + ref + "#" + alt if len(ref) == len(alt):