3.1.1.3. rand_wc_model_gen.kb_gen package

3.1.1.3.1. Submodules

3.1.1.3.2. rand_wc_model_gen.kb_gen.chrs_genes_tus module

Generator for chromosomes, transcription units, and genes of random in silico organisms

Author

Jonathan Karr <karr@mssm.edu>

Date

2018-06-11

Copyright

2018, Karr Lab

License

MIT

class rand_wc_model_gen.kb_gen.chrs_genes_tus.ChromosomesGenesTusGenerator(knowledge_base, options=None)[source]

Bases: wc_kb_gen.core.KbComponentGenerator

Generator for chromosomes, transcription units, and genes for random in silico organisms

Options:

  • num_chromosomes (int): number of chromosomes

  • mean_gc_frac (float): fraction of chromosomes which are G or C

  • mean_num_genes (float): mean number of genes

  • mean_gene_len (float): mean length of a gene

  • mean_coding_frac (float): mean coding fraction of the genome

clean_and_validate_options()[source]

Apply default options and validate options

gen_components()[source]

Construct knowledge base components

rand(mean, count=1)[source]

Generated 1 or more random normally distributed integer(s) with standard deviation equal to the square root of the mean value.

Parameters
  • mean (float) – mean value

  • count (int) – number of random numbers to generate

Returns

random normally distributed integer(s)

Return type

int or numpy.ndarray of int

3.1.1.3.3. rand_wc_model_gen.kb_gen.compartments module

Author

Bilal Shaikh <bilal.shaikh@columbia.edu>

::Date: 2018-07-19 :Copyright: 2018, Karr Lab :License: MIT

class rand_wc_model_gen.kb_gen.compartments.CompartmentsGenerator(knowledge_base, options=None)[source]

Bases: wc_kb_gen.core.KbComponentGenerator

Creates compartments for the knowledge base from the provided list of compartment ids and names.At least two compartments, with ids(names) ‘c’ (cytosol) and ‘e’ (extracellular), must be created.

Options: * compartments (list) a list of (tuple) of type (string, string) that contain the id and name of the compartment.

clean_and_validate_options()[source]

Apply default options and validate options

gen_components()[source]

Construct knowledge base components

3.1.1.3.4. rand_wc_model_gen.kb_gen.core module

Generator for KBs for random in silico organisms

Author

Jonathan Karr <karr@mssm.edu>

Date

2018-06-11

Copyright

2018, Karr Lab

License

MIT

class rand_wc_model_gen.kb_gen.core.KbGenerator(component_generators=None, options=None)[source]

Bases: wc_kb_gen.core.KbGenerator

Generator for KBs for random in silico organisms

  • Circular chromosome

Options:

  • id

  • version

  • component

    • GenomeGenerator

    • MetabolitesGenerator

    • PropertiesGenerator

DEFAULT_COMPONENT_GENERATORS = (<class 'rand_wc_model_gen.kb_gen.properties.PropertiesGenerator'>, <class 'rand_wc_model_gen.kb_gen.compartments.CompartmentsGenerator'>, <class 'rand_wc_model_gen.kb_gen.genome.GenomeGenerator'>, <class 'rand_wc_model_gen.kb_gen.metabolites.MetabolitesGenerator'>, <class 'rand_wc_model_gen.kb_gen.observables.ObservablesGenerator'>)[source]
clean_and_validate_options()[source]

Apply default options and validate options

run()[source]

Generate a knowledge base of experimental data for a whole-cell model

Returns

knowledge base

Return type

wc_kb.core.KnowledgeBase

3.1.1.3.5. rand_wc_model_gen.kb_gen.genome module

Author

Ashwin Srinivasan <ashwins@mit.edu>

Author

Bilal Shaikh <bilal.shaikh@columbia.edu>

Date

2018-06-06

Copyright

2018, Karr Lab

License

MIT

class rand_wc_model_gen.kb_gen.genome.GenomeGenerator(knowledge_base, options=None)[source]

Bases: wc_kb_gen.core.KbComponentGenerator

Creates synthetic chromosome with randomized genes/intergenic regions. Creates RNA and protein objects corresponding to the genes on this chromosome. Associates the chromosome, RNAs, proteins with a knowledge base object (and its Cell attribute)

