Skip to content

Commit

Permalink
Reference simulation function in example from top-level api
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-czech committed Oct 1, 2020
1 parent 39171ea commit 237bc96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sgkit/stats/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ def pca(
>>> import xarray as xr
>>> import numpy as np
>>> import sgkit as sg
>>> from sgkit.testing import simulate_genotype_call_dataset
>>> # Set parameters for number of variants and number of samples per cohort
>>> n_variant, n_sample = 100, [25, 50, 75]
Expand All @@ -248,7 +247,7 @@ def pca(
>>> # Run PCA on simulated dataset
>>> ds = (
... simulate_genotype_call_dataset(n_variant=n_variant, n_sample=sum(n_sample), seed=0)
... sg.simulate_genotype_call_dataset(n_variant=n_variant, n_sample=sum(n_sample), seed=0)
... .assign(call_alternate_allele_count=(("variants", "samples"), rs.binomial(2, af.T).astype("int8")))
... .pipe(sg.pca, n_components=2, merge=False)
... )
Expand Down

0 comments on commit 237bc96

Please sign in to comment.