Skip to content

Commit e6caf23

Browse files
committed
added plink support, bumped version nr
1 parent bc31937 commit e6caf23

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

Changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ V 1.4.0.3: Updated to new sequence-formats version, now including reading of gen
1717
V 1.4.0.4:
1818
* Fixed eigenstrat-output in pileupCaller to add a dot after the outputprefix before the file extensions.
1919
* Updated haskell-stack wrapper scripts for EIGENSOFT and ADMIXTOOLS.
20-
* Moved unmaintained scripts into unmaintained folder.
20+
* Moved unmaintained scripts into unmaintained folder.
21+
22+
V 1.5.0: Added support for Plink output

sequenceTools.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sequenceTools
2-
version: 1.4.0.5
2+
version: 1.5.0
33
synopsis: A package with tools for processing DNA sequencing data
44
description: The tools in this package process sequencing Data, in particular from ancient DNA sequencing libraries. Key tool in this package is pileupCaller, a tool to randomly sample genotypes from sequencing data.
55
license: GPL-3

src-executables/pileupCaller.hs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ initialiseEnvironment args = do
206206
runMain :: App ()
207207
runMain = do
208208
env_ <- ask
209-
liftIO $ print env_
210-
-- let pileupProducer = readPileupFromStdIn
211-
-- snpFile <- asks envSnpFile
212-
-- freqSumProducer <- pileupToFreqSum snpFile pileupProducer
213-
-- outFormat <- asks envOutFormat
214-
-- case outFormat of
215-
-- FreqSumFormat -> outputFreqSum freqSumProducer
216-
-- EigenstratFormat outPrefix popName -> outputEigenStratOrPlink outPrefix popName False freqSumProducer
217-
-- PlinkFormat outPrefix popName -> outputEigenStratOrPlink outPrefix popName True freqSumProducer
218-
-- outputStats
209+
-- liftIO $ print env_
210+
let pileupProducer = readPileupFromStdIn
211+
snpFile <- asks envSnpFile
212+
freqSumProducer <- pileupToFreqSum snpFile pileupProducer
213+
outFormat <- asks envOutFormat
214+
case outFormat of
215+
FreqSumFormat -> outputFreqSum freqSumProducer
216+
EigenstratFormat outPrefix popName -> outputEigenStratOrPlink outPrefix popName False freqSumProducer
217+
PlinkFormat outPrefix popName -> outputEigenStratOrPlink outPrefix popName True freqSumProducer
218+
outputStats
219219

220220
pileupToFreqSum :: FilePath -> Producer PileupRow (SafeT IO) () ->
221221
App (Producer FreqSumEntry (SafeT IO) ())

0 commit comments

Comments
 (0)