mdshw5 / pyfaidx

Efficient pythonic random access to fasta subsequences
https://pypi.python.org/pypi/pyfaidx
Other
449 stars 75 forks source link

How to specify how the consensus sequence should be built? #171

Closed larahurban closed 3 years ago

larahurban commented 3 years ago

Hi,

I am sorry for asking a quite simple question, but I can unfortunately not find any documentation about this, and I am also not sure if I am reading the raw code of the function correctly:

I am using FastaVariant to create a consensus sequence per sample; all exemplary code uses the default parameter of "het/hom = True", but I was wondering what they mean? Also, what happens in the case of a missing genotype call, and is there a way to specify that the alternative allele should be preferred in the case of a heterozygous variant (I am investigating a dominant phenotype)?

Thank you very much!

Best wishes, Lara

mdshw5 commented 3 years ago

Hi @larahurban. I've just come back from vacation so please excuse the delay in answering. I really never did document the FastaVariant class very well, but here's the way it works:

larahurban commented 3 years ago

Thank you very much, Matt!