Skip to content

Conversation

@JackCurragh
Copy link
Member

Added set of DCs for genebuild.sample_location

  • Check value exists just once
  • Then formatting is :- which I figured is safe enough.
  • Then that start number < end number
  • Then one query that checks if the seq region specified is valid (a join on Name and region_start > 1 and region end < sr.length then check for NULL)
  • Then lastly I check if there is a gene in the sample_location

Copy link
Contributor

@JAlvarezJarreta JAlvarezJarreta left a comment

Choose a reason for hiding this comment

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

Makes sense to make, thank you for the new DC. Just a couple of comments, nothing major.

is_rows_zero($self->dba, $sql_2, $desc_2, $diag_2);

my $desc_3 = 'Sample location coordinates are properly ordered';
my $diag_3 = 'genebuild.sample_location start coordinate is greater than end coordinate';
Copy link
Contributor

Choose a reason for hiding this comment

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

Since I'm not too familiar, worth asking: are we always choosing samples/coordinates from the "positive" strand?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that even if the target feature is on reverse strand the the coordinates need to be in this order :-.

I basically just tried flipping them on one example location and the browser complained so I made it a DC.

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