-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor tests for new hello_looper changes
- Loading branch information
1 parent
c32c924
commit 6a66d31
Showing
99 changed files
with
619 additions
and
94 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 was deleted.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
tests/data/hello_looper-dev/csv/pipeline/pipeline_interface.yaml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/data/hello_looper-dev/csv/project/sample_annotation.csv
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
tests/data/hello_looper-dev/input_schema_example/.looper.yaml
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 @@ | ||
pep_config: metadata/pep_config.yaml | ||
output_dir: results | ||
pipeline_interfaces: | ||
- pipeline/pipeline_interface.yaml |
10 changes: 10 additions & 0 deletions
10
tests/data/hello_looper-dev/input_schema_example/data/canada.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,10 @@ | ||
Alberta | ||
British Columbia | ||
Manitoba | ||
New Brunswick | ||
Newfoundland and Labrador | ||
Nova Scotia | ||
Ontario | ||
Prince Edward Island | ||
Quebec | ||
Saskatchewan |
31 changes: 31 additions & 0 deletions
31
tests/data/hello_looper-dev/input_schema_example/data/mexico.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,31 @@ | ||
Aguascalientes | ||
Baja California | ||
Baja California Sur | ||
Campeche | ||
Chiapas | ||
Chihuahua | ||
Coahuila | ||
Colima | ||
Durango | ||
Guanajuato | ||
Guerrero | ||
Hidalgo | ||
Jalisco | ||
México (Estado de México) | ||
Michoacán | ||
Morelos | ||
Nayarit | ||
Nuevo León | ||
Oaxaca | ||
Puebla | ||
Querétaro | ||
Quintana Roo | ||
San Luis Potosí | ||
Sinaloa | ||
Sonora | ||
Tabasco | ||
Tamaulipas | ||
Tlaxcala | ||
Veracruz | ||
Yucatán | ||
Zacatecas |
23 changes: 23 additions & 0 deletions
23
tests/data/hello_looper-dev/input_schema_example/data/switzerland.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,23 @@ | ||
Zürich | ||
Bern | ||
Luzern | ||
Uri | ||
Schwyz | ||
Unterwalden | ||
Glarus | ||
Zug | ||
Freiburg | ||
Solothurn | ||
Basel | ||
Schaffhausen | ||
Appenzell | ||
Sankt Gallen | ||
Graubünden | ||
Aargau | ||
Thurgau | ||
Ticino | ||
Vaud | ||
Valais | ||
Neuchâtel | ||
Genève | ||
Jura |
9 changes: 9 additions & 0 deletions
9
tests/data/hello_looper-dev/input_schema_example/metadata/pep_config.yaml
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,9 @@ | ||
pep_version: 2.1.0 | ||
sample_table: sample_table.csv | ||
sample_modifiers: | ||
append: | ||
file_path: source1 | ||
derive: | ||
attributes: [file_path] | ||
sources: | ||
source1: "data/{sample_name}.txt" |
5 changes: 5 additions & 0 deletions
5
tests/data/hello_looper-dev/input_schema_example/metadata/sample_table.csv
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 @@ | ||
sample_name,area_type | ||
mexico,state | ||
switzerland,canton | ||
canada,province | ||
usa, |
4 changes: 4 additions & 0 deletions
4
tests/data/hello_looper-dev/input_schema_example/pipeline/count_lines.sh
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 @@ | ||
#!/bin/bash | ||
linecount=`wc -l $1 | sed -E 's/^[[:space:]]+//' | cut -f1 -d' '` | ||
export area_type=$2 | ||
echo "Number of ${area_type}s: $linecount" |
26 changes: 26 additions & 0 deletions
26
tests/data/hello_looper-dev/input_schema_example/pipeline/input_schema.yaml
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 @@ | ||
description: An input schema for count_lines pipeline pipeline. | ||
properties: | ||
samples: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
sample_name: | ||
type: string | ||
description: "Name of the sample" | ||
file_path: | ||
type: string | ||
description: "Path to the input file to count" | ||
area_type: | ||
type: string | ||
description: "Name of the components of the country" | ||
tangible: | ||
- file_path | ||
sizing: | ||
- file_path | ||
required: | ||
- sample_name | ||
- area_type | ||
- file_path | ||
required: | ||
- samples |
10 changes: 10 additions & 0 deletions
10
tests/data/hello_looper-dev/input_schema_example/pipeline/pipeline_interface.yaml
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,10 @@ | ||
pipeline_name: count_lines | ||
input_schema: input_schema.yaml | ||
sample_interface: | ||
command_template: > | ||
pipeline/count_lines.sh {sample.file_path} {sample.area_type} | ||
project_interface: | ||
command_template: > | ||
python3 {looper.piface_dir}/count_lines_plot.py {looper.output_dir}/submission/ | ||
compute: | ||
size_dependent_variables: resources-sample.tsv |
4 changes: 4 additions & 0 deletions
4
tests/data/hello_looper-dev/input_schema_example/pipeline/resources-sample.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,4 @@ | ||
max_file_size cores mem time | ||
0.0005 1 1000 00-01:00:00 | ||
0.05 2 2000 00-03:00:00 | ||
NaN 4 4000 00-05:00:00 |
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 @@ | ||
pep_config: metadata/sample_table.csv | ||
output_dir: results | ||
pipeline_interfaces: | ||
- pipeline/pipeline_interface.yaml |
10 changes: 10 additions & 0 deletions
10
tests/data/hello_looper-dev/looper_csv_example/data/canada.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,10 @@ | ||
Alberta | ||
British Columbia | ||
Manitoba | ||
New Brunswick | ||
Newfoundland and Labrador | ||
Nova Scotia | ||
Ontario | ||
Prince Edward Island | ||
Quebec | ||
Saskatchewan |
31 changes: 31 additions & 0 deletions
31
tests/data/hello_looper-dev/looper_csv_example/data/mexico.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,31 @@ | ||
Aguascalientes | ||
Baja California | ||
Baja California Sur | ||
Campeche | ||
Chiapas | ||
Chihuahua | ||
Coahuila | ||
Colima | ||
Durango | ||
Guanajuato | ||
Guerrero | ||
Hidalgo | ||
Jalisco | ||
México (Estado de México) | ||
Michoacán | ||
Morelos | ||
Nayarit | ||
Nuevo León | ||
Oaxaca | ||
Puebla | ||
Querétaro | ||
Quintana Roo | ||
San Luis Potosí | ||
Sinaloa | ||
Sonora | ||
Tabasco | ||
Tamaulipas | ||
Tlaxcala | ||
Veracruz | ||
Yucatán | ||
Zacatecas |
23 changes: 23 additions & 0 deletions
23
tests/data/hello_looper-dev/looper_csv_example/data/switzerland.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,23 @@ | ||
Zürich | ||
Bern | ||
Luzern | ||
Uri | ||
Schwyz | ||
Unterwalden | ||
Glarus | ||
Zug | ||
Freiburg | ||
Solothurn | ||
Basel | ||
Schaffhausen | ||
Appenzell | ||
Sankt Gallen | ||
Graubünden | ||
Aargau | ||
Thurgau | ||
Ticino | ||
Vaud | ||
Valais | ||
Neuchâtel | ||
Genève | ||
Jura |
4 changes: 4 additions & 0 deletions
4
tests/data/hello_looper-dev/looper_csv_example/metadata/sample_table.csv
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 @@ | ||
sample_name,area_type,file_path | ||
mexico,state,data/mexico.txt | ||
switzerland,canton,data/switzerland.txt | ||
canada,province,data/canada.txt |
2 changes: 1 addition & 1 deletion
2
...-dev/intermediate/pipeline/count_lines.sh → ...ooper_csv_example/pipeline/count_lines.sh
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 @@ | ||
#!/bin/bash | ||
linecount=`wc -l $1 | sed -E 's/^[[:space:]]+//' | cut -f1 -d' '` | ||
echo "Number of lines: $linecount" | ||
echo "Number of lines: $linecount" |
4 changes: 4 additions & 0 deletions
4
tests/data/hello_looper-dev/looper_csv_example/pipeline/pipeline_interface.yaml
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 @@ | ||
pipeline_name: count_lines | ||
sample_interface: | ||
command_template: > | ||
pipeline/count_lines.sh {sample.file_path} |
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
tests/data/hello_looper-dev/minimal/pipeline/pipeline_interface.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
tests/data/hello_looper-dev/minimal/project/project_config.yaml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/data/hello_looper-dev/minimal/project/sample_annotation.csv
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pep_config: metadata/pep_config.yaml | ||
output_dir: results | ||
pipeline_interfaces: | ||
- pipeline/pipeline_interface.yaml |
10 changes: 10 additions & 0 deletions
10
tests/data/hello_looper-dev/pep_derived_attrs/data/canada.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,10 @@ | ||
Alberta | ||
British Columbia | ||
Manitoba | ||
New Brunswick | ||
Newfoundland and Labrador | ||
Nova Scotia | ||
Ontario | ||
Prince Edward Island | ||
Quebec | ||
Saskatchewan |
Oops, something went wrong.