-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: nt implanting discards imgt positions; minor import fixes
- Loading branch information
1 parent
a40e0d7
commit 152b38e
Showing
8 changed files
with
63 additions
and
29 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,6 +1,6 @@ | ||
class Constants: | ||
|
||
VERSION = "1.0.7" | ||
VERSION = "1.0.8" | ||
|
||
# encoding constants | ||
FEATURE_DELIMITER = "-" | ||
|
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
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.
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,18 @@ | ||
from ligo.environment.SequenceType import SequenceType | ||
from ligo.simulation.SimConfigItem import SimConfigItem | ||
from ligo.simulation.generative_models.BackgroundSequences import BackgroundSequences | ||
from ligo.simulation.implants.SeedMotif import SeedMotif | ||
from ligo.simulation.implants.Signal import Signal | ||
from ligo.simulation.simulation_strategy.ImplantingStrategy import ImplantingStrategy | ||
|
||
|
||
def test_implanting(): | ||
s1 = Signal('s1', [SeedMotif('m1', 'AAA')], {'104': 0, '105': 0}) | ||
seqs = BackgroundSequences(sequence=["CCCCC", "CCCCCCCCC"], sequence_aa=["A", "AA"], v_call=["", ""], j_call=["", ""], | ||
region_type=["IMGT_JUNCTION", "IMGT_JUNCTION"], frame_type=["", ""], p_gen=[-1., -1.], from_default_model=[1, 1], | ||
duplicate_count=[1,1], chain=["TRB", "TRB"]) | ||
|
||
processed_seqs = ImplantingStrategy().process_sequences(seqs, {'s1': 2}, False, SequenceType.NUCLEOTIDE, | ||
SimConfigItem({s1: 1.}), [s1], False) | ||
|
||
print(processed_seqs) |