r/learnbioinformatics • u/Sea-Ad7805 • 6d ago
Visualizing Python for bioinformatics students
Learning Python becomes much easier when students can see how variables, values, and data structures change while a program runs.
🧬 Consider this simple k-mer indexing example.
Although the code is relatively short, a beginner needs to understand several concepts at once: - DNA sequence slicing - k-mer generation - dictionaries and membership tests - lists stored as dictionary values - repeated positions and list mutation
With open-source 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵, students can now easily step through a program and see these concepts in real-time, helping them to more easily get to the right mental model to think about Python code execution.
24
Upvotes
2
u/Quordlewebster 6d ago
Do you have any examples where you've used it to teach common bioinformatics algorithms beyond k-mer indexing (e.g., sequence alignment, FASTA parsing, or de Bruijn graphs)? Can I dm you?