Skip to content

dynwrap should be an Imports dependency, not Suggests #28

@scottgigante

Description

@scottgigante

Example code:

library(dyngen)
init <- initialise_model(
  backbone=backbone_bifurcating(),
  num_cells=50,
  num_tfs=50,
  num_targets=20,
  num_hks=10,
  simulation_params=simulation_default(
    census_interval=as.double(10),
    kinetics_noise_function = kinetics_noise_simple(mean=1, sd=0.005),
    ssa_algorithm = ssa_etl(tau=300/3600),
    compute_cellwise_grn=FALSE,
    compute_rna_velocity=FALSE),
  num_cores = 4,
  download_cache_dir=NULL,
  verbose=TRUE
)
out <- generate_dataset(init)

Result:

Generating TF network
Sampling feature network from real network
trying URL 'https://github.com/dynverse/dyngen/raw/data_files/regulatorycircuits_01_neurons_fetal_brain.rds'
Content type 'application/octet-stream' length 1340872 bytes (1.3 MB)
downloaded 1.3 MB

Generating kinetics for 80 features
Generating formulae
Generating gold standard mod changes
Precompiling reactions for gold standard
Running gold simulations
  |==================================================| 100% elapsed=02s, remaining~00s
Precompiling reactions for simulations
Running 32 simulations
Mapping simulations to gold standard
Performing dimred
Simulating experiment
trying URL 'https://github.com/dynverse/dyngen/raw/data_files/zenodo_1443566_real_gold_germline-human-both_guo.rds'
Content type 'application/octet-stream' length 2039740 bytes (1.9 MB)
downloaded 1.9 MB

Wrapping dataset
Loading required namespace: dynwrap
Failed with error:  ‘there is no package called ‘dynwrap’’
In addition: Warning messages:
1: UNRELIABLE VALUE: Future (‘<none>’) unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore". 
2: In .generate_cells_predict_state(model) :
  Simulation does not contain all gold standard edges. This simulation likely suffers from bad kinetics; choose a different seed and rerun.
Error in loadNamespace(name) : there is no package called ‘dynwrap’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions