Code Monkey home page Code Monkey logo

faker-biology's Introduction

faker-biology

Biology-related fake data provider for Python Faker

Some providers for biology-related concepts and resources.

Installation

 pip install faker-biology

Usage:

Standard code to access Faker

 from faker import Faker
 fake = Faker()

Physiology: Cell types and organs

 from faker_biology.physiology import CellType, Organ, Organelle

 fake.add_provider(CellType)
 fake.add_provider(Organ)
 fake.add_provider(Organelle)
 
 fake.organ()
 # Sublingual glands

 fake.celltype()
 # Centroacinar cell

 fake.organelle()
 # chloroplast

Biosequences

 from faker_biology.bioseq import Bioseq

 fake.add_provider(Bioseq)

 fake.dna(10)
 # ATCGTGTCAT

 fake.rna(10)
 # AUCGUGUCAU

 fake.protein(10)
 # MTGHILPSTW

 fake.protein_name()
 # HYAL4_HUMAN

 fake.amino_acid()
 # AminoAcid(full_name='Glycine', three_letters_name='Gly', one_letter_name='G', mass=57)
 
 fake.amino_acid_name()
 # Glycine

 fake.amino_acid_3_letters()
 # Cys

 fake.amino_acid_1_letter()
 # W

 fake.amino_acid_mass()
 # 103

Molecular Biology

 from faker_biology.mol_biol import Antibody, RestrictionEnzyme, Enzyme

 fake.add_provider(RestrictionEnzyme)
 fake.add_provider(Antibody)
 fake.add_provider(Enzyme)

 fake.re()
 # EcoRI
 
 fake.blunt()
 # SmaI

 fake.antibody_isotype()
 # IgG

 fake.enzyme()
 # Ubiquitin carboxy-terminal hydrolase L1

Taxonomy

 from faker_biology.taxonomy import ModelOrganism

 fake.add_provider(ModelOrganism)
 
 fake.organism()
 # Fission yeast

 fake.organism_latin()
 # Schizosaccharomyces pombe

faker-biology's People

Contributors

ajlouie avatar jgadling avatar otter606 avatar pokidovea avatar quantori-pokidovea avatar richarda23 avatar richardiw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.