<commit_before>#!/usr/bin/perl -w

BEGIN {
  push @INC, "$ENV{HOME}/svn/dev/bio/perl/lib";
}

use strict;

BEGIN { 
  $InterMine::model_file = '/home/kmr/svn/dev/flymine/dbmodel/build/model/genomic_model.xml'; 
}

use InterMine qw(Gene);
use InterMine qw(Exon);
use InterMine qw(LocatedSequenceFeature);
use InterMine qw(Organism);

my $g = InterMine::Gene->new(id => 122000038);
$g->load();

print $g->identifier(), "\n";
print $g->organism()->taxonId(), "\n";
for my $exon ($g->exons()) {
  print $exon->identifier(), "\n";
}

# my $genes = 
#   InterMine::Gene::Manager->get_genes(
#                                       query =>
#                                       [
#                                        identifier => { like => 'C%' },
#                                       ],
#                                       sort_by => 'symbol',
#                                       with_objects => 'organism'
#                                      );

# print scalar(@$genes), "\n";

# for my $gene (@$genes) {
#   $gene->identifier, "\n";
#   if (defined $gene->organism) {
#     $gene->organism->taxonId(), "\n";<commit_msg>Fixes for perl mapping test script.<commit_after>#!/usr/bin/perl -w

BEGIN {
  push @INC, "$ENV{HOME}/svn/dev/bio/perl/lib";
}

use strict;

BEGIN { 
  $InterMine::model_file = '/home/kmr/svn/dev/flymine/dbmodel/build/model/genomic_model.xml'; 
}

use InterMine qw(Gene);
use InterMine qw(Protein);
use InterMine qw(Exon);
use InterMine qw(LocatedSequenceFeature);
use InterMine qw(Organism);

my $g = InterMine::Gene->new(id => 122000038);
$g->load();

print $g->identifier(), "\n";
print $g->organism()->taxonId(), "\n";
for my $exon ($g->exons()) {
  print $exon->identifier(), "\n";
}
for my $prot ($g->proteins()) {
  print $prot->identifier(), "\n";
}

# my $genes = 
#   InterMine::Gene::Manager->get_genes(
#                                       query =>
#                                       [
#                                        identifier => { like => 'C%' },
#                                       ],
#                                       sort_by => 'symbol',
#                                       with_objects => 'organism'
#                                      );

# print scalar(@$genes), "\n";

# for my $gene (@$genes) {
#   $gene->identifier, "\n";
#   if (defined $gene->organism) {
#     $gene->organism->taxonId(), "\n";
{'fraction_non_alphanumeric': 0.18311036789297658, 'fraction_numerical': 0.007525083612040134, 'mean_word_length': 1.6948198198198199, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4490413', 'n_tokens_mistral': 834, 'n_tokens_neox': 770, 'n_words': 146}