biocheck-cli 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. biocheck_cli-0.1.0/.github/workflows/ci.yml +33 -0
  2. biocheck_cli-0.1.0/.gitignore +11 -0
  3. biocheck_cli-0.1.0/.pre-commit-hooks.yaml +6 -0
  4. biocheck_cli-0.1.0/Cargo.lock +872 -0
  5. biocheck_cli-0.1.0/Cargo.toml +27 -0
  6. biocheck_cli-0.1.0/LICENSE +21 -0
  7. biocheck_cli-0.1.0/PKG-INFO +275 -0
  8. biocheck_cli-0.1.0/README.md +257 -0
  9. biocheck_cli-0.1.0/pyproject.toml +27 -0
  10. biocheck_cli-0.1.0/src/fixer.rs +339 -0
  11. biocheck_cli-0.1.0/src/lib.rs +62 -0
  12. biocheck_cli-0.1.0/src/linters/bed.rs +275 -0
  13. biocheck_cli-0.1.0/src/linters/fasta.rs +211 -0
  14. biocheck_cli-0.1.0/src/linters/fastq.rs +202 -0
  15. biocheck_cli-0.1.0/src/linters/gff.rs +271 -0
  16. biocheck_cli-0.1.0/src/linters/mod.rs +96 -0
  17. biocheck_cli-0.1.0/src/linters/sam.rs +202 -0
  18. biocheck_cli-0.1.0/src/linters/vcf.rs +350 -0
  19. biocheck_cli-0.1.0/src/main.rs +241 -0
  20. biocheck_cli-0.1.0/src/reporter.rs +121 -0
  21. biocheck_cli-0.1.0/src/rules_doc.rs +360 -0
  22. biocheck_cli-0.1.0/src/types.rs +127 -0
  23. biocheck_cli-0.1.0/src/utils/chr.rs +50 -0
  24. biocheck_cli-0.1.0/src/utils/compression.rs +35 -0
  25. biocheck_cli-0.1.0/src/utils/mod.rs +2 -0
  26. biocheck_cli-0.1.0/tests/fixtures/bad_fields.gff3 +1 -0
  27. biocheck_cli-0.1.0/tests/fixtures/bad_header.fasta +3 -0
  28. biocheck_cli-0.1.0/tests/fixtures/duplicate_id.fasta +4 -0
  29. biocheck_cli-0.1.0/tests/fixtures/inverted.bed +1 -0
  30. biocheck_cli-0.1.0/tests/fixtures/mismatched_len.fastq +4 -0
  31. biocheck_cli-0.1.0/tests/fixtures/mixed_chr.vcf +4 -0
  32. biocheck_cli-0.1.0/tests/fixtures/negative.bed +1 -0
  33. biocheck_cli-0.1.0/tests/fixtures/spaces.bed +1 -0
  34. biocheck_cli-0.1.0/tests/fixtures/spaces_instead_of_tabs.vcf +4 -0
  35. biocheck_cli-0.1.0/tests/fixtures/truncated.fastq +7 -0
  36. biocheck_cli-0.1.0/tests/fixtures/unsorted.vcf +4 -0
  37. biocheck_cli-0.1.0/tests/fixtures/valid.bed +3 -0
  38. biocheck_cli-0.1.0/tests/fixtures/valid.fasta +4 -0
  39. biocheck_cli-0.1.0/tests/fixtures/valid.fastq +8 -0
  40. biocheck_cli-0.1.0/tests/fixtures/valid.gff3 +3 -0
  41. biocheck_cli-0.1.0/tests/fixtures/valid.vcf +6 -0
  42. biocheck_cli-0.1.0/tests/fixtures/valid.vcf.gz +0 -0
  43. biocheck_cli-0.1.0/tests/integration_tests.rs +213 -0
@@ -0,0 +1,33 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ test:
11
+ name: Test (${{ matrix.os }})
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ os: [ubuntu-latest, macos-latest, windows-latest]
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: dtolnay/rust-toolchain@stable
19
+ - name: Run tests
20
+ run: cargo test --verbose
21
+
22
+ lint:
23
+ name: Formatting & Linting
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: dtolnay/rust-toolchain@stable
28
+ with:
29
+ components: rustfmt, clippy
30
+ - name: Check format
31
+ run: cargo fmt -- --check
32
+ - name: Run clippy
33
+ run: cargo clippy -- -D warnings
@@ -0,0 +1,11 @@
1
+ /target
2
+ **/*.rs.bk
3
+ *.fixed*
4
+ *.fixed
5
+ .DS_Store
6
+ *.pyc
7
+ __pycache__/
8
+ dist/
9
+ build/
10
+ *.egg-info/
11
+ .venv/
@@ -0,0 +1,6 @@
1
+ - id: biocheck
2
+ name: biocheck
3
+ description: Fast linter and validator for genomics files (VCF, FASTQ, FASTA, BED, GFF)
4
+ entry: biocheck check
5
+ language: rust
6
+ files: \.(vcf|vcf\.gz|fa|fasta|fna|fq|fastq|fastq\.gz|bed|gff|gff3|gtf|sam)$