{ "name": "GCContent", "summary": "The fraction of the letters of a sequence that are G or C.", "tags": [ "sequences", "counting" ], "sources": [ { "title": "Any molecular biology text: GC content" } ], "cases": [ { "call": "GCContent(\"GATTACA\")" }, { "call": "GCContent(\"GGCC\")" }, { "call": "GCContent(\"ATAT\")" } ], "references": [ { "lang": "python", "level": "plain", "file": "ref/python/plain.py", "note": "The same count." }, { "lang": "mojo", "level": "plain", "file": "ref/mojo/plain.mojo", "note": "The same count in Mojo." } ], "proof": { "lang": "dafny", "file": "proof/gc_content.dfy", "note": "The count never exceeds the length, so the fraction lies in [0, 1]." } }