Skip to content

Instantly share code, notes, and snippets.

View yuyangw's full-sized avatar

Yuyang Wang yuyangw

View GitHub Profile
@francois-rozet
francois-rozet / flow_matching.py
Last active July 1, 2024 19:03
Flow Matching in 100 LOC
#!/usr/bin/env python
import math
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from sklearn.datasets import make_moons
from torch import Tensor
from tqdm import tqdm
@lennax
lennax / get_torsion.py
Last active May 27, 2024 12:06
Script to calculate side-chain torsion angles from PDB files
#!/usr/bin/env python
# Copyright (c) 2014 Lenna X. Peterson, all rights reserved
# lenna@purdue.edu
import argparse
import csv
import glob
import logging
import math
import os