Guest User

Untitled

a guest
Jun 19th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #! /usr/bin/env perl
  2. use strict;
  3. use warnings FATAL => 'all';
  4. use Data::Dumper::Concise;
  5. use HTGT::DBFactory;
  6. use Log::Log4perl ':easy';
  7.  
  8. Log::Log4perl->easy_init;
  9.  
  10. # find the 768 distinct clones
  11. my $schema = HTGT::DBFactory->connect('vector_qc');
  12. my $run_id = 22473;
  13. my $clone_rs = $schema->resultset('ConstructClone')->search_rs(
  14. { 'qctestResults.qctest_run_id' => $run_id },
  15. { 'distinct' => 1, 'join' => 'qctestResults' }
  16. );
  17.  
  18. INFO 'clone count: ', $clone_rs->count;
  19.  
  20. while ( my $clone = $clone_rs->next ) {
  21. INFO Dumper {
  22. well => $clone->well,
  23. plate => $clone->plate,
  24. name => $clone->name,
  25. clone_number => $clone->clone_number,
  26. };
  27. last;
  28. }
  29.  
  30. exit 0;
Add Comment
Please, Sign In to add comment