PyVCF icon indicating copy to clipboard operation
PyVCF copied to clipboard

Pandas dataframe integration

Open hkmztrk opened this issue 4 years ago • 0 comments

Hello,

Is there an easy way to create a data frame from the records? Something like below?

vcf_reader = vcf.Reader(open(somatic, 'r'))
lines = [el for el in vcf_reader]
df_vcf = pd.DataFrame(lines)

Thanks!

hkmztrk avatar Jul 14 '20 13:07 hkmztrk