<commit_before>package EnsEMBL::ORM::Rose::Object::Biotype;

### NAME: EnsEMBL::ORM::Rose::Object::Biotype
### ORM class for the biotype table in ensembl_production

### STATUS: Stable 

use strict;
use warnings;

use base qw(EnsEMBL::ORM::Rose::Object::Trackable);

use constant {
  ROSE_DB_NAME        => 'production',
  TITLE_COLUMN        => 'name',
  INACTIVE_FLAG       => 'is_current',
  INACTIVE_FLAG_VALUE => '0',
};

## Define schema
__PACKAGE__->meta->setup(
  table       => 'biotype',

  columns     => [
    biotype_id        => {type => 'serial', primary_key => 1, not_null => 1}, 
    name              => {type => 'varchar', 'length' => 64 },
    is_current        => {type => 'integer'},
    is_dumped         => {type => 'integer'},
    object_type       => {type => 'enum', default => 'gene', not_null => 1, 'values' => [qw(gene transcript)]},
    db_type           => {type => 'set' , default => 'core', not_null => 1, 'values' => [qw(
                            cdna
                            core
                            coreexpressionatlas
                            coreexpressionest
                            coreexpressiongnf
                            funcgen
                            otherfeatures
                            rnaseq
                            variation
                            vega)]
    },
    description       => {type => 'text'}
  ]
);

1;<commit_msg>new column attrib_type_id added to relate biotype to attrib_type<commit_after>package EnsEMBL::ORM::Rose::Object::Biotype;

### NAME: EnsEMBL::ORM::Rose::Object::Biotype
### ORM class for the biotype table in ensembl_production

### STATUS: Stable 

use strict;
use warnings;

use base qw(EnsEMBL::ORM::Rose::Object::Trackable);

use constant {
  ROSE_DB_NAME        => 'production',
  TITLE_COLUMN        => 'name',
  INACTIVE_FLAG       => 'is_current',
  INACTIVE_FLAG_VALUE => '0',
};

## Define schema
__PACKAGE__->meta->setup(
  table       => 'biotype',

  columns     => [
    biotype_id        => {type => 'serial', primary_key => 1, not_null => 1}, 
    name              => {type => 'varchar', 'length' => 64 },
    is_current        => {type => 'integer'},
    is_dumped         => {type => 'integer'},
    object_type       => {type => 'enum', default => 'gene', not_null => 1, 'values' => [qw(gene transcript)]},
    db_type           => {type => 'set' , default => 'core', not_null => 1, 'values' => [qw(
                            cdna
                            core
                            coreexpressionatlas
                            coreexpressionest
                            coreexpressiongnf
                            funcgen
                            otherfeatures
                            rnaseq
                            variation
                            vega)]
    },
    attrib_type_id    => {type => 'integer'},
    description       => {type => 'text'}
  ],
  
  relationships => [
    attrib_type       => {
      'type'        => 'one to one',
      'class'       => 'EnsEMBL::ORM::Rose::Object::AttribType',
      'column_map'  => {'attrib_type_id' => 'attrib_type_id'},
    }
  ]
);

1;
{'fraction_non_alphanumeric': 0.13874841972187105, 'fraction_numerical': 0.0050568900126422255, 'mean_word_length': 1.6353039134054954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7384090', 'n_tokens_mistral': 962, 'n_tokens_neox': 920, 'n_words': 197}