Search in sources :

Example 11 with VDJCLibrary

use of io.repseq.core.VDJCLibrary in project repseqio by repseqio.

the class VDJCGenesTest method serializationDeserializationTest.

@Test
public void serializationDeserializationTest() throws Exception {
    VDJCLibrary library = VDJCLibraryRegistry.getDefaultLibrary("hs");
    VDJCGene v = library.getSafe("TRBV12-3*00");
    VDJCGene d = library.getSafe("TRBD1*00");
    VDJCGene j = library.getSafe("TRBJ1-2*00");
    VDJCGene c = library.getSafe("TRBC1*00");
    TestUtil.assertJson(new VDJCGenes(v, d, j, c));
    TestUtil.assertJson(new VDJCGenes(v, null, j, c));
}
Also used : VDJCLibrary(io.repseq.core.VDJCLibrary) VDJCGene(io.repseq.core.VDJCGene) Test(org.junit.Test)

Aggregations

VDJCLibrary (io.repseq.core.VDJCLibrary)11 NucleotideSequence (com.milaboratory.core.sequence.NucleotideSequence)7 VDJCGene (io.repseq.core.VDJCGene)6 VDJCLibraryRegistry (io.repseq.core.VDJCLibraryRegistry)5 GeneFeature (io.repseq.core.GeneFeature)3 ArrayList (java.util.ArrayList)3 Pattern (java.util.regex.Pattern)3 Test (org.junit.Test)3 GClone (io.repseq.gen.GClone)2 GGene (io.repseq.gen.GGene)2 Well44497b (org.apache.commons.math3.random.Well44497b)2 TypeReference (com.fasterxml.jackson.core.type.TypeReference)1 ObjectWriter (com.fasterxml.jackson.databind.ObjectWriter)1 JCommanderBasedMain (com.milaboratory.cli.JCommanderBasedMain)1 Range (com.milaboratory.core.Range)1 AminoAcidSequence (com.milaboratory.core.sequence.AminoAcidSequence)1 SequenceProviderIndexOutOfBoundsException (com.milaboratory.core.sequence.provider.SequenceProviderIndexOutOfBoundsException)1 VDJCAlignments (com.milaboratory.mixcr.basictypes.VDJCAlignments)1 VDJCHit (com.milaboratory.mixcr.basictypes.VDJCHit)1 TargetBuilder (com.milaboratory.mixcr.tests.TargetBuilder)1