— — |
@ISA = qw(Bio::Tools::Run::PiseApplication) ;
sub new {
my ( $class , $location , $email , @params ) = @_ ;
my $self = $class ->SUPER::new( $location , $email );
$self ->{COMMAND} = "newcpgreport" ;
$self ->{VERSION} = "5.a" ;
$self ->{TITLE} = "NEWCPGREPORT" ;
$self ->{DESCRIPTION} = "Report CpG rich areas (EMBOSS)" ;
$self ->{OPT_EMAIL} = 0;
$self ->{CATEGORIES} = [
"cpg islands" ,
"dna features" ,
];
$self ->{_INTERFACE_STANDOUT} = undef ;
$self ->{_STANDOUT_FILE} = undef ;
$self ->{TOP_PARAMETERS} = [
"newcpgreport" ,
"init" ,
"sequence" ,
"window" ,
"shift" ,
"minlen" ,
"minoe" ,
"minpc" ,
"outfile" ,
"obsexp" ,
"cg" ,
"pc" ,
"auto" ,
];
$self ->{PARAMETERS_ORDER} = [
"newcpgreport" ,
"init" ,
"sequence" ,
"window" ,
"shift" ,
"minlen" ,
"minoe" ,
"minpc" ,
"outfile" ,
"obsexp" ,
"cg" ,
"pc" ,
"auto" ,
];
$self ->{TYPE} = {
"newcpgreport" => 'String' ,
"init" => 'String' ,
"sequence" => 'Sequence' ,
"window" => 'Integer' ,
"shift" => 'Integer' ,
"minlen" => 'Integer' ,
"minoe" => 'Float' ,
"minpc" => 'Float' ,
"outfile" => 'OutFile' ,
"obsexp" => 'Switch' ,
"cg" => 'Switch' ,
"pc" => 'Switch' ,
"auto" => 'String' ,
};
$self ->{FORMAT} = {
"init" => {
"perl" => ' "" ' ,
},
"sequence" => {
"perl" => '" -sequence=$value -sformat=fasta"' ,
},
"window" => {
"perl" => '(defined $value && $value != $vdef)? " -window=$value" : ""' ,
},
"shift" => {
"perl" => '(defined $value && $value != $vdef)? " -shift=$value" : ""' ,
},
"minlen" => {
"perl" => '(defined $value && $value != $vdef)? " -minlen=$value" : ""' ,
},
"minoe" => {
"perl" => '(defined $value && $value != $vdef)? " -minoe=$value" : ""' ,
},
"minpc" => {
"perl" => '(defined $value && $value != $vdef)? " -minpc=$value" : ""' ,
},
"outfile" => {
"perl" => '" -outfile=$value"' ,
},
"obsexp" => {
"perl" => '($value)? "" : " -noobsexp"' ,
},
"cg" => {
"perl" => '($value)? "" : " -nocg"' ,
},
"pc" => {
"perl" => '($value)? "" : " -nopc"' ,
},
"auto" => {
"perl" => '" -auto -stdout"' ,
},
"newcpgreport" => {
"perl" => '"newcpgreport"' ,
}
};
$self ->{FILENAMES} = {
};
$self ->{SEQFMT} = {
"sequence" => [8],
};
$self ->{GROUP} = {
"init" => -10,
"sequence" => 1,
"window" => 2,
"shift" => 3,
"minlen" => 4,
"minoe" => 5,
"minpc" => 6,
"outfile" => 7,
"obsexp" => 8,
"cg" => 9,
"pc" => 10,
"auto" => 11,
"newcpgreport" => 0
};
$self ->{BY_GROUP_PARAMETERS} = [
"init" ,
"newcpgreport" ,
"sequence" ,
"window" ,
"shift" ,
"minlen" ,
"minoe" ,
"minpc" ,
"outfile" ,
"obsexp" ,
"cg" ,
"pc" ,
"auto" ,
];
$self ->{SIZE} = {
};
$self ->{ISHIDDEN} = {
"init" => 1,
"sequence" => 0,
"window" => 0,
"shift" => 0,
"minlen" => 0,
"minoe" => 0,
"minpc" => 0,
"outfile" => 0,
"obsexp" => 0,
"cg" => 0,
"pc" => 0,
"auto" => 1,
"newcpgreport" => 1
};
$self ->{ISCOMMAND} = {
"init" => 0,
"sequence" => 0,
"window" => 0,
"shift" => 0,
"minlen" => 0,
"minoe" => 0,
"minpc" => 0,
"outfile" => 0,
"obsexp" => 0,
"cg" => 0,
"pc" => 0,
"auto" => 0,
};
$self ->{ISMANDATORY} = {
"init" => 0,
"sequence" => 1,
"window" => 0,
"shift" => 0,
"minlen" => 0,
"minoe" => 0,
"minpc" => 0,
"outfile" => 1,
"obsexp" => 0,
"cg" => 0,
"pc" => 0,
"auto" => 0,
};
$self ->{PROMPT} = {
"init" => "" ,
"sequence" => "sequence -- DNA [sequences] (-sequence)" ,
"window" => "Window size (-window)" ,
"shift" => "Shift increment (-shift)" ,
"minlen" => "Minimum Length (-minlen)" ,
"minoe" => "Minimum observed/expected (-minoe)" ,
"minpc" => "Minimum percentage (-minpc)" ,
"outfile" => "outfile (-outfile)" ,
"obsexp" => "Show observed/expected threshold line (-obsexp)" ,
"cg" => "Show CpG rich regions (-cg)" ,
"pc" => "Show percentage line (-pc)" ,
"auto" => "" ,
};
$self ->{ISSTANDOUT} = {
"init" => 0,
"sequence" => 0,
"window" => 0,
"shift" => 0,
"minlen" => 0,
"minoe" => 0,
"minpc" => 0,
"outfile" => 0,
"obsexp" => 0,
"cg" => 0,
"pc" => 0,
"auto" => 0,
};
$self ->{VLIST} = {
};
$self ->{FLIST} = {
};
$self ->{SEPARATOR} = {
};
$self ->{VDEF} = {
"window" => '100' ,
"shift" => '1' ,
"minlen" => '200' ,
"minoe" => '0.6' ,
"minpc" => '50.' ,
"outfile" => 'outfile.out' ,
"obsexp" => '1' ,
"cg" => '1' ,
"pc" => '1' ,
};
$self ->{PRECOND} = {
"init" => { "perl" => '1' },
"sequence" => { "perl" => '1' },
"window" => { "perl" => '1' },
"shift" => { "perl" => '1' },
"minlen" => { "perl" => '1' },
"minoe" => { "perl" => '1' },
"minpc" => { "perl" => '1' },
"outfile" => { "perl" => '1' },
"obsexp" => { "perl" => '1' },
"cg" => { "perl" => '1' },
"pc" => { "perl" => '1' },
"auto" => { "perl" => '1' },
};
$self ->{CTRL} = {
};
$self ->{PIPEOUT} = {
};
$self ->{WITHPIPEOUT} = {
};
$self ->{PIPEIN} = {
};
$self ->{WITHPIPEIN} = {
};
$self ->{ISCLEAN} = {
"init" => 0,
"sequence" => 0,
"window" => 0,
"shift" => 0,
"minlen" => 0,
"minoe" => 0,
"minpc" => 0,
"outfile" => 0,
"obsexp" => 0,
"cg" => 0,
"pc" => 0,
"auto" => 0,
};
$self ->{ISSIMPLE} = {
"init" => 0,
"sequence" => 1,
"window" => 0,
"shift" => 0,
"minlen" => 0,
"minoe" => 0,
"minpc" => 0,
"outfile" => 1,
"obsexp" => 0,
"cg" => 0,
"pc" => 0,
"auto" => 0,
};
$self ->{PARAMFILE} = {
};
$self ->{COMMENT} = {
};
$self ->{SCALEMIN} = {
};
$self ->{SCALEMAX} = {
};
$self ->{SCALEINC} = {
};
$self ->{INFO} = {
};
$self ->_init_params( @params );
return $self ;
}
1;
|