<commit_before>package Bio::EnsEMBL::Funcgen::ChIPSeqAnalysis::Constants;

=head1 Bio::EnsEMBL::Funcgen::ChIPSeqAnalysis::Constants

Here is where all the constants are declared. To use them, add:

  use Bio::EnsEMBL::Funcgen::ChIPSeqAnalysis::Constants qw ( :all );
  
to your module, then use:
  
  if ($peak_calling_strategy eq CALL_BROAD_PEAKS ) {
    convert_bam_to_bed();
  }

=cut

use base qw( Exporter );
use vars qw( @EXPORT_OK );
use strict;

our @EXPORT_OK = qw(

  CALL_BROAD_PEAKS  
  CALL_NARROW_PEAKS
  
  SKIP_IDR
  RUN_IDR_ON_BIOLOGICAL_REPLICATES 
  RUN_IDR_ON_TECHNICAL_REPLICATES  
  
  BAM_FORMAT
  BIGWIG_FORMAT
  BED_FORMAT
);

our %EXPORT_TAGS = (all => \@EXPORT_OK);

use constant {

  CALL_BROAD_PEAKS  => 'CALL_BROAD_PEAKS',
  CALL_NARROW_PEAKS => 'CALL_NARROW_PEAKS',

  SKIP_IDR                         => 'SKIP_IDR',
  RUN_IDR_ON_BIOLOGICAL_REPLICATES => 'RUN_IDR_ON_BIOLOGICAL_REPLICATES',
  RUN_IDR_ON_TECHNICAL_REPLICATES  => 'RUN_IDR_ON_TECHNICAL_REPLICATES',

  BAM_FORMAT    => 'bam',
  BIGWIG_FORMAT => 'bigwig',
  BED_FORMAT    => 'bed',
};

1;<commit_msg>Constants used in the execution plan and peak calling analysis<commit_after>package Bio::EnsEMBL::Funcgen::ChIPSeqAnalysis::Constants;

=head1 Bio::EnsEMBL::Funcgen::ChIPSeqAnalysis::Constants

Here is where all the constants are declared. To use them, add:

  use Bio::EnsEMBL::Funcgen::ChIPSeqAnalysis::Constants qw ( :all );
  
to your module, then use:
  
  if ($peak_calling_strategy eq CALL_BROAD_PEAKS ) {
    convert_bam_to_bed();
  }

=cut

use base qw( Exporter );
use vars qw( @EXPORT_OK );
use strict;

our @EXPORT_OK = qw(

  CALL_BROAD_PEAKS  
  CALL_NARROW_PEAKS
  
  SKIP_IDR
  RUN_IDR_ON_BIOLOGICAL_REPLICATES 
  RUN_IDR_ON_TECHNICAL_REPLICATES  
  
  BAM_FORMAT
  BIGWIG_FORMAT
  BED_FORMAT
  
  SINGLE_END
  PAIRED_END
  
  ALIGNMENT_TYPE
  PEAK_CALLING_TYPE
  
  ALIGNMENT_ANALYSIS
  REMOVE_DUPLICATES_ANALYSIS
  IDR_ANALYSIS
  CALL_PEAKS_ANALYSIS
  CONVERT_BAM_TO_BED_ANALYSIS
  CONVERT_BAM_TO_BIGWIG_ANALYSIS
  
  SIGNAL_EXPERIMENT
  CONTROL_EXPERIMENT
  
  TRUE
  FALSE
  
  ENSEMBL_SINGLE_END_ALIGNMENT_ANALYSIS
  ENSEMBL_PAIRED_END_ALIGNMENT_ANALYSIS
  ENSEMBL_HODGEPODGE_ALIGNMENT_ANALYSIS
  
  ENSEMBL_BROAD_PEAK_CALLING_ANALYSIS
  ENSEMBL_NARROW_PEAK_CALLING_ANALYSIS
);

our %EXPORT_TAGS = (all => \@EXPORT_OK);

use constant {

  CALL_BROAD_PEAKS  => 'CALL_BROAD_PEAKS',
  CALL_NARROW_PEAKS => 'CALL_NARROW_PEAKS',

  SKIP_IDR                         => 'SKIP_IDR',
  RUN_IDR_ON_BIOLOGICAL_REPLICATES => 'RUN_IDR_ON_BIOLOGICAL_REPLICATES',
  RUN_IDR_ON_TECHNICAL_REPLICATES  => 'RUN_IDR_ON_TECHNICAL_REPLICATES',

  BAM_FORMAT    => 'bam',
  BIGWIG_FORMAT => 'bigwig',
  BED_FORMAT    => 'bed',
  
  SINGLE_END => 'single_end',
  PAIRED_END => 'paired_end',
  
  ENSEMBL_SINGLE_END_ALIGNMENT_ANALYSIS => 'bwa samse',
  ENSEMBL_PAIRED_END_ALIGNMENT_ANALYSIS => 'bwa sampe',
  ENSEMBL_HODGEPODGE_ALIGNMENT_ANALYSIS => 'bwa hodgepodge',
  
  ENSEMBL_BROAD_PEAK_CALLING_ANALYSIS  => 'ccat_histone',
  ENSEMBL_NARROW_PEAK_CALLING_ANALYSIS => 'SWEmbl_default',
  
  # Result type
  #
  ALIGNMENT_TYPE    => 'alignment',
  PEAK_CALLING_TYPE => 'peak',
  
  # Anlaysis type
  #
  ALIGNMENT_ANALYSIS             => 'alignment',
  REMOVE_DUPLICATES_ANALYSIS     => 'remove_duplicates',
  IDR_ANALYSIS                   => 'idr',
  CALL_PEAKS_ANALYSIS            => 'call_peaks',
  CONVERT_BAM_TO_BED_ANALYSIS    => 'convert bam to bed',
  CONVERT_BAM_TO_BIGWIG_ANALYSIS => 'create_bigwig',
  
  SIGNAL_EXPERIMENT  => 'signal',
  CONTROL_EXPERIMENT => 'control',
  
  TRUE  => 'true',
  FALSE => 'false',
};

1;
{'fraction_non_alphanumeric': 0.0896551724137931, 'fraction_numerical': 0.001103448275862069, 'mean_word_length': 4.316715542521994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 40, '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': '6885728', 'n_tokens_mistral': 1695, 'n_tokens_neox': 1583, 'n_words': 225}