Skip to content

Conversation

@Rajkumar-D
Copy link
Contributor

No description provided.

ASSEMBLY_CHROMOSOME(Group.ASSEMBLY, Group.PIPELINE),
/** Pipeline (Webin-CLI transcriptome scope) */
ASSEMBLY_TRANSCRIPTOME(Group.ASSEMBLY);
ASSEMBLY_TRANSCRIPTOME(Group.PIPELINE);
Copy link
Contributor

@raskoleinonen raskoleinonen Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should have only four groups (not sure what to call them):

  • Group.PIPELINE/WEBIN /** Webin submissions processed by pipelines. */
  • Group.EPO /** EPO submissions processed by putff. */
  • Group.NCBI /** NCBI submissions processed by putff. */
  • GROUP.PUTFF/ENA /** ENA submissions processed by putff. */

We might wish to rename:

  • EMBL_TEMPLATE -> TEMPLATE
  • ASSEMBLY_TRANSCRIPTOME -> TRANSCRIPTOME

}

public enum Group {
PIPELINE,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest to add a few comments ->

/** Webin submissions processed by pipelines. */
PIPELINE

/** Non-Webin submissions processed by putff. */
PUTFF


@Test
public void testValidationScopeWithGroup() {
assertTrue(ValidationScope.NCBI.isInGroup(ValidationScope.Group.NCBI));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the validation scope and group tests into a new class:

ValidationScopeTest

and test that all ValidationScope enums against isInGroup:

@Test
public void testValidationScopeIsInGroup() { 
assertTrue(ValidationScope.NCBI.isInGroup(ValidationScope.Group.PUTFF));
assertFalse(ValidationScope.NCBI.isInGroup(ValidationScope.Group.PIPELINE));
etc.
...
} 

assertTrue(
plan.isInValidationScope(
new ValidationScope[] {ValidationScope.EMBL, ValidationScope.INSDC}));
public void testIsInValidationScopePutffGroup() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Same comment as the previous one) -> Please move the validation scope and group tests into a new class:

ValidationScopeTest

and test that all ValidationScope enums against isInGroup:

@Test
public void testValidationScopeIsInGroup() { 
assertTrue(ValidationScope.NCBI.isInGroup(ValidationScope.Group.PUTFF));
assertFalse(ValidationScope.NCBI.isInGroup(ValidationScope.Group.PIPELINE));
etc.
...
} 

assertFalse(
plan.isInValidationScope(
new ValidationScope[] {ValidationScope.EPO, ValidationScope.INSDC}));
public void testIsInValidationScopePipelineGroup() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replicate what is in the ValidationScope::testValidationScopeIsInGroup() in ValidationPlanTest. The only difference is that ValidationPlanTest creates the ValidationPlan.

}

@Test
public void testIsInValidationScopeNcbiGroup() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replicate what is in the ValidationScope::testValidationScopeIsInGroup() in ValidationPlanTest. The only difference is that ValidationPlanTest creates the ValidationPlan.

@raskoleinonen
Copy link
Contributor

raskoleinonen commented Oct 23, 2023

  • Previously we had two groups: ASSEMBLY and SEQUENCE.
  • Out of these two groups only ASSEMBLY altered the code behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants