Python script to generate a bioinformatics data management audit report.
Only works with Python 3.
Installation:
pip3 dmaudit
Usage:
dmaudit report /path/to/dir/to/audit
Scripts to perform audits of bioinformatics data in a directory tree
Encountering a PermissionError trying to read a subdirectory will stop the whole script with a stack trace, e.g:
Auditing directory: /jic/scratch/groups/Matthew-Hartley
Traceback (most recent call last):
File "/dmaudit/dmaudit.py", line 262, in
dmaudit()
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/dmaudit/dmaudit.py", line 235, in dmaudit
directory = build_tree(directory, level, 0, check_mimetype=check_mimetype)
File "/dmaudit/dmaudit.py", line 161, in build_tree
check_mimetype=check_mimetype)
File "/dmaudit/dmaudit.py", line 161, in build_tree
check_mimetype=check_mimetype)
File "/dmaudit/dmaudit.py", line 150, in build_tree
for entry in os.scandir(path):
PermissionError: [Errno 13] Permission denied: '[redacted]'
Where we catch FileNotFound, we might also want to catch PermissionError
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.