Skip to content

Weight = -1 for CloneGenoTransmitter tries to create more offspring than it can handle #114

@marina-klemm

Description

@marina-klemm

Hi Bo,
I am simulating this New Zealand population of whales that went from 30,000 individuals to 40 after whaling.
I want to calculate haplotype frequencies at each generation since, given that this species has miraculously survived whaling and it's been recovering for the last few generations.

The problem I am facing is that I need to use CloneGenoTransmitter to simulate the mitochondrial transmission, and I want to use weight = -1 for this mating option so it is processed before the other mating scheme I have coded (which has been mentioned in [issues #12 , #15 and #75 ]). However, since I have some lethal events (which I coded), I keep facing the error "Mating scheme with a negative weight of 1 would like to produce 14696 offspring, but there are only 1500 unclaimed offspring left.". If I comment out the weight, it all works well.

Is there a downside to not adding weight to this function? Everything else I wanted to achieve has been completed.
Thank you for your help!

PS: if needed, the script and two supporting txt files follow here.
mtdna_1.txt
snp_1.txt
whale_for_Bo.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions