We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The ensembldb3.download.Download class should check that all downloaded files match the value in Ensembl's provided CHECKSUMS file.
ensembldb3.download.Download
Add a function based on the following code that is called by Download.
Download
def get_invalid_files(path): """return files with invalid checksums""" checkpath = (path / "CHECKSUMS") failed = [] with open(checkpath) as infile: for record in infile.readlines(): record = record.split() filepath = path / record[-1] if not filepath.exists(): continue result = exec_command(f"sum {filepath}") result = result.split() if result != record[:2]: failed.append(filepath) return failed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
ensembldb3.download.Download
class should check that all downloaded files match the value in Ensembl's provided CHECKSUMS file.Add a function based on the following code that is called by
Download
.The text was updated successfully, but these errors were encountered: