poseidon-framework / poseidon-analysis-hs

A tool to analyse genotype data (optionally in the poseidon data format)
MIT License
3 stars 0 forks source link

Loop over multiple ascertainments in fstats #30

Open stschiff opened 6 months ago

stschiff commented 6 months ago

Currently, our F-statistics configuration file allows to loop over multiple populations, like:

fstats:
- type: F2
  a: ["French", "Spanish"]
  b: ["Han", "CEU2"]

There was a request by @huanglei-artificium to be able to also loop over multiple ascertainments, e.g. multiple cutoff-frequencies. This can be implemented by changing the definition in https://github.com/poseidon-framework/poseidon-analysis-hs/blob/ba8e025d6416bfa258073727b0b1c8ee60b5b313/src/Poseidon/Analysis/FStatsConfig.hs#L62, instead of taking a Maybe AscertainmentSpec it can take simply [AscertainmentSpec].

I think this could be a good issue to perhaps get into the hang of Haskell coding. Do you want to try, @huanglei-artificium ?

stschiff commented 6 months ago

I've invited you to this repository, @huanglei-artificium, and also set up a branch-protection rule just in case. You need to create a Pull Request then. If you need a primer, I was told the Spaam introduction isn't too shabby: https://www.spaam-community.org/wss-summer-school/#/2023/teaching-material?id=github