Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test for split by VJ #1487

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/test/kotlin/com/milaboratory/mixcr/PresetsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.milaboratory.mixcr.basictypes.tag.TagValueType
import com.milaboratory.mixcr.basictypes.tag.TagsInfo
import com.milaboratory.mixcr.cli.presetFlagsMessages
import com.milaboratory.mixcr.export.CloneFieldsExtractorsFactory
import com.milaboratory.mixcr.export.CloneGroupFieldsExtractorsFactory
import com.milaboratory.mixcr.export.MetaForExport
import com.milaboratory.mixcr.export.VDJCAlignmentsFieldsExtractorsFactory
import com.milaboratory.mixcr.presets.MiXCRCommandDescriptor
Expand All @@ -24,11 +23,10 @@ import io.kotest.assertions.assertSoftly
import io.kotest.assertions.throwables.shouldNotThrowAny
import io.kotest.assertions.withClue
import io.kotest.inspectors.forAll
import io.kotest.matchers.collections.shouldContainAll
import io.kotest.matchers.collections.shouldContainAnyOf
import io.kotest.matchers.collections.shouldNotBeIn
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
import io.repseq.core.GeneFeature
import org.junit.Assert
import org.junit.Test
import java.nio.file.Paths
Expand Down Expand Up @@ -217,4 +215,16 @@ class PresetsTest {
}
}
}

@Test
fun `should be no split by VJ if VDJRegion set as assemble feature`() {
val exceptions = setOf<String>()
Presets.visiblePresets.filter { presetName ->
val bundle = Presets.MiXCRBundleResolver.resolvePreset(presetName)
val assemble = bundle.assemble ?: return@filter false
if (assemble.cloneAssemblerParameters.assemblingFeatures.toList() != listOf(GeneFeature.VDJRegion))
return@filter false
assemble.cloneAssemblerParameters.separateByV || assemble.cloneAssemblerParameters.separateByJ
}.minus(exceptions).also { println(it) } shouldBe emptyList()
}
}
Loading