-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78a6402
commit 5242d1f
Showing
9 changed files
with
88 additions
and
6 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 |
---|---|---|
|
@@ -16,3 +16,4 @@ class TrimmingMode(Enum): | |
kpic = "kpic" | ||
kpic_gappy = "kpic-gappy" | ||
kpic_smart_gap = "kpic-smart-gap" | ||
c3 = "c3" |
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
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__ = "2.1.3" | ||
__version__ = "2.2.0" |
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 @@ | ||
>1 | ||
A-TA | ||
>2 | ||
A--A | ||
>3 | ||
A--T | ||
>4 | ||
AG-T | ||
>5 | ||
AC-T |
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 @@ | ||
>1 | ||
A-TA | ||
>2 | ||
A--A | ||
>3 | ||
A--T | ||
>4 | ||
AG-T | ||
>5 | ||
AC-T |
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,44 @@ | ||
import pytest | ||
from pathlib import Path | ||
|
||
from clipkit.clipkit import execute | ||
from clipkit.files import FileFormat | ||
from clipkit.modes import TrimmingMode | ||
from clipkit.settings import DEFAULT_AA_GAP_CHARS, DEFAULT_NT_GAP_CHARS | ||
|
||
here = Path(__file__) | ||
|
||
|
||
@pytest.mark.integration | ||
class TestC3Out(object): | ||
def test_simple_c3(self): | ||
""" | ||
test codon | ||
usage: clipkit simple.fa c3 | ||
""" | ||
output_file = "output/simple.fa_c3" | ||
|
||
kwargs = dict( | ||
input_file=f"{here.parent}/samples/simple.fa", | ||
output_file=output_file, | ||
input_file_format="fasta", | ||
output_file_format="fasta", | ||
sequence_type=None, | ||
complement=False, | ||
codon=False, | ||
gaps=None, | ||
mode=TrimmingMode.c3, | ||
use_log=False, | ||
gap_characters=DEFAULT_NT_GAP_CHARS, | ||
quiet=True, | ||
) | ||
|
||
execute(**kwargs) | ||
|
||
with open(f"{here.parent}/expected/simple.fa_c3", "r") as expected: | ||
expected_content = expected.read() | ||
|
||
with open(output_file, "r") as out_file: | ||
output_content = out_file.read() | ||
|
||
assert expected_content == output_content |
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