Verified Commit 119061f9 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

🎨 use python3 syntax

parent 15a2a611
def gc_percent(seq):
gc_pc = float(seq.count('g') + seq.count('c')) / float(len(seq))
return gc_pc
\ No newline at end of file
:param seq: The nucleic sequence to compute
:type seq: string
:return: the percent of GC in the sequence
:rtype: float
seq = seq.upper()
gc_pc = float(seq.count('G') + seq.count('C')) / float(len(seq))
return gc_pc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment