-
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.
Merge pull request #37 from iqbal-lab-org/fix/add_integration_tests_t…
…o_all_pling_commands Plasnet integration PR series (5/5): tests: add integration tests to all pling commands
- Loading branch information
Showing
63 changed files
with
2,467 additions
and
429 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Inspired by https://github.com/snakemake/snakefmt/blob/master/Makefile | ||
PROJECT = pling | ||
OS := $(shell uname -s) | ||
VERSION := $(shell poetry version -s) | ||
BOLD := $(shell tput bold) | ||
NORMAL := $(shell tput sgr0) | ||
|
||
.PHONY: all | ||
all: install | ||
|
||
.PHONY: install | ||
install: | ||
poetry install | ||
|
||
.PHONY: install-ci | ||
install-ci: | ||
poetry install --no-interaction | ||
poetry run pling --help | ||
|
||
.PHONY: test | ||
test: | ||
poetry run python -m unittest discover -s tests -t . | ||
|
||
.PHONY: build | ||
build: | ||
poetry build |
Large diffs are not rendered by default.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
tests/integration_test/data/all_plasmids_distances.align.truth.tsv
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plasmid_1 plasmid_2 distance | ||
0 CP057418.1 CP057418.1 0 | ||
1 CP057418.1 NZ_CP027199.1 23 | ||
2 CP057418.1 NZ_LR882977.1 19 | ||
3 CP057418.1 NZ_MF510423.1 | ||
4 NZ_CP027199.1 CP057418.1 23 | ||
5 NZ_CP027199.1 NZ_CP027199.1 0 | ||
6 NZ_CP027199.1 NZ_LR882977.1 19 | ||
7 NZ_CP027199.1 NZ_MF510423.1 | ||
8 NZ_LR882977.1 CP057418.1 19 | ||
9 NZ_LR882977.1 NZ_CP027199.1 19 | ||
10 NZ_LR882977.1 NZ_LR882977.1 0 | ||
11 NZ_LR882977.1 NZ_MF510423.1 | ||
12 NZ_MF510423.1 CP057418.1 | ||
13 NZ_MF510423.1 NZ_CP027199.1 | ||
14 NZ_MF510423.1 NZ_LR882977.1 | ||
15 NZ_MF510423.1 NZ_MF510423.1 0 |
17 changes: 17 additions & 0 deletions
17
tests/integration_test/data/all_plasmids_distances.anno.truth.tsv
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plasmid_1 plasmid_2 distance | ||
0 CP057418.1 CP057418.1 0 | ||
1 CP057418.1 NZ_CP027199.1 18 | ||
2 CP057418.1 NZ_LR882977.1 14 | ||
3 CP057418.1 NZ_MF510423.1 | ||
4 NZ_CP027199.1 CP057418.1 18 | ||
5 NZ_CP027199.1 NZ_CP027199.1 0 | ||
6 NZ_CP027199.1 NZ_LR882977.1 16 | ||
7 NZ_CP027199.1 NZ_MF510423.1 | ||
8 NZ_LR882977.1 CP057418.1 14 | ||
9 NZ_LR882977.1 NZ_CP027199.1 16 | ||
10 NZ_LR882977.1 NZ_LR882977.1 0 | ||
11 NZ_LR882977.1 NZ_MF510423.1 | ||
12 NZ_MF510423.1 CP057418.1 | ||
13 NZ_MF510423.1 NZ_CP027199.1 | ||
14 NZ_MF510423.1 NZ_LR882977.1 | ||
15 NZ_MF510423.1 NZ_MF510423.1 0 |
5 changes: 5 additions & 0 deletions
5
tests/integration_test/data/all_plasmids_matrix.align.truth.dist
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
4 | ||
CP057418.1 0 23 19 | ||
NZ_CP027199.1 23 0 19 | ||
NZ_LR882977.1 19 19 0 | ||
NZ_MF510423.1 0 |
5 changes: 5 additions & 0 deletions
5
tests/integration_test/data/all_plasmids_matrix.anno.truth.dist
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
4 | ||
CP057418.1 0 18 14 | ||
NZ_CP027199.1 18 0 16 | ||
NZ_LR882977.1 14 16 0 | ||
NZ_MF510423.1 0 |
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+32.1 KB
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR.LIB.h3f
Binary file not shown.
Binary file added
BIN
+268 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR.LIB.h3i
Binary file not shown.
Binary file added
BIN
+52.6 KB
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR.LIB.h3m
Binary file not shown.
Binary file added
BIN
+62.2 KB
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR.LIB.h3p
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt-mutation.tab
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#taxgroup accession_version mutation_position mutation_symbol class subclass mutated_protein_name | ||
Escherichia WP_000019358.1 12 soxS_A12S MULTIDRUG AMPICILLIN/CHLORAMPHENICOL/QUINOLONE/RIFAMPIN/TETRACYCLINE Escherichia_ampicillin/chloramphenicol/quinolone/rifampin/tetracycline_resistant_SoxS |
2 changes: 2 additions & 0 deletions
2
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt-suppress
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#taxgroup protein_accession protein_gi | ||
Escherichia AAA21095.1 151858 |
2 changes: 2 additions & 0 deletions
2
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt-susceptible.tab
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#taxgroup gene_symbol accession_version resistance_cutoff class subclass resistance_protein_name | ||
Streptococcus_pneumoniae pbp1a WP_001040013.1 99.000000 BETA-LACTAM BETA-LACTAM Streptococcus_pneumoniae_beta-lactam_resistant_PBP1A |
Binary file added
BIN
+20 KB
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt.pdb
Binary file not shown.
Binary file added
BIN
+296 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt.phr
Binary file not shown.
Binary file added
BIN
+104 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt.pin
Binary file not shown.
Binary file added
BIN
+793 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt.psq
Binary file not shown.
Binary file added
BIN
+16 KB
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt.ptf
Binary file not shown.
Binary file added
BIN
+12 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMRProt.pto
Binary file not shown.
Binary file added
BIN
+20 KB
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR_CDS.ndb
Binary file not shown.
Binary file added
BIN
+363 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR_CDS.nhr
Binary file not shown.
Binary file added
BIN
+116 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR_CDS.nin
Binary file not shown.
Binary file added
BIN
+32 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR_CDS.not
Binary file not shown.
Binary file added
BIN
+596 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR_CDS.nsq
Binary file not shown.
Binary file added
BIN
+16 KB
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR_CDS.ntf
Binary file not shown.
Binary file added
BIN
+12 Bytes
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/AMR_CDS.nto
Binary file not shown.
1 change: 1 addition & 0 deletions
1
.../integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/database_format_version.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
3.10.16 |
1,744 changes: 1,744 additions & 0 deletions
1,744
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/fam.tab
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/taxgroup.tab
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#taxgroup gpipe_taxgroup number_of_nucl_ref_genes | ||
Acinetobacter_baumannii Acinetobacter 0 |
1 change: 1 addition & 0 deletions
1
tests/integration_test/data/bakta_db/amrfinderplus-db/2021-09-30.1/version.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
2021-09-30.1 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
2021-09-30.1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
>ORI10010001 | ||
TATTCTTCTATAACATTGTCAAGAATGATAGTTAAAATTCTCGAAATTGGGATATTAACTGCTTTGGAGTAATTTCTAACTTTTTGTCATACTCTTTGACTTGTATAGAAGTGTACACCTGTATCTAGTTTTTCTTGGCGTTCAACAGGAACTATTCCTGGTATTTTTGTTTTAGGTTGGGGAGGAATAGGCTGTGGTTGTGTGAATTGTTGTTGAAAATTTTGATTTTTTTGCTGTAAGAAACCATTATTATGATATTGAAAATTTTGTTCCTCTTGAAAATATCTCTCTTTTTTTGGTTTTCCAGAAAAATTTGATGAAAAAGATTTTTCTTCATTTCAATTTTCAAGATTATTTTCATTTTGTTGATTTATTTGCTCAGGCTGTTGAAATGAATTATTTTTTGATCAAAAAGATTTTGGAAAGGTTTTTTCAAAAGCAGATAAAGGTCCAAAATCAAATGAAGATGAATCTTTGTCAAAAGATGTTTCTTCTCTTTTTGACAAATTTTGTTTTTGATTAAACTTATTTTTATTTTGGGGTGTTACTTTTTCTTTTATGGAAAACAAATCTTCTTCTAAAAGACTTTGTTCTGGGTCATCATCTTGTGCTAAATCAAAGAAAAAACGTTTCTTTTTGTTA | ||
>ORI10010003 | ||
GGCGTAGACACTGAATTCGATGGGGATAAGTGGTGGATAAAAGAATATAAATTAGTCATTACACTTTACTCACGAATATCCCCCTTTTTTTAGAGAAAAAATATACTTTCTTCACAAGCTTGTGTGCGGTTTTTGTTTGGTAATTCTCGAGACATAAGCACTTATCCAGATATTCACAGTTACTATTATGTGATACGACTACATTCTTTATACTTATAAGATTAATAAGGAGGAAACTAACT |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
>CP019995|MOBP | ||
GTAGAATCGTTTAGTATGAGAATAGAAAACCAACGGTTTTCATGAACTTACTAAACGATTCTAC | ||
>CP012386|MOBP | ||
AGAACAATCAACAACTAATTAGGCAAATTAAGGGGTGCTAAACAACTGCTAGTAGGTGCTAGAGATGTGCTATAAAGGGTGCTAGTTTGGTGCTAGTTACTGCTAAATACGTGCTAGTTTAGGTGCTAGAAACGTGCTATATGGTGCTAAAAAGGTGCTAGTTTGCATGAAGTTACCTGCTAGCCAAGTGCTAGTGGCGTTCGTTTTTGGGTCCCACGGGAAAGCCTTGCACTGCAAGGCGGGTCAGCTTGTCTGACCCCCATTTCCCCTTATGCTCTTCCGAAACACAAAGCGCAATTAAGCGAATACTAGAGAATAAATA |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Rfam:RF00001 GO:0003735 |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"date": "2023-02-20", | ||
"major": 5, | ||
"minor": 0, | ||
"type": "full", | ||
"dependencies": [ | ||
{ | ||
"name": "AMRFinderPlus", | ||
"release": "2020-09-22.2" | ||
}, | ||
{ | ||
"name": "COG", | ||
"release": "2014" | ||
}, | ||
{ | ||
"name": "DoriC", | ||
"release": "10" | ||
}, | ||
{ | ||
"name": "ISFinder", | ||
"release": "2019-09-25" | ||
}, | ||
{ | ||
"name": "Mob-suite", | ||
"release": "2.0" | ||
}, | ||
{ | ||
"name": "Pfam", | ||
"release": "33.1" | ||
}, | ||
{ | ||
"name": "RefSeq", | ||
"release": "r202" | ||
}, | ||
{ | ||
"name": "Rfam", | ||
"release": "14.2" | ||
}, | ||
{ | ||
"name": "UniProtKB/Swiss-Prot", | ||
"release": "2020_04" | ||
} | ||
], | ||
"experts": [ | ||
{ | ||
"name": "AMRFinderPlus", | ||
"release": "3.10.1" | ||
}, | ||
{ | ||
"name": "NCBI BlastRules", | ||
"release": "4.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