Skip to content

Commit

Permalink
Merge pull request #19 from eggzilla/globaliterationfix
Browse files Browse the repository at this point in the history
Scan - Fixed empty genomes fasta in global search step
  • Loading branch information
eggzilla authored Sep 12, 2019
2 parents 374b5b3 + 950be6e commit 59b8a91
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ before_script:
script:
- docker create --name develcontainer devel
- mkdir RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.0/x/RNAlien/build/RNAlien/RNAlien RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.0/x/RNAlienStatistics/build/RNAlienStatistics/RNAlienStatistics RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.0/x/cmsearchToBed/build/cmsearchToBed/cmsearchToBed RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.0/x/RNAcentralHTTPRequest/build/RNAcentralHTTPRequest/RNAcentralHTTPRequest RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.0/x/RNAlienScan/build/RNAlienScan/RNAlienScan RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.1/x/RNAlien/build/RNAlien/RNAlien RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.1/x/RNAlienStatistics/build/RNAlienStatistics/RNAlienStatistics RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.1/x/cmsearchToBed/build/cmsearchToBed/cmsearchToBed RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.1/x/RNAcentralHTTPRequest/build/RNAcentralHTTPRequest/RNAcentralHTTPRequest RNAlien
- docker cp develcontainer:/source/dist-newstyle/build/x86_64-linux/ghc-8.4.3/RNAlien-1.7.1/x/RNAlienScan/build/RNAlienScan/RNAlienScan RNAlien
- cp LICENSE RNAlien
- tar -cvzf RNAlien.tar.gz RNAlien

Expand Down
2 changes: 1 addition & 1 deletion Biobase/RNAlien.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ main = do
let inputSequence = head reformatedFastaInput
initialTaxId <- setInitialTaxId offlineMode threads inputBlastDatabase temporaryDirectoryPath inputTaxId inputSequence
let checkedTaxonomyRestriction = checkTaxonomyRestriction taxonomyRestriction
let staticOptions = StaticOptions temporaryDirectoryPath sessionId (fromJust inputnSCICutoff) inputTaxId singleHitperTax inputQuerySelectionMethod inputQueryNumber lengthFilter coverageFilter blastSoftmasking threads inputBlastDatabase checkedTaxonomyRestriction (setVerbose verboseLevel) offlineMode
let staticOptions = StaticOptions temporaryDirectoryPath sessionId (fromJust inputnSCICutoff) inputTaxId singleHitperTax inputQuerySelectionMethod inputQueryNumber lengthFilter coverageFilter blastSoftmasking threads inputBlastDatabase checkedTaxonomyRestriction (setVerbose verboseLevel) offlineMode []
let initialization = ModelConstruction iterationNumber reformatedFastaInput [] initialTaxId Nothing (fromJust inputEvalueCutoff) False [] [] []
logMessage (show initialization) temporaryDirectoryPath
modelConstructionResults <- modelConstructer staticOptions initialization
Expand Down
9 changes: 5 additions & 4 deletions Biobase/RNAlien/Library.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2199,10 +2199,11 @@ scanModelConstructionResult staticOptions modelConstruction = do
createDirectoryIfMissing False logFileDirectoryPath
let expectThreshold = setBlastExpectThreshold modelConstruction
let (upperTaxLimit,lowerTaxLimit) = (Just (0 :: Int), Nothing)
let currentGenomeFasta = genomeFastas modelConstruction
let genomeFastaPath = (iterationDirectory ++ "genome.fa")
writeFastaFile genomeFastaPath currentGenomeFasta
candidates1 <- catchAll (searchCandidates staticOptions Nothing currentIterationNumber upperTaxLimit lowerTaxLimit expectThreshold (Just genomeFastaPath) queries)
--let currentGenomeFasta = genomeFastas modelConstruction
-- Genome for global search is copied from input
let currentGenomeFastasPath = (iterationDirectory ++ "genome.fa")
copyFile (genomeFastasPath staticOptions) currentGenomeFastasPath
candidates1 <- catchAll (searchCandidates staticOptions Nothing currentIterationNumber upperTaxLimit lowerTaxLimit expectThreshold (Just currentGenomeFastasPath) queries)
(\e -> do logWarning ("Warning: Search results iteration" ++ show currentIterationNumber ++ " - exception: " ++ show e) outputDirectory
return (SearchResult [] Nothing))
let uniqueCandidates = filterDuplicates modelConstruction candidates1
Expand Down
3 changes: 2 additions & 1 deletion Biobase/RNAlien/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ data StaticOptions = StaticOptions
blastDatabase :: Maybe String,
taxRestriction :: Maybe String,
verbositySwitch :: Bool,
offline :: Bool
offline :: Bool,
genomeFastasPath :: String
} deriving (Show)

