Skip to content
Snippets Groups Projects
Commit 0aa2d4f6 authored by barillac's avatar barillac
Browse files

sysname calculation script added

SVN: 35325
parent 21f65832
No related branches found
No related tags found
No related merge requests found
import re
def calculate_sysname():
result = (len(re.findall("A|a|T|t", entity.propertyValue('SEQUENCE'))) * 100)/len(re.findall("A|a|C|c|G|g|T|t|U|u", entity.propertyValue('SEQUENCE')))
type=entity.propertyValue('OLIGO_TYPE')
if type == "DNA":
type = "d"
else:
type ="r"
sense= entity.propertyValue('SENSE')
if sense == "SENSE":
sense = "s"
elif sense == "ANTISENSE":
sense ="a"
group = entity.propertyValue('GROUP')
fromNuc = entity.propertyValue('FROM_NUC')
toNuc= entity.propertyValue('TONUC')
result = type + "-" +sense +"-" +group + "-" + "[" +fromNuc +"-"+toNuc+"]"
return result
def calculate():
return calculate_sysname()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment