Skip to content

Instantly share code, notes, and snippets.

@paoloinglese
paoloinglese / needleman-wunsch-affine-gap.py
Created February 17, 2024 12:41
Needleman Wunsch sequence alignmnet with affine gap
#!/usr/bin/env python
# -*-coding:utf-8 -*-
"""
@File : needleman-wunsch.py
@Author : Paolo Inglese
@Version : 1.0
@Contact : p.inglese14@imperial.ac.uk
@Desc : Needleman-Wunsch algorithm for global sequence alignment with affine gap penalties
"""
@paoloinglese
paoloinglese / christmas.py
Created December 21, 2022 18:26
A simple Christmas tree 🎄
import os
import time
import random
def pt(h=10):
pg = 0.8
lf = "*"
sy = ["@", "o", "Q"]
lc = ['\033[94m', '\033[93m', '\033[91m']