Skip to content

Commit

Permalink
Merge pull request #500 from Ensembl/skip_human_polymorphic_pseudogenes
Browse files Browse the repository at this point in the history
skip human polymorphic pseudogene if count less than 5
  • Loading branch information
marcoooo committed Sep 13, 2022
2 parents cb416bb + db1c42e commit facfc83
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions lib/Bio/EnsEMBL/DataCheck/Checks/GeneBiotypes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,24 @@ sub biotype_groups {
my $desc_proj = 'found no more that 100 genes with mismatched transcript biotype groups';
is(scalar(@group_mismatch), 100, $desc_proj);
}
}
else {
my $desc_1 = 'genes have at least one transcript with a matching biotype group';
is(scalar(@group_mismatch), 0, $desc_1);
}

else {
my $desc_1 = 'genes have at least one transcript with a matching biotype group';
is(scalar(@group_mismatch), 0, $desc_1);
}
if (scalar(@polymorphic_mismatch) > 5){
my $desc_proj = 'found no more that 5 polymorphic_pseudogene with mismatched transcript biotype groups';
is(scalar(@polymorphic_mismatch), 5, $desc_proj);
}

else{
my $desc_3 = '"polymorphic_pseudogene" genes have at least one polymorphic_pseudogene transcript';
is(scalar(@polymorphic_mismatch), 0, $desc_3);
}
}

my $desc_2 = '"pseudogene" genes do not have coding transcripts';
is(scalar(@pseudogene_mismatch), 0, $desc_2);

my $desc_3 = '"polymorphic_pseudogene" genes have at least one polymorphic_pseudogene transcript';
is(scalar(@polymorphic_mismatch), 0, $desc_3);
}

1;

0 comments on commit facfc83

Please sign in to comment.