Skip to main content

Calculate the ratio and logarithmic value of species contained in several genus of a family to all species in this family.

Project description

1. Author Information

Author: benben-miao

Email: benben.miao@outlook.com

2. Developement

Click: Used for building terminal command interaction.

Click website: https://github.com/pallets/click

Setuptools: Used for building Python module.

Setuptools website: https://github.com/pypa/setuptools

3. Install from PYPI for Python using PIP

FishRatio PYPI: Calculate the ratio and logarithmic value of species contained in several genus of a family to all species in this family.

https://pypi.org/project/fishratio

pip install fishratio

4. Fish Ratio Usage

Calculate the ratio and logarithmic value of species contained in several genus of a family to all species in this family

fishratio --help
Usage: fishratio [OPTIONS]

     Description:

     Calculate the ratio and logarithmic value of species contained in
     several genus of a family to all species in this family.

     Examples:

     1. Get options and parameters help:

     FishRatio --help

     2. Sample command with all default parameters:

     FishRatio --input input.xlsx     or

     FishRatio --input input.xlsx --ratio true --ln_ratio true --neg_ratio
     true --output output.xlsx

     3. Only calculate (species number of genus) / (species number of
     family):

     FishRatio --input input.xlsx --ratio true --ln_ratio false --neg_ratio
     false --output output.xlsx

Options:
  --input TEXT        Full name (path + name + extension) of input file.
                      default="input.xlsx"

  --ratio BOOLEAN     Formula: (species number of genus) / (species number of
                      family) ratio value. default=True

  --ln_ratio BOOLEAN  Formula: Log(e)(ratio value). default=True
  --neg_mul BOOLEAN   Formula: -(ratio x Log(e)(ratio value)). default=True
  --output TEXT       Full name (path + name + extension) of output file.
                      default="output.xlsx"

  --help              Show this message and exit.

5. Examples

Examples folder: path to miniconda: ./miniconda3/lib/site-packages/fishratio/examples/

# Sample command with all default parameters:

FishRatio --input input.xlsx
# or
FishRatio --input input.xlsx --ratio true --ln_ratio true --neg_ratio
true --output output.xlsx

input.xlsx

Family Genus Species
Myxinidae Eptatretus 3
Chimaeridae Chimaera 1
Chimaeridae Hydrolagus 1
Scyliorhinidae Apristurus 2
Scyliorhinidae Atelomycterus 1
Scyliorhinidae Cephaloscyllium 3
Scyliorhinidae Galeus 1
Scyliorhinidae Halaelurus 1
Scyliorhinidae Parmaturus 1

output.xlsx

Family Genus Species Ratios LnRatio NegMul
Chimaeridae Chimaera 1 0.5 -0.693147181 0.34657359
Chimaeridae Hydrolagus 1 0.5 -0.693147181 0.34657359
Myxinidae Eptatretus 3 1 0 0
Scyliorhinidae Apristurus 2 0.222222222 -1.504077397 0.334239422
Scyliorhinidae Atelomycterus 1 0.111111111 -2.197224577 0.244136064
Scyliorhinidae Cephaloscyllium 3 0.333333333 -1.098612289 0.366204096
Scyliorhinidae Galeus 1 0.111111111 -2.197224577 0.244136064
Scyliorhinidae Halaelurus 1 0.111111111 -2.197224577 0.244136064
Scyliorhinidae Parmaturus 1 0.111111111 -2.197224577 0.244136064

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fishratio-1.1.3-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file fishratio-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: fishratio-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for fishratio-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e58b48ffbb5e8d364e5fcdbaab43852faee8b0cb45064042d51f1eda2ffd93ca
MD5 389eed6f55207406faa5fa7a91e73c8e
BLAKE2b-256 a6afa1d0f16df9fc1daf7029efbb0ffea702b00fe4822a8aaca9e84a6b7a6bdf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page