-
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 #93 from MicrobialDarkMatter/bugfix/pileup-in-binc…
…onsensus-invalid-argument Argparser argument fixes
- Loading branch information
Showing
7 changed files
with
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
data | ||
tests/cli/ | ||
nanomotif/flamegraph* | ||
austin | ||
results | ||
|
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.5.2" | ||
__version__ = "0.5.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
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 @@ | ||
contig mod_type motif mod_position n_mod n_nomod motif_type motif_complement mod_position_complement n_mod_complement n_nomod_complement | ||
contig_2 a ACCCA 4 75 17 non-palindrome | ||
contig_2 a CCAAAT 4 71 5 non-palindrome | ||
contig_2 a GATC 1 679 74 palindrome GATC 1 679 74 | ||
contig_2 a GRNGAAGY 5 85 6 non-palindrome | ||
contig_3 a ACCCA 4 58 8 non-palindrome | ||
contig_3 a CCAAAT 4 80 1 non-palindrome | ||
contig_3 a GATC 1 680 29 palindrome GATC 1 680 29 | ||
contig_3 a GRNGAAGY 5 83 2 non-palindrome |
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 @@ | ||
contig motif mod_position mod_type n_mod n_nomod motif_type motif_complement mod_position_complement n_mod_complement n_nomod_complement | ||
contig_2 ACCCA 4 a 75 17 non-palindrome | ||
contig_2 CCAAAT 4 a 71 5 non-palindrome | ||
contig_2 GATC 1 a 679 74 palindrome GATC 1 679 74 | ||
contig_2 GRNGAAGY 5 a 85 8 non-palindrome | ||
contig_3 ACCCA 4 a 58 8 non-palindrome | ||
contig_3 CCAAAT 4 a 80 1 non-palindrome | ||
contig_3 GATC 1 a 680 29 palindrome GATC 1 680 29 | ||
contig_3 GRNGAAGY 5 a 83 2 non-palindrome |
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,54 @@ | ||
import pytest | ||
import subprocess | ||
import pandas as pd | ||
import os | ||
import glob | ||
import shutil | ||
|
||
|
||
def test_bin_consensus(): | ||
""" | ||
""" | ||
outdir = "tests/cli/test_bin_consensus" | ||
|
||
cmd = [ | ||
"nanomotif", "bin_consensus", | ||
"-t", "1", | ||
"nanomotif/datasets/geobacillus-plasmids.assembly.fasta", | ||
"nanomotif/datasets/geobacillus-plasmids.pileup.bed", | ||
"nanomotif/datasets/geobacillus-plasmids.motifs.tsv", | ||
"nanomotif/datasets/geobacillus-contig-bin.tsv", | ||
"nanomotif/datasets/geobacillus-plasmids.motifs-scored.tsv", | ||
"--out", outdir | ||
] | ||
|
||
result = subprocess.run(cmd) | ||
|
||
# Check that the CLI tool executed successfully | ||
assert result.returncode == 0, "CLI tool did not exit successfully" | ||
|
||
#TODO: remove outputdir | ||
# | ||
|
||
|
||
def test_score_motifs(): | ||
""" | ||
""" | ||
outdir = "tests/cli/test_score_motifs" | ||
|
||
cmd = [ | ||
"nanomotif", "score_motifs", | ||
"-t", "1", | ||
"nanomotif/datasets/geobacillus-plasmids.assembly.fasta", | ||
"nanomotif/datasets/geobacillus-plasmids.pileup.bed", | ||
"nanomotif/datasets/geobacillus-plasmids.motifs.tsv", | ||
"--out", outdir | ||
] | ||
|
||
result = subprocess.run(cmd) | ||
|
||
# Check that the CLI tool executed successfully | ||
assert result.returncode == 0, "CLI tool did not exit successfully" | ||
|
||
#TODO: remove outputdir | ||
|