Hi, I think this is anĀ analogous question to the one brought up about year and a half ago by Martin Morgan in this issue:
https://github.com/Bioconductor/AnnotationHub/issues/45 on how could we ask the user to accept a license before downloading the corresponding AlphaMissense data from the AnnotationHub. In GenomicScores, which also provides access to AlphaMissense data, I implemented a temporary solution until we have a general solution for all AH resources, by which if the resource metadata (that I created myself) included a license, this is displayed to the user, who must accept it to use the data: > library(GenomicScores) > am <- getGScores("AlphaMissense.v2023.hg38") snapshotDate(): 2024-10-28 loading from cache These data is shared under the license CC BY-NC-SA 4.0 (see https://creativecommons.org/licenses/by-nc-sa/4.0), do you accept it? [y/n]: y > am GScores object # organism: Homo sapiens (UCSC, hg38) # provider: Google DeepMind # provider version: v2023 # download date: Oct 10, 2023 # loaded sequences: chr1 # maximum abs. error: 0.005 # license: CC BY-NC-SA 4.0, see https://creativecommons.org/licenses/by-nc-sa/4.0 # use 'citation()' to cite these data in publications so, I guess a similar strategy could be applied, but requiring a password instead of accepting a license. this of course implies implementing a hub package that handles this, as GenomicScores is doing. cheers, robert. On 6/2/25 10:53, Laurent Gatto via Bioc-devel wrote: > Dear hub developers, dear Lori, > > Section 7.1 'Hosting Data on a Publicly Accessible Site' from the 'Creating A > Hub Package' vignette (HubPub package) [1] describes how to define resources > stored on ftp servers. Is there a way to specify a password to download such > a resource? > > The data I would like to share as a hub resource needs a password. The > password is public (it's spelled out in the associated publication). I > imagine that at some point, the data will become accessible without password, > but that can be a bit of a hit and miss situation. I would prefer avoiding > re-sharing the files elsewhere or to have to wait until the data becomes > accessible without password. > > Thank you in advance. > > Laurent > > [1]https://bioconductor.org/packages/3.20/bioc/vignettes/HubPub/inst/doc/CreateAHubPackage.html#storage-of-data-files > _______________________________________________ > Bioc-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/bioc-devel -- Robert Castelo, PhD Associate Professor Dept. of Medicine and Life Sciences Universitat Pompeu Fabra (UPF) Barcelona Biomedical Research Park (PRBB) Dr Aiguader 88 E-08003 Barcelona, Spain telf: +34.933.160.514 [[alternative HTML version deleted]] _______________________________________________ Bioc-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel