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 chromosomesmean_gc_frac (
float
): fraction of chromosomes which are G or Cmean_num_genes (
float
): mean number of genesmean_gene_len (
float
): mean length of a genemean_coding_frac (
float
): mean coding fraction of the genome
-
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 valuecount (
int
) – number of random numbers to generate
- Returns
random normally distributed integer(s)
- Return type
int
ornumpy.ndarray
ofint
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.
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]¶
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 chromosomesmean_gc_frac (
float
): fraction of nucleotides which are G or Cmean_num_genes (
float
): mean number of genesmean_gene_len (
float
): mean codon length of a genemean_coding_frac (
float
): mean coding fraction of the genometranslation_table (
int
): The NCBI standard genetic code usedncRNA_prop (
float
): The proportion of non coding RNAsrRNA_prop (
float
): The proportion of ribosomal RNAstRNA_prop (
float
): The proportion of transfer RNAsfive_prime_len (
int
): Average 5’ UTR length for transcription unitsthree_prime_len (
int
): Average 3’ UTR length for transcription unitsoperon_prop (
float
): Proportion of genes that should be in an operon (polycistronic mRNA)operon_gen_num (
int
): Average number of genes in an operonmean_copy_number (
float
): mean copy number of each RNAmean_half_life (
float
): mean half-life of RNAsseq_path (
str
): path to save genome sequence
-
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 valuecount (
int
) – number of random numbers to generate
- Returns
random normally distributed integer(s)
- Return type
int
ornumpy.ndarray
ofint
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
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 createdassigned_proteins (
list
): A list of the names of proteins to be created
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 Lmean_doubling_time (
float
): mean doubling time in s
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