limix / bgen-reader-py

A BGEN file format reader.
MIT License
10 stars 3 forks source link

example_filepath reports AWS error #48

Open CarlKCarlK opened 10 months ago

CarlKCarlK commented 10 months ago

If we run the first example from documentation, it fails:

from bgen_reader import example_filepath
bgen_file = example_filepath("example.bgen")

# Read from the file
from bgen_reader import open_bgen
bgen = open_bgen(bgen_file, verbose=False)
probs0 = bgen.read(0)   # Read 1st variant
print(probs0.shape)     # Shape of the NumPy array
# (500, 1, 3)
probs_all = bgen.read() # Read all variants
print(probs_all.shape)  # Shape of the NumPy array
# (500, 199, 3)
HTTPError: 404 Client Error: Not Found for url: https://bgen-examples.s3.amazonaws.com/example.bgen

@horta If you'd like me to switch it to use POOCH (as per issue #31 ), assign it to me and let me know.

-- Carl

horta commented 10 months ago

Hi @CarlKCarlK , please do =) Also, that example.bgen is not available anymore at that address :/

Need to check it when I'm home. I might have the backup of those files...

CarlKCarlK commented 10 months ago

@horta ,

I have many copies of it (It is 650KB in size, right?)

One downside to using pooch: It adds a dependency that users may not like.

(A potential user of bed-reader [not to be confused with bgen-reader], said he didn’t want to take a dependency on bed-reader because it would add a dependency on pooch (and also Pandas)).

CarlKCarlK commented 10 months ago

I have many copies of it (It is 650KB in size, right?)

One downside to using pooch: It adds a dependency that users may not like.

(A potential user of bed-reader [not to be confused with bgen-reader], said he didn’t like want to take a dependency on bed-reader because it would add a dependency on pooch (and also Pandas)).

From: Danilo Horta @.> Sent: Tuesday, October 31, 2023 3:03 AM To: limix/bgen-reader-py @.> Cc: Carl Kadie @.>; Mention @.> Subject: Re: [limix/bgen-reader-py] example_filepath reports AWS error (Issue #48)

Hi @CarlKCarlKhttps://github.com/CarlKCarlK , please do =) Also, that example.bgen is not available anymore at that address :/

Need to check it when I'm home. I might have the backup of those files...

— Reply to this email directly, view it on GitHubhttps://github.com/limix/bgen-reader-py/issues/48#issuecomment-1786890734, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABR65P7ZD3NCE2WEENPP563YCDED5AVCNFSM6AAAAAA6WIWPC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBWHA4TANZTGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>