Skip to content

Commit

Permalink
Cleanup before a distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Hubley committed Nov 20, 2018
1 parent 5a42bea commit 9564d95
Show file tree
Hide file tree
Showing 43 changed files with 123 additions and 261 deletions.
5 changes: 1 addition & 4 deletions ArrayList.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
###############################################################################
# ChangeLog
#
# $Log: ArrayList.pm,v $
# Revision 1.59 2017/02/01 21:01:53 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down
5 changes: 1 addition & 4 deletions ArrayListIterator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
###############################################################################
# ChangeLog
#
# $Log: ArrayListIterator.pm,v $
# Revision 1.42 2017/02/01 21:01:53 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down
10 changes: 5 additions & 5 deletions CrossmatchSearchEngine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
###############################################################################
# ChangeLog
#
# $Log: CrossmatchSearchEngine.pm,v $
# Revision 1.111 2017/02/01 21:01:53 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down Expand Up @@ -278,7 +275,7 @@ sub setPathToEngine {

##-------------------------------------------------------------------------##
sub getParameters {
my $this = shift;
my $this = shift;

# Test if engine is available
my $engine = $this->getPathToEngine();
Expand Down Expand Up @@ -330,6 +327,7 @@ sub getParameters {
$parameters .= " -masklevel $value" if ( $value > 0 );
}
if ( ( $value = $this->getMatrix() ) ) {

# test if matrix exists
if ( -f $value ) {
$parameters .= " -matrix $value";
Expand Down Expand Up @@ -385,6 +383,7 @@ sub search {
my %nameValuePairs = @_;

if ( %nameValuePairs ) {

# TODO: Consider deprecating this way of setting up the object
while ( my ( $name, $value ) = each( %nameValuePairs ) ) {
my $method = "set" . _ucFirst( $name );
Expand All @@ -401,6 +400,7 @@ sub search {
# Get matrix name for post-processing results
my @matrixName = ();
if ( ( my $value = $this->getMatrix() ) ) {

# test if matrix exists
if ( -f $value ) {
my @path = split( /[\\\/]/, $value );
Expand Down
5 changes: 1 addition & 4 deletions DFAMRecord.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
###############################################################################
# ChangeLog
#
# $Log: DFAMRecord.pm,v $
# Revision 1.19 2017/02/01 21:01:53 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
#
Expand Down
5 changes: 1 addition & 4 deletions DateRepeats
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
#
# ChangeLog
#
# $Log: DateRepeats,v $
# Revision 1.93 2017/02/01 21:01:53 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
#
Expand Down
5 changes: 1 addition & 4 deletions DeCypherSearchEngine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
###############################################################################
# ChangeLog
#
# $Log: DeCypherSearchEngine.pm,v $
# Revision 1.49 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down
5 changes: 1 addition & 4 deletions FastaDB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@
################################################################################
# ChangeLog:
#
# $Log: FastaDB.pm,v $
# Revision 1.107 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
################################################################################
#
Expand Down
17 changes: 7 additions & 10 deletions HMMERSearchEngine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
###############################################################################
# ChangeLog
#
# $Log: HMMERSearchEngine.pm,v $
# Revision 1.40 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down Expand Up @@ -509,14 +506,14 @@ sub search {
print "HMMER returned a the following result code >$resultCode<\n"
if ( $this->getDEBUG() );

##
##
## DEBUGING for Kaitlin
##
#if ( $resultCode )
#{
# my $lowerCode = ( $? & 255 );
# print "ERROR returned from nhmmer invocation: 16bit code = $?, high 8bits = $resultCode, lower 8bits = $lowerCode, error file = $errFile, output file = $outFile\n";
#}
#if ( $resultCode )
#{
# my $lowerCode = ( $? & 255 );
# print "ERROR returned from nhmmer invocation: 16bit code = $?, high 8bits = $resultCode, lower 8bits = $lowerCode, error file = $errFile, output file = $outFile\n";
#}

print $CLASS
. "::search: "
Expand Down
Empty file modified Libraries/RepeatAnnotationData.pm
100644 → 100755
Empty file.
5 changes: 1 addition & 4 deletions LibraryUtils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
#
# ChangeLog
#
# $Log: LibraryUtils.pm,v $
# Revision 1.6 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
#
Expand Down
5 changes: 1 addition & 4 deletions Matrix.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
###############################################################################
# ChangeLog
#
# $Log: Matrix.pm,v $
# Revision 1.21 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down
22 changes: 8 additions & 14 deletions NCBIBlastSearchEngine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@
###############################################################################
# ChangeLog
#
# $Log: NCBIBlastSearchEngine.pm,v $
# Revision 1.48 2017/04/17 19:01:11 rhubley
# - Allow number of cores to be set with RMBlast
# - Deprecate -int and -low options
#
# Revision 1.47 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down Expand Up @@ -476,8 +469,8 @@ sub getParameters {
# on?
if ( defined( $value = $this->getCores() ) ) {
$parameters .= " -num_threads $value ";
}else
{
}
else {
$parameters .= " -num_threads 4 ";
}

Expand Down Expand Up @@ -610,12 +603,13 @@ sub search {
my $outFile = $outputDirName . "/ncResults-$currentTime-$$.out";

# TODO DEBUGGING
if ( $this->getDEBUG )
{
system("cp " . $this->getQuery() . " $outputDirName" . "/before-$currentTime-$$.fa" );
if ( $this->getDEBUG ) {
system( "cp "
. $this->getQuery()
. " $outputDirName"
. "/before-$currentTime-$$.fa" );
}


open OUT, ">$outFile";
while ( <$POUTPUT> ) {
print OUT $_;
Expand Down
5 changes: 1 addition & 4 deletions NCBIBlastXSearchEngine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
###############################################################################
# ChangeLog
#
# $Log: NCBIBlastXSearchEngine.pm,v $
# Revision 1.22 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down
5 changes: 1 addition & 4 deletions PRSearchResult.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
###############################################################################
# ChangeLog
#
# $Log: PRSearchResult.pm,v $
# Revision 1.29 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
# To Do:
Expand Down
14 changes: 5 additions & 9 deletions ProcessRepeats
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
###############################################################################
# ChangeLog
#
# $Log: ProcessRepeats,v $
# Revision 1.279 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
#
Expand Down Expand Up @@ -2552,7 +2549,7 @@ CYCLE3:
## matrix is also fixed to the average GC background rather
## than the actual GC bin used to identify the original alignment.
## Original alignment search parameters:
## 180 cutoff,
## 180 cutoff,
## 7-11 minmatch,
## 18p## matrix,
## -30 gap open,
Expand Down Expand Up @@ -6100,8 +6097,8 @@ sub generateOutput {
printf $OUT " have been counted as one element\n";
printf $OUT "%54s\n", $exclnote;
printf $OUT "\n";
if ( $options{'species'} )
{

if ( $options{'species'} ) {
printf $OUT "The query species was assumed to be %-14s\n",
$options{'species'};
}
Expand Down Expand Up @@ -7647,8 +7644,7 @@ sub joinDNATransposonFragments {
# Fake a range if hit name
my @curRanges = ();
if ( $curName eq $curHitName ) {
if ( $chainEndHash->{ $currentAnnot->getPRID() } )
{
if ( $chainEndHash->{ $currentAnnot->getPRID() } ) {
push @curRanges,
{
'start' => 1,
Expand Down
5 changes: 1 addition & 4 deletions PubRef.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
###############################################################################
# ChangeLog
#
# $Log: PubRef.pm,v $
# Revision 1.46 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
#
Expand Down
5 changes: 1 addition & 4 deletions RepbaseRecord.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
###############################################################################
# ChangeLog
#
# $Log: RepbaseRecord.pm,v $
# Revision 1.46 2017/02/01 21:01:54 rhubley
# Cleanup before a distribution
#
# $Log$
#
###############################################################################
#
Expand Down
Loading

0 comments on commit 9564d95

Please sign in to comment.