KamilSJaron / Conjunction

Simulator of secondary CONtact using Fisher's JUNCTION representation of genome admixture.
GNU General Public License v3.0
1 stars 2 forks source link

reformat block output #14

Closed KamilSJaron closed 7 years ago

KamilSJaron commented 7 years ago

The current block format described in wiki/outputs is very hard to read.

After discussion with @StuartJEBaird we have decided to reformat it to tsv file:

DEME_ID\tCH1\tCH2...\nCHn
DEME_ID\tCH1\tCH2...\nCHn
...
DEME_ID\tCH1\tCH2...\nCHn

Every line is an individual present in DEME_ID. Genotypes of individual's chromosomes are encoded in columns CH1, CH2, ... CHn, where n is number of chromosomes. Where each genotype CHi is encoded by sizes of blocks starting always by A block. For example an individual in deme with ID 2 with 3 chromosomes and 10 loci per chromosome

2 3,5,2 10 0,9,1

have genotypes 'AAABBBBBAA AAAAAAAAAA BBBBBBBBBA'.

This format have several implicit properties:

Sidenote for me: once this issue is close (format implemented), this text should be added to wiki

KamilSJaron commented 7 years ago

implemented in e5a69c1675bf8c7a224f95f27604c14126c0b5c5