Posts by lucas palheta • 52 points
3 posts
-
3
votes1
answer96
viewsA: Calculate k-Mers of DNA sequences in a fasta file- In python
Test this from Bio import SeqIO def build_kmers(sequence, ksize): kmers = [] n_kmers = len(sequence) - ksize + 1 for i in range(n_kmers): kmer = sequence[i:i + ksize] kmers.append(kmer) return…
-
1
votes2
answers159
viewsA: How do I repeat an algorithm in Python?
Put your if’s inside a while with a variable conditioning the loop. print() print("-----> Calculadora <-----") print() loop = "" while loop != "não": valor1 = int(input("Insira o primeiro…
-
-3
votes1
answer100
viewsQ: Update lines in ods file using python
I am looking for a way to update some lines of an existing pre file in ods format using the python language. I managed to create a new file using the code block below, but the need would be to…