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

In load_vcf, when passed a URL download it first to a local file then… #165

Merged
merged 2 commits into from
Aug 8, 2016

Conversation

timodonnell
Copy link
Contributor

@timodonnell timodonnell commented Aug 5, 2016

… open that.

Closes #163


This change is Reviewable

@coveralls
Copy link

coveralls commented Aug 6, 2016

Coverage Status

Coverage decreased (-0.2%) to 88.724% when pulling a328f04 on fix-163 into c9a939e on master.

# implementation here.
# to load VCFs over HTTP with pandas directly, and instead download it
# to a temporary file and open that.
(filename, headers) = urllib.request.urlretrieve(path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if load_vcf fails? Where does newly downloaded file stick around?

@timodonnell
Copy link
Contributor Author

Good catch! Updated it to cleanup the file.

@coveralls
Copy link

coveralls commented Aug 6, 2016

Coverage Status

Coverage decreased (-0.5%) to 88.378% when pulling 4939a46 on fix-163 into c9a939e on master.

@iskandr
Copy link
Contributor

iskandr commented Aug 8, 2016

Good to merge?

@timodonnell
Copy link
Contributor Author

Yep

@timodonnell timodonnell merged commit e02e8af into master Aug 8, 2016
@timodonnell timodonnell deleted the fix-163 branch August 8, 2016 16:01
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

Successfully merging this pull request may close these issues.

None yet

3 participants