Esempio n. 1
0
from libs.io import from_file
from libs.io import to_file
from libs.trans import matches
from libs.inst import dna
from libs.const import DNA_NUCLEOTIDES

to_file(matches(dna(from_file("datasets/0")), DNA_NUCLEOTIDES), "outputs/0",
        ' ')
Esempio n. 2
0
from libs.io import from_file
from libs.io import to_file
from libs.trans import evolve
from libs.inst import popul
from libs.seq import fib

to_file(evolve(popul(from_file("datasets/4", ' ', cast=int)), fib),
        "outputs/4")
Esempio n. 3
0
from libs.io import from_file
from libs.io import to_file
from libs.trans import convert
from libs.rna import RNA
from libs.inst import dna

to_file(convert(dna(from_file("datasets/1")), RNA), "outputs/1")
Esempio n. 4
0
from libs.io import from_file
from libs.io import to_file
from libs.trans import rev_complement
from libs.inst import dna

to_file(rev_complement(dna(from_file("datasets/2"))), "outputs/2")
Esempio n. 5
0
from libs.gen import Allele
from libs.io import from_file
from libs.io import to_file
from libs.trans import combine
from libs.gen import Genotypes
from libs.inst import gens

to_file(
    combine(Genotypes, gens(from_file("datasets/3", ' ')), Allele.DOMINANT),
    "outputs/3")