-
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 #10 from fsantilli/main
- Loading branch information
Showing
118 changed files
with
2,746 additions
and
687 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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
*.fastq filter=lfs diff=lfs merge=lfs -text | ||
*.fq filter=lfs diff=lfs merge=lfs -text | ||
*.gz filter=lfs diff=lfs merge=lfs -text | ||
*.bam filter=lfs diff=lfs merge=lfs -text | ||
*.bai filter=lfs diff=lfs merge=lfs -text | ||
*.bed filter=lfs diff=lfs merge=lfs -text | ||
*.rds filter=lfs diff=lfs merge=lfs -text | ||
*.gff3 filter=lfs diff=lfs merge=lfs -text | ||
*.gff filter=lfs diff=lfs merge=lfs -text | ||
*.gtf filter=lfs diff=lfs merge=lfs -text | ||
**/salmonTE_quant/* filter=lfs diff=lfs merge=lfs -text | ||
**/salmonTE_test/* filter=lfs diff=lfs merge=lfs -text | ||
**/STAR/* filter=lfs diff=lfs merge=lfs -text | ||
*.html filter=lfs diff=lfs merge=lfs -text |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.tests/integration/GSE130735-subset/SRX5795114_SRR9016960_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
.tests/integration/GSE130735-subset/SRX5795114_SRR9016960_2.fq.gz
Git LFS file not shown
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.tests/integration/GSE130735-subset/SRX5795119_SRR9016965_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
.tests/integration/GSE130735-subset/SRX5795119_SRR9016965_2.fq.gz
Git LFS 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
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 @@ | ||
# use-conda: True | ||
# use-apptainer: True | ||
software-deployment-method: | ||
- conda | ||
- apptainer | ||
show-failed-logs: True | ||
cores: 2 | ||
conda-cleanup-pkgs: cache | ||
# all-temp: True |
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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795114_SRR9016960,SRX5795114_SRR9016960_1,SRX5795114_SRR9016960_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO | ||
SRX5795119_SRR9016965,SRX5795119_SRR9016965_1,SRX5795119_SRR9016965_2,KO |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
.tests/unit/build_trna_coverage_matrix/data/resources/sample-sheet.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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
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,48 @@ | ||
""" | ||
Common code for unit testing of rules generated with Snakemake 8.9.0. | ||
""" | ||
|
||
from pathlib import Path | ||
import subprocess as sp | ||
import os | ||
|
||
|
||
class OutputChecker: | ||
def __init__(self, data_path, expected_path, workdir): | ||
self.data_path = data_path | ||
self.expected_path = expected_path | ||
self.workdir = workdir | ||
|
||
def check(self): | ||
input_files = set( | ||
(Path(path) / f).relative_to(self.data_path) | ||
for path, subdirs, files in os.walk(self.data_path) | ||
for f in files | ||
) | ||
expected_files = set( | ||
(Path(path) / f).relative_to(self.expected_path) | ||
for path, subdirs, files in os.walk(self.expected_path) | ||
for f in files | ||
) | ||
unexpected_files = set() | ||
for path, subdirs, files in os.walk(self.workdir): | ||
for f in files: | ||
f = (Path(path) / f).relative_to(self.workdir) | ||
if str(f).startswith(".snakemake"): | ||
continue | ||
if f in expected_files: | ||
self.compare_files(self.workdir / f, self.expected_path / f) | ||
elif f in input_files: | ||
# ignore input files | ||
pass | ||
else: | ||
unexpected_files.add(f) | ||
if unexpected_files: | ||
raise ValueError( | ||
"Unexpected files:\n{}".format( | ||
"\n".join(sorted(map(str, unexpected_files))) | ||
) | ||
) | ||
|
||
def compare_files(self, generated_file, expected_file): | ||
sp.check_output(["cmp", generated_file, expected_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,5 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
5 changes: 5 additions & 0 deletions
5
.tests/unit/deseq2_starTE_random/data/resources/sample-sheet.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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
.tests/unit/edit_condition_file/data/resources/sample-sheet.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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
3 changes: 3 additions & 0 deletions
3
...ts/unit/fastqc_raw/data/.tests/integration/GSE130735-subset/SRX5795117_SRR9016963_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ts/unit/fastqc_raw/data/.tests/integration/GSE130735-subset/SRX5795117_SRR9016963_2.fq.gz
Git LFS 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,5 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
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 @@ | ||
name,filename_1,filename_2,genotype | ||
SRX5795112_SRR9016958,SRX5795112_SRR9016958_1,SRX5795112_SRR9016958_2,WT | ||
SRX5795113_SRR9016959,SRX5795113_SRR9016959_1,SRX5795113_SRR9016959_2,WT | ||
SRX5795117_SRR9016963,SRX5795117_SRR9016963_1,SRX5795117_SRR9016963_2,KO | ||
SRX5795118_SRR9016964,SRX5795118_SRR9016964_1,SRX5795118_SRR9016964_2,KO |
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795112_SRR9016958_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795112_SRR9016958_2.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795113_SRR9016959_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795113_SRR9016959_2.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795114_SRR9016960_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795114_SRR9016960_2.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795117_SRR9016963_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795117_SRR9016963_2.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795118_SRR9016964_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795118_SRR9016964_2.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795119_SRR9016965_1.fq.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tis-paper-review/3t-seq/.tests/integration/GSE130735-subset/SRX5795119_SRR9016965_2.fq.gz
Git LFS 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,40 @@ | ||
import os | ||
import sys | ||
|
||
import subprocess as sp | ||
from tempfile import TemporaryDirectory | ||
import shutil | ||
from pathlib import Path, PurePosixPath | ||
|
||
sys.path.insert(0, os.path.dirname(__file__)) | ||
|
||
import utils | ||
|
||
|
||
def test_build_trna_coverage_matrix(): | ||
|
||
cwd = Path().resolve() | ||
|
||
with TemporaryDirectory() as tmpdir: | ||
workdir = Path(tmpdir) / "workdir" | ||
data_path = PurePosixPath(".tests/unit/build_trna_coverage_matrix/data") | ||
expected_path = PurePosixPath(".tests/unit/build_trna_coverage_matrix/expected") | ||
|
||
# Copy data to the temporary workdir. | ||
shutil.copytree(data_path, workdir) | ||
utils.prepenv(workdir) | ||
|
||
# dbg | ||
print("results/tRNA_coverage/GSE130735-subset/tRNA_matrix.txt", file=sys.stderr) | ||
|
||
# Run the test job. | ||
cmd = utils.get_cmd( | ||
workdir, "results/tRNA_coverage/GSE130735-subset/tRNA_matrix.txt", cwd | ||
) | ||
sp.check_output(cmd) | ||
|
||
# Check the output byte by byte using cmp. | ||
# To modify this behavior, you can inherit from common.OutputChecker in here | ||
# and overwrite the method `compare_files(generated_file, expected_file), | ||
# also see common.py. | ||
utils.OutputChecker(data_path, expected_path, workdir).check() |
Oops, something went wrong.