Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandas dataframe integration #324

Open
hkmztrk opened this issue Jul 14, 2020 · 0 comments
Open

Pandas dataframe integration #324

hkmztrk opened this issue Jul 14, 2020 · 0 comments

Comments

@hkmztrk
Copy link

hkmztrk commented Jul 14, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant