jeromekelleher / sc2ts

Infer a succinct tree sequence from SARS-COV-2 variation data
MIT License
4 stars 3 forks source link

Allow axis passing to sample_subgraph #135

Closed hyanwong closed 1 year ago

hyanwong commented 1 year ago

And return the graph and pos for further annotation if needed.

For example, we can then adjust the aspect ratio:

fig, ax = plt.subplots(1, 1, figsize=(40, 20))

sc2ts.sample_subgraph(
    712029, 
    ts, 
    treeinfo, 
    mutations_json_filepath="../data/consensus_mutations.json",
    imputation_source='Imputed_lineage',
    ax=ax,
)

image