Skip to content

Commit

Permalink
finished removing onlyGeno option
Browse files Browse the repository at this point in the history
  • Loading branch information
stschiff committed Nov 22, 2024
1 parent 3e8bc07 commit 2499894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Poseidon/CLI/Genoconvert.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ convertGenoTo outFormat onlyGeno outPath removeOld outPlinkPopMode outZip pac =

-- compile new relative file names
let outName = getPacName . posPacNameAndVersion $ pac
let gz = "gz"
let gz = if outZip then "gz" else ""
(outIrel, outSrel, outGrel) <- case outFormat of
"EIGENSTRAT" -> return
(outName <.> ".ind", outName <.> ".snp" <.> gz, outName <.> ".geno" <.> gz)
Expand Down
9 changes: 1 addition & 8 deletions test/PoseidonGoldenTests/GoldenTestsRunCommands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ testPipelineGenoconvert testDir checkFilePath = do
let genoconvertOpts1 = GenoconvertOptions {
_genoconvertGenoSources = [PacBaseDir $ testPacsDir </> "Schiffels_2016"]
, _genoConvertOutFormat = "PLINK"
, _genoConvertOutOnlyGeno = False
, _genoMaybeOutPackagePath = Just $ testDir </> "genoconvert" </> "Schiffels"
, _genoconvertRemoveOld = False
, _genoconvertOutPlinkPopMode = PlinkPopNameAsFamily
Expand All @@ -433,7 +432,6 @@ testPipelineGenoconvert testDir checkFilePath = do
let genoconvertOpts2 = GenoconvertOptions {
_genoconvertGenoSources = [PacBaseDir $ testPacsDir </> "Schiffels_2016"]
, _genoConvertOutFormat = "PLINK"
, _genoConvertOutOnlyGeno = False
, _genoMaybeOutPackagePath = Just $ testDir </> "genoconvert" </> "Schiffels_otherPlinkEncoding"
, _genoconvertRemoveOld = False
, _genoconvertOutPlinkPopMode = PlinkPopNameAsPhenotype
Expand All @@ -450,7 +448,6 @@ testPipelineGenoconvert testDir checkFilePath = do
let genoconvertOpts3 = GenoconvertOptions {
_genoconvertGenoSources = [PacBaseDir $ testDir </> "init" </> "Wang"]
, _genoConvertOutFormat = "EIGENSTRAT"
, _genoConvertOutOnlyGeno = False
, _genoMaybeOutPackagePath = Nothing
, _genoconvertRemoveOld = False
, _genoconvertOutPlinkPopMode = PlinkPopNameAsFamily
Expand Down Expand Up @@ -479,7 +476,6 @@ testPipelineGenoconvert testDir checkFilePath = do
}
]
, _genoConvertOutFormat = "PLINK"
, _genoConvertOutOnlyGeno = True
, _genoMaybeOutPackagePath = Nothing
, _genoconvertRemoveOld = False
, _genoconvertOutPlinkPopMode = PlinkPopNameAsFamily
Expand All @@ -504,7 +500,6 @@ testPipelineGenoconvert testDir checkFilePath = do
}
]
, _genoConvertOutFormat = "PLINK"
, _genoConvertOutOnlyGeno = True
, _genoMaybeOutPackagePath = Nothing
, _genoconvertRemoveOld = False
, _genoconvertOutPlinkPopMode = PlinkPopNameAsFamily
Expand All @@ -521,7 +516,6 @@ testPipelineGenoconvert testDir checkFilePath = do
let genoconvertOpts6zipping = GenoconvertOptions {
_genoconvertGenoSources = [PacBaseDir $ testPacsDir </> "Schiffels_2016"]
, _genoConvertOutFormat = "PLINK"
, _genoConvertOutOnlyGeno = False
, _genoMaybeOutPackagePath = Just $ testDir </> "genoconvert" </> "zip_roundtrip"
, _genoconvertRemoveOld = False
, _genoconvertOutPlinkPopMode = PlinkPopNameAsFamily
Expand All @@ -537,14 +531,13 @@ testPipelineGenoconvert testDir checkFilePath = do
(testDir </> "genoconvert" </> "zip_roundtrip" </> "Schiffels_2016.fam") Nothing
in [GenoDirect $ GenotypeDataSpec gSpec Nothing]
, _genoConvertOutFormat = "PLINK"
, _genoConvertOutOnlyGeno = False
, _genoMaybeOutPackagePath = Nothing
, _genoconvertRemoveOld = True
, _genoconvertOutPlinkPopMode = PlinkPopNameAsFamily
, _genoconvertOnlyLatest = False
, _genoconvertOutZip = False
}
testLog $ runGenoconvert genoconvertOpts6unzipping
return ()

runAndChecksumFiles checkFilePath testDir (testLog $ runGenoconvert genoconvertOpts6unzipping) "genoconvert" [
"genoconvert" </> "zip_roundtrip" </> "Schiffels_2016.bed"
Expand Down

0 comments on commit 2499894

Please sign in to comment.