-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CPU parallelization option to arguments * Parallelize validation function over CPUs * Add CPUs to ValidateArgs * Update tests for validation * Fix encoding test * Bump version for official v4.0.0 release * Remove unused import * Update tests with Pool as context manager * Update to use with * Add CPUs option in the README and update installation instructions * Fix link text * Fix positive integer check * Add tests for positive integer type * Add basic libmagic installation steps * Prepend PID to success and error printers * Update README with updated parameter name * Update argument in parser * Update argument in validation * Update tests
- Loading branch information
1 parent
af334fe
commit 2ed7792
Showing
7 changed files
with
137 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,13 +31,40 @@ The tool can be installed as a standalone command line tool. The following depen | |
|Python|3.10| | ||
|VCFtools|0.1.16| | ||
|
||
### Install directly from GitHub | ||
Additionally, the `libmagic` C library must also be installed on the system. | ||
|
||
### Installing `libmagic` | ||
|
||
On Debian/Ubuntu, install through: | ||
```Bash | ||
sudo apt-get install libmagic-dev | ||
``` | ||
|
||
On Mac, install through homebrew (https://brew.sh/): | ||
```Bash | ||
brew install libmagic | ||
``` | ||
|
||
`libmagic` can also be installed through the `conda` package manager: | ||
```Bash | ||
conda install -c conda-forge libmagic | ||
``` | ||
|
||
With the dependencies (and the proper versions) installed, install `pipeval` through one of the options below: | ||
|
||
### Install directly from GitHub through SSH | ||
```Bash | ||
pip install git+ssh://[email protected]/uclahs-cds/package-PipeVal.git | ||
``` | ||
|
||
### Install directly from GitHub through HTTPS | ||
```Bash | ||
pip install git+https://[email protected]/uclahs-cds/package-PipeVal.git | ||
``` | ||
|
||
### Install from cloned repository | ||
```Bash | ||
<clone the PipeVal GitHub repository> | ||
cd </path/to/cloned/repository> | ||
pip install . | ||
``` | ||
|
@@ -55,6 +82,8 @@ options: | |
-v, --version show program's version number and exit | ||
-r CRAM_REFERENCE, --cram-reference CRAM_REFERENCE | ||
Path to reference file for CRAM | ||
-p PROCESSES, --processes PROCESSES | ||
Number of processes to run in parallel when validating multiple files | ||
``` | ||
|
||
The tool will attempt to automatically detect the file type based on extension and perform the approriate validations. The tool will also perform an existence check along with a checksum check if an MD5 or SHA512 checksum exists regardless of file type. | ||
|
@@ -130,8 +159,8 @@ pytest | |
## Discussions | ||
|
||
- [Issue tracker](https://github.com/uclahs-cds/package-PipeVal/issues) to report errors and enhancement ideas. | ||
- Discussions can take place in [tool-NF-test Discussions](https://github.com/uclahs-cds/package-PipeVal/discussions) | ||
- [tool-NF-test pull requests](https://github.com/uclahs-cds/package-PipeVal/pulls) are also open for discussion | ||
- Discussions can take place in [package-PipeVal Discussions](https://github.com/uclahs-cds/package-PipeVal/discussions) | ||
- [package-PipeVal pull requests](https://github.com/uclahs-cds/package-PipeVal/pulls) are also open for discussion | ||
|
||
## Contributors | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
'''Inits validate module''' | ||
|
||
__version__ = '4.0.0-rc.2' | ||
__version__ = '4.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
|
||
ValidateArgs = namedtuple( | ||
'args', | ||
'path, cram_reference' | ||
'path, cram_reference, processes' | ||
) |