Closed abshah closed 2 years ago
Hi @abshah
Thanks a lot for your question!
Regarding the two runs:
simulatePloidyData.py
was designed to generate genomic sequences with ploidy higher than 1 (with bi-allelic positions). This is why it is not able to generate a genome with ploidy 1. If you want to generate a MyChromosome.fasta
with some modifications ('variants'), I would rather iterate over the genome (like our script does), and output a copy that changes the original allele every ~ X bases (depending on the "heterozygosity" you expect).MyChromosome.fasta
). Please, let me know if your input really has anything different from the expected. Since this is possible (e.g., other letters in IUPAC standards), I am happy to adapt the code accordingly.Hi @SantosRAC ,
Thank you for your answer.
1.After briefly thinking and discussing about the heterozygosity of haploid individuals, it maybe safe to assume heterozygosity would not matter much in the context we are investigating.
Best regards, Abhijeet
Dear developers of ploidyNGS,
I have been trying to run the script simulatePloidyData.py to generate a chromosome with heteromorphic loci at the given heterozygosity.
Initially after encountering some trivial errors with respect to python versions (ver 2 vs ver 3), and some straight forward deprecated function usage, I encounter a bit more complex errors. Firstly, the script is unable to handle ploidy levels below 2 (eg. --ploidy 1). Secondly, I get a ValueError when I try to run the script with ploidy 2 (see below).
Please advise on how to fix these errors or possible work-arounds.
Thank you
Best regards, Abhijeet Shah
ploidy error:
ValueError: