Skip to content

missing data is ignored with variant files but not .Rtab #157

Open
@julibeg

Description

@julibeg

Missing genotypes in variant files are ignored:

pyseer/pyseer/input.py

Lines 485 to 486 in 2e27979

elif sample in d and np.isnan(d[sample]) and str(haplotype) != '.':
del d[sample]

However, in .Rtab files they are treated as missing data and the fit fails later on:

pyseer/pyseer/input.py

Lines 423 to 424 in 2e27979

elif present == ".":
d[sample] = np.nan

Is this intended? For now I have replaced d[sample] = np.nan with continue to also get a fit for genes with a few missing entries.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions