Skip to content

Instantly share code, notes, and snippets.

View SciNanda's full-sized avatar

Fernanda Ferreira SciNanda

  • COPPE/UFRJ
View GitHub Profile
@dceoy
dceoy / read_vcf.py
Last active July 5, 2024 22:17
[Python] Read VCF (variant call format) as pandas.DataFrame
#!/usr/bin/env python
import io
import os
import pandas as pd
def read_vcf(path):
with open(path, 'r') as f:
lines = [l for l in f if not l.startswith('##')]