Options:

  • num_chromosomes (int): number of chromosomes

  • mean_gc_frac (float): fraction of nucleotides which are G or C

  • mean_num_genes (float): mean number of genes

  • mean_gene_len (float): mean codon length of a gene

  • mean_coding_frac (float): mean coding fraction of the genome

  • translation_table (int): The NCBI standard genetic code used

  • ncRNA_prop (float): The proportion of non coding RNAs

  • rRNA_prop (float): The proportion of ribosomal RNAs

  • tRNA_prop (float): The proportion of transfer RNAs

  • five_prime_len (int): Average 5’ UTR length for transcription units

  • three_prime_len (int): Average 3’ UTR length for transcription units

  • operon_prop (float): Proportion of genes that should be in an operon (polycistronic mRNA)

  • operon_gen_num (int): Average number of genes in an operon

  • mean_copy_number (float): mean copy number of each RNA

  • mean_half_life (float): mean half-life of RNAs

  • seq_path (str): path to save genome sequence

clean_and_validate_options()[source]

Apply default options and validate options

gen_components()[source]

Construct knowledge base components

gen_genome()[source]

Construct knowledge base components and generate the DNA sequence

gen_rnas_proteins()[source]

Creates RNA and protein objects corresponding to genes on chromosome

gen_tus()[source]

Creates transcription units with 5’/3’ UTRs, polycistronic mRNAs, and other types of RNA (tRNA, rRNA, sRNA)

rand(mean, count=1, min=0, max=inf)[source]

Generated 1 or more random normally distributed integer(s) with standard deviation equal to the square root of the mean value.

Parameters
  • mean (float) – mean value

  • count (int) – number of random numbers to generate

Returns

random normally distributed integer(s)

Return type

int or numpy.ndarray of int

3.1.1.3.6. rand_wc_model_gen.kb_gen.metabolites module

Generator for metabolites of random in silico organisms

Author

Jonathan Karr <karr@mssm.edu>

Date

2018-06-11

Copyright

2018, Karr Lab

License

MIT

class rand_wc_model_gen.kb_gen.metabolites.MetabolitesGenerator(knowledge_base, options=None)[source]

Bases: wc_kb_gen.core.KbComponentGenerator

Generator for metabolites for random in silico organisms

Options:

  • data_path: path to CSV file with metabolite ids, name, InChI-encoded structures, and intracellular concentrations

clean_and_validate_options()[source]

Apply default options and validate options

gen_components()[source]

Construct knowledge base components

get_data()[source]

Get data for knowledge base components

3.1.1.3.7. rand_wc_model_gen.kb_gen.observables module

Author

Bilal Shaikh <bilal.shaikh@columbia.edu>

::Date: 2018-07-19 :Copyright: 2018, Karr Lab :License: MIT

class rand_wc_model_gen.kb_gen.observables.ObservablesGenerator(knowledge_base, options=None)[source]

Bases: wc_kb_gen.core.KbComponentGenerator

Creates observable objects for proteins and tRNAs that are assigned to specific functions. Adds these observables to the knowledge base.

Options:
  • assigned_trnas (list): A list of the names of trnas to be created

  • assigned_proteins (list): A list of the names of proteins to be created

clean_and_validate_options()[source]

Apply default options and validate options

gen_components()[source]

Takes random samples of the generated rnas and proteins and assigns them functions based on the included list of proteins and rnas

3.1.1.3.8. rand_wc_model_gen.kb_gen.properties module

Generator for properties

Author

Jonathan Karr <karr@mssm.edu>

Date

2018-06-12

Copyright

2018, Karr Lab

License

MIT

class rand_wc_model_gen.kb_gen.properties.PropertiesGenerator(knowledge_base, options=None)[source]

Bases: wc_kb_gen.core.KbComponentGenerator

Generator for other properties for random in silico organisms

Options:

  • mean_volume (float): mean volume in L

  • mean_doubling_time (float): mean doubling time in s

clean_and_validate_options()[source]

Apply default options and validate options

gen_components()[source]

Construct knowledge base components

3.1.1.3.9. rand_wc_model_gen.kb_gen.rna module

Generator for RNA of random in silico organisms

Author

Jonathan Karr <karr@mssm.edu>

Date

2018-06-11

Copyright

2018, Karr Lab

License

MIT

class rand_wc_model_gen.kb_gen.rna.RnaGenerator(knowledge_base, options=None)[source]

Bases: wc_kb_gen.core.KbComponentGenerator

Generator for RNA for random in silico organisms

Options:

  • mean_copy_number (float): mean copy number of each RNA

  • mean_half_life (float): mean half-life of each RNA in s

clean_and_validate_options()[source]

Apply default options and validate options

gen_components()[source]

Construct knowledge base components

3.1.1.3.10. rand_wc_model_gen.kb_gen.test module

3.1.1.3.11. Module contents