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

Regulatory annotation download link is hardcoded #13

Open
julia-luz opened this issue Jan 22, 2024 · 2 comments
Open

Regulatory annotation download link is hardcoded #13

julia-luz opened this issue Jan 22, 2024 · 2 comments

Comments

@julia-luz
Copy link

Hello!

"""wget https://ftp.ensembl.org/pub/release-{params.release}/regulation/homo_sapiens/homo_sapiens.GRCh38.Regulatory_Build.regulatory_features.20220201.gff.gz --no-check-certificate -O {output} 2> {log}"""

The number between regulatory_features and .gff.gz in the url varies between releases. Attempting to wget https://ftp.ensembl.org/pub/release-{params.release}/regulation/homo_sapiens/homo_sapiens.GRCh38.Regulatory_Build.regulatory_features.20220201.gff.gz if the release version is set to 110 on the config file will cause this to fail, since the proper url for release 110 would be https://ftp.ensembl.org/pub/release-110/regulation/homo_sapiens/homo_sapiens.GRCh38.Regulatory_Build.regulatory_features.20221007.gff.gz

@tedil
Copy link
Collaborator

tedil commented Feb 29, 2024

Do you happen to know of a programmatic way to get that date correct? Everything else can easily be derived/specified, but the date cannot be known in advance, unless you either check the ftp directory / there is an overview file with release <-> freeze date information.

@julia-luz
Copy link
Author

I'm pretty new to programming in general, which is why my first instinct is probably to regex hammer it - wget does have an option for it, I could play around with that.

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

2 participants