-
Notifications
You must be signed in to change notification settings - Fork 12
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 #418 from pepkit/417-peppyprojectto_dict-creates-u…
…nwanted-nan-values Remove creating `NaN`s in `to_dict` method
- Loading branch information
Showing
10 changed files
with
80 additions
and
3 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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.35.1" | ||
__version__ = "0.35.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
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
import pandas as pd | ||
import pytest | ||
import json | ||
|
||
__author__ = "Michal Stolarczyk" | ||
__email__ = "[email protected]" | ||
|
@@ -36,6 +37,11 @@ def example_pep_csv_path(request): | |
return get_path_to_example_file(EPB, request.param, "sample_table.csv") | ||
|
||
|
||
@pytest.fixture | ||
def example_pep_nextflow_csv_path(): | ||
return get_path_to_example_file(EPB, "nextflow_taxprofiler_pep", "samplesheet.csv") | ||
|
||
|
||
@pytest.fixture | ||
def example_pep_cfg_noname_path(request): | ||
return get_path_to_example_file(EPB, "noname", request.param) | ||
|
2 changes: 2 additions & 0 deletions
2
tests/data/example_peps-master/example_nextflow_taxprofiler_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,2 @@ | ||
pep_version: "2.1.0" | ||
sample_table: "https://raw.githubusercontent.com/pepkit/example_peps/master/example_nextflow_taxprofiler_pep/samplesheet.csv" |
7 changes: 7 additions & 0 deletions
7
tests/data/example_peps-master/example_nextflow_taxprofiler_pep/samplesheet.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,7 @@ | ||
sample,instrument_platform,run_accession,fastq_1,fastq_2,fasta | ||
2611,ILLUMINA,ERR5766174,,,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fasta/ERX5474930_ERR5766174_1.fa.gz | ||
2612,ILLUMINA,ERR5766176,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_2.fastq.gz, | ||
2612,ILLUMINA,ERR5766176_B,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_B_1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_B_2.fastq.gz, | ||
2612,ILLUMINA,ERR5766180,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474936_ERR5766180_1.fastq.gz,, | ||
2613,ILLUMINA,ERR5766181,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474937_ERR5766181_1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474937_ERR5766181_2.fastq.gz, | ||
ERR3201952,OXFORD_NANOPORE,ERR3201952,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERR3201952.fastq.gz,, |
41 changes: 41 additions & 0 deletions
41
tests/data/example_peps-master/example_nextflow_taxprofiler_pep/samplesheet_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,41 @@ | ||
description: A schema for validation of samplesheet.csv for taxprofiler pipeline. | ||
imports: | ||
- https://schema.databio.org/pep/2.1.0.yaml | ||
properties: | ||
samples: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
sample: | ||
type: string | ||
description: "Sample identifier." | ||
pattern: "^\\S*$" | ||
run_accession: | ||
type: string | ||
description: "Run accession number." | ||
instrument_platform: | ||
type: string | ||
description: "Name of the platform that sequenced the samples." | ||
enum: ["ABI_SOLID", "BGISEQ", "CAPILLARY", "COMPLETE_GENOMICS", "DNBSEQ", "HELICOS", "ILLUMINA", "ION_TORRENT", "LS454", "OXFORD_NANOPORE", "PACBIO_SMRT"] | ||
fastq1: | ||
type: string | ||
description: "FASTQ file for read 1." | ||
pattern: "^[\\S]+.(fq\\.gz|fastq\\.gz)$" | ||
fastq2: | ||
type: string | ||
description: "FASTQ file for read 2." | ||
pattern: "^[\\S]+.(fq\\.gz|fastq\\.gz)$" | ||
fasta: | ||
type: string | ||
description: "Path to FASTA file." | ||
required: | ||
- sample | ||
- run_accession | ||
- instrument_platform | ||
files: | ||
- fastq1 | ||
- fastq2 | ||
- fasta | ||
required: | ||
- samples |
7 changes: 7 additions & 0 deletions
7
...ample_peps-master/example_nextflow_taxprofiler_pep/test_nextflow_original_samplesheet.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,7 @@ | ||
sample,run_accession,instrument_platform,fastq_1,fastq_2,fasta | ||
2611,ERR5766174,ILLUMINA,,,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fasta/ERX5474930_ERR5766174_1.fa.gz | ||
2612,ERR5766176,ILLUMINA,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_2.fastq.gz, | ||
2612,ERR5766176_B,ILLUMINA,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_B_1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474932_ERR5766176_B_2.fastq.gz, | ||
2612,ERR5766180,ILLUMINA,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474936_ERR5766180_1.fastq.gz,, | ||
2613,ERR5766181,ILLUMINA,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474937_ERR5766181_1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERX5474937_ERR5766181_2.fastq.gz, | ||
ERR3201952,ERR3201952,OXFORD_NANOPORE,https://raw.githubusercontent.com/nf-core/test-datasets/taxprofiler/data/fastq/ERR3201952.fastq.gz,, |
1 change: 1 addition & 0 deletions
1
tests/data/example_peps-master/example_project_as_dictionary/project.json
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