-
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 branch 'main' of https://github.com/theiagen/theiavalidate into…
… main
- Loading branch information
Showing
49 changed files
with
831 additions
and
20 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 |
---|---|---|
|
@@ -160,4 +160,9 @@ cython_debug/ | |
#.idea/ | ||
|
||
# IDE | ||
.vscode/ | ||
.vscode/ | ||
.devcontainer | ||
|
||
# testing files | ||
sandbox/ | ||
file_diffs/ |
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,2 @@ | ||
__VERSION__ = "v0.0.1" | ||
import os, sys; sys.path.append(os.path.dirname(os.path.realpath(__file__))) |
7 changes: 7 additions & 0 deletions
7
examples/file_comparison/example-validation_criteria_exact_sort_file.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,7 @@ | ||
column criteria | ||
assembly_length 0.01 | ||
gambit_predicted_taxon EXACT | ||
amrfinderplus_amr_core_genes SET | ||
extra_column IGNORE | ||
file_column EXACT | ||
sort_file_column SET |
2 changes: 2 additions & 0 deletions
2
examples/file_comparison/file_comparison_column_translation.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,2 @@ | ||
amrfinderplus_amr_genes amrfinderplus_amr_core_genes | ||
extra_column2 extra_column |
1 change: 1 addition & 0 deletions
1
examples/file_comparison/file_comparison_columns_to_compare.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 @@ | ||
"assembly_length,gambit_predicted_taxon,amrfinderplus_amr_core_genes,extra_column,file_column,sort_file_column" |
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,6 @@ | ||
entity:table1_with_files_id amrfinderplus_amr_core_genes assembly_length extra_column file_column gambit_predicted_taxon sort_file_column | ||
sample01 tet(A),aph(6)-Id,aph(3'')-Ib 4783605 extra_value gs://path/to/table1_files/match1-1.txt Salmonella enterica gs://path/to/table1_files/match1-1.txt | ||
sample02 glpT_E448K,gyrA_D87G,gyrA_S83L,sat2,dfrA1,parC_S80I,blaCTX-M-27 5226301 gs://path/to/table1_files/mismatch1-1.txt Shigella sonnei gs://path/to/table1_files/mismatch1-1.txt | ||
sample03 4719410 extra_value gs://path/to/table1_files/mismatch2-1.txt Shigella gs://path/to/table1_files/sortmatch1-1.txt | ||
sample04 sul1,aadA7,parC_S87L,gyrA_T83I 6674526 gs://path/to/table1_files/mismatch2-1.txt Pseudomonas aeruginosa gs://path/to/table1_files/mismatch1-1.txt | ||
sample05 parC_S80Y,tet(38),mecR1,murA_G257D,fosB,gyrA_S84L,mecA 2773544 Staphylococcus aureus |
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,6 @@ | ||
entity:table2_with_files_id amrfinderplus_amr_genes assembly_length extra_column2 file_column gambit_predicted_taxon sort_file_column | ||
sample01 aph(3'')-Ib,aph(6)-Id,tet(A) 4783610 extra_value gs://path/to/table2_files/match1-1.txt Salmonella enterica gs://path/to/table2_files/match1-1.txt | ||
sample02 glpT_E448K,gyrA_D87G,gyrA_S83L,parC_S80I,blaCTX-M-27,sat2,dfrA1 5274928 gs://path/to/table2_files/mismatch1-1.txt Shigella sonnei gs://path/to/table2_files/mismatch1-1.txt | ||
sample03 glpT_E448K,gyrA_D87G,gyrA_S83L,sat2 5287603 gs://path/to/table2_files/mismatch2-1.txt Shigella sonnei gs://path/to/table2_files/sortmatch1-1.txt | ||
sample04 parC_S87L,gyrA_T83I,sul1,aadA7 6674503 extra_value Pseudomonas aeruginosa | ||
sample05 parC_S80Y,tet(38),fosB,gyrA_S84L,mecA,mecR1,murA_G257D 2771914 Staphylococcus aureus |
5 changes: 5 additions & 0 deletions
5
examples/file_comparison/outputs/diffs/sample02_file_column_diff.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,5 @@ | ||
--- table1_files/path/to/table1_files/mismatch1-1.txt+++ table2_files/path/to/table2_files/mismatch1-1.txt@@ -1,3 +1,3 @@-foo | ||
-bar | ||
+eggs | ||
+spam | ||
|
5 changes: 5 additions & 0 deletions
5
examples/file_comparison/outputs/diffs/sample02_sort_file_column_diff.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,5 @@ | ||
--- table1_files/path/to/table1_files/mismatch1-1.txt+++ table2_files/path/to/table2_files/mismatch1-1.txt@@ -1,3 +1,3 @@-foo | ||
-bar | ||
+eggs | ||
+spam | ||
|
3 changes: 3 additions & 0 deletions
3
examples/file_comparison/outputs/diffs/sample03_file_column_diff.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 @@ | ||
--- table1_files/path/to/table1_files/mismatch2-1.txt+++ table2_files/path/to/table2_files/mismatch2-1.txt@@ -1,2 +1 @@-1 2 3 | ||
- | ||
+1 2 |
4 changes: 4 additions & 0 deletions
4
examples/file_comparison/outputs/diffs/sample03_sort_file_column_diff.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,4 @@ | ||
--- table1_files/path/to/table1_files/sortmatch1-1.txt+++ table2_files/path/to/table2_files/sortmatch1-1.txt@@ -1,3 +1,3 @@+baz | ||
foo | ||
bar | ||
-baz |
8 changes: 8 additions & 0 deletions
8
examples/file_comparison/outputs/file_comparison_exact_differences.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,8 @@ | ||
amrfinderplus_amr_core_genes amrfinderplus_amr_core_genes assembly_length assembly_length extra_column extra_column gambit_predicted_taxon gambit_predicted_taxon sort_file_column sort_file_column file_column file_column | ||
table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv | ||
samples | ||
sample01 tet(A),aph(6)-Id,aph(3'')-Ib aph(3'')-Ib,aph(6)-Id,tet(A) 4783605 4783610 | ||
sample02 glpT_E448K,gyrA_D87G,gyrA_S83L,sat2,dfrA1,parC_S80I,blaCTX-M-27 glpT_E448K,gyrA_D87G,gyrA_S83L,parC_S80I,blaCTX-M-27,sat2,dfrA1 5226301 5274928 gs://path/to/table1_files/mismatch1-1.txt gs://path/to/table2_files/mismatch1-1.txt gs://path/to/table1_files/mismatch1-1.txt gs://path/to/table2_files/mismatch1-1.txt | ||
sample03 glpT_E448K,gyrA_D87G,gyrA_S83L,sat2 4719410 5287603 extra_value Shigella Shigella sonnei gs://path/to/table1_files/sortmatch1-1.txt gs://path/to/table2_files/sortmatch1-1.txt gs://path/to/table1_files/mismatch2-1.txt gs://path/to/table2_files/mismatch2-1.txt | ||
sample04 sul1,aadA7,parC_S87L,gyrA_T83I parC_S87L,gyrA_T83I,sul1,aadA7 6674526 6674503 extra_value gs://path/to/table1_files/mismatch1-1.txt gs://path/to/table1_files/mismatch2-1.txt | ||
sample05 parC_S80Y,tet(38),mecR1,murA_G257D,fosB,gyrA_S84L,mecA parC_S80Y,tet(38),fosB,gyrA_S84L,mecA,mecR1,murA_G257D 2773544 2771914 |
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
examples/file_comparison/outputs/file_comparison_validation_criteria_differences (2).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,7 @@ | ||
Column assembly_length assembly_length gambit_predicted_taxon gambit_predicted_taxon amrfinderplus_amr_core_genes amrfinderplus_amr_core_genes file_column file_column sort_file_column sort_file_column | ||
Table table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv table1_with_files.tsv table2_with_files.tsv | ||
sample01 | ||
sample02 gs://path/to/table1_files/mismatch1-1.txt gs://path/to/table2_files/mismatch1-1.txt gs://path/to/table1_files/mismatch1-1.txt gs://path/to/table2_files/mismatch1-1.txt | ||
sample03 4719410.0 5287603.0 Shigella Shigella sonnei glpT_E448K,gyrA_D87G,gyrA_S83L,sat2 gs://path/to/table1_files/mismatch2-1.txt gs://path/to/table2_files/mismatch2-1.txt | ||
sample04 gs://path/to/table1_files/mismatch2-1.txt gs://path/to/table1_files/mismatch1-1.txt | ||
sample05 |
6 changes: 6 additions & 0 deletions
6
examples/file_comparison/outputs/filtered_file_comparison_table1.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,6 @@ | ||
samples amrfinderplus_amr_core_genes assembly_length extra_column file_column gambit_predicted_taxon sort_file_column | ||
sample01 tet(A),aph(6)-Id,aph(3'')-Ib 4783605 extra_value gs://path/to/table1_files/match1-1.txt Salmonella enterica gs://path/to/table1_files/match1-1.txt | ||
sample02 glpT_E448K,gyrA_D87G,gyrA_S83L,sat2,dfrA1,parC_S80I,blaCTX-M-27 5226301 gs://path/to/table1_files/mismatch1-1.txt Shigella sonnei gs://path/to/table1_files/mismatch1-1.txt | ||
sample03 4719410 extra_value gs://path/to/table1_files/mismatch2-1.txt Shigella gs://path/to/table1_files/sortmatch1-1.txt | ||
sample04 sul1,aadA7,parC_S87L,gyrA_T83I 6674526 gs://path/to/table1_files/mismatch2-1.txt Pseudomonas aeruginosa gs://path/to/table1_files/mismatch1-1.txt | ||
sample05 parC_S80Y,tet(38),mecR1,murA_G257D,fosB,gyrA_S84L,mecA 2773544 Staphylococcus aureus |
6 changes: 6 additions & 0 deletions
6
examples/file_comparison/outputs/filtered_file_comparison_table2.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,6 @@ | ||
samples amrfinderplus_amr_core_genes assembly_length extra_column file_column gambit_predicted_taxon sort_file_column | ||
sample01 aph(3'')-Ib,aph(6)-Id,tet(A) 4783610 extra_value gs://path/to/table2_files/match1-1.txt Salmonella enterica gs://path/to/table2_files/match1-1.txt | ||
sample02 glpT_E448K,gyrA_D87G,gyrA_S83L,parC_S80I,blaCTX-M-27,sat2,dfrA1 5274928 gs://path/to/table2_files/mismatch1-1.txt Shigella sonnei gs://path/to/table2_files/mismatch1-1.txt | ||
sample03 glpT_E448K,gyrA_D87G,gyrA_S83L,sat2 5287603 gs://path/to/table2_files/mismatch2-1.txt Shigella sonnei gs://path/to/table2_files/sortmatch1-1.txt | ||
sample04 parC_S87L,gyrA_T83I,sul1,aadA7 6674503 extra_value Pseudomonas aeruginosa | ||
sample05 parC_S80Y,tet(38),fosB,gyrA_S84L,mecA,mecR1,murA_G257D 2771914 Staphylococcus aureus |
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 @@ | ||
__VERSION__ = "v0.0.1" | ||
import os, sys; sys.path.append(os.path.dirname(os.path.realpath(__file__))) |
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 @@ | ||
foo | ||
bar | ||
|
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 @@ | ||
baz | ||
eggs | ||
|
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 @@ | ||
spam | ||
monty | ||
|
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 @@ | ||
1 2 3 | ||
|
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 @@ | ||
4 5 6 | ||
|
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 @@ | ||
7 8 9 | ||
|
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 @@ | ||
foo | ||
bar | ||
|
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 @@ | ||
foo | ||
|
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 @@ | ||
|
||
spam | ||
eggs | ||
|
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 @@ | ||
1 2 3 | ||
|
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 @@ | ||
5 6 6 | ||
|
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 @@ | ||
hello, world | ||
|
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 @@ | ||
foo | ||
bar | ||
baz |
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 @@ | ||
foo | ||
bar | ||
|
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 @@ | ||
baz | ||
eggs | ||
|
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 @@ | ||
spam | ||
monty | ||
|
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 @@ | ||
1 2 3 | ||
|
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 @@ | ||
4 5 6 | ||
|
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 @@ | ||
7 8 9 | ||
|
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 @@ | ||
eggs | ||
spam | ||
|
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 @@ | ||
foo | ||
foo | ||
|
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 @@ | ||
spam | ||
|
||
eggs |
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 @@ | ||
1 2 |
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 @@ | ||
4 5 6 | ||
|
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 @@ | ||
hello, world! |
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 @@ | ||
baz | ||
foo | ||
bar |
Oops, something went wrong.