-- | Keeps track of model construction
Expand Down
2 changes: 1 addition & 1 deletion Biobase/RNAlienScan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ main = do
when (null inputGenomesFasta) (error "Please provide input genomes with the cmd line parameter -s")
logToolVersions inputQuerySelectionMethod temporaryDirectoryPath
let reformatedFastaInput = map reformatFasta fastaInput
let staticOptions = StaticOptions temporaryDirectoryPath sessionId (fromJust inputnSCICutoff) Nothing singleHitperTax inputQuerySelectionMethod inputQueryNumber lengthFilter coverageFilter blastSoftmasking threads Nothing Nothing (setVerbose verboseLevel) True
let staticOptions = StaticOptions temporaryDirectoryPath sessionId (fromJust inputnSCICutoff) Nothing singleHitperTax inputQuerySelectionMethod inputQueryNumber lengthFilter coverageFilter blastSoftmasking threads Nothing Nothing (setVerbose verboseLevel) True inputGenomesFastaFilePath
let initialization = ModelConstruction iterationNumber reformatedFastaInput [] Nothing Nothing (fromJust inputEvalueCutoff) False [] [] inputGenomesFasta
logMessage (show initialization) temporaryDirectoryPath
modelConstructionResults <- scanModelConstructer staticOptions initialization
Expand Down
6 changes: 5 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
-*-change-log-*-

### 1.7.0 [Florian Eggenhofer](mailto:[email protected]) tbd
### 1.7.1 [Florian Eggenhofer](mailto:[email protected]) 12. September 2019

* Fixed Scan tool global search step

### 1.7.0 [Florian Eggenhofer](mailto:[email protected]) 29. August 2019

* Added Scan tool
* Changed tracing high similarity candidates
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ TaxonomyTools which can be used to visualise the organisms included in a RNAlien
RNAlien is available with all dependencies via [biocontainer](https://quay.io/repository/biocontainers/rnalien). Install
[docker](https://www.docker.com/get-docker)

docker pull quay.io/biocontainers/rnalien:1.7.0--pl5.22.0_0
docker run -i -t quay.io/biocontainers/rnalien:1.7.0--pl5.22.0_0 bash
docker pull quay.io/biocontainers/rnalien:1.7.1--pl5.22.0_0
docker run -i -t quay.io/biocontainers/rnalien:1.7.1--pl5.22.0_0 bash

### <u>Installation via cabal-install</u>

Expand Down
6 changes: 3 additions & 3 deletions RNAlien.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: RNAlien
version: 1.7.0
version: 1.7.1
synopsis: Unsupervized construction of RNA family models
description: RNAlien is a tool for automatic construction of RNAfamily models from a single sequence.
.
Expand Down Expand Up @@ -51,8 +51,8 @@ source-repository head

source-repository this
type: git
location: https://github.com/eggzilla/RNAlien/tree/1.7.0
tag: 1.7.0
location: https://github.com/eggzilla/RNAlien/tree/1.7.1
tag: 1.7.1

executable RNAlien
Hs-Source-Dirs: ./Biobase/
Expand Down

0 comments on commit 59b8a91

Please sign in to comment.