Skip to main content

SRIPType - A bioinformatics tool for 51k-SINE-RIP chip genotyping

Project description

SRIPType

A bioinformatics tool for 51k-SINE-RIP chip genotyping.

Installation

Method 1: Direct execution (clone and run)

git clone https://github.com/your-org/SRIPType.git
cd SRIPType

# Run via absolute path
/path/to/SRIPType/sriptype --help

# Or add to PATH
export PATH=/path/to/SRIPType:$PATH
sriptype --help

Method 2: pip install

git clone https://github.com/your-org/SRIPType.git
cd SRIPType
pip install .

sriptype --help

Method 3: Docker

# Build
docker build -t sriptype .

# Run
docker run --rm -v $(pwd):/data sriptype example -i /data/input.fasta -o /data/output.txt -t 4

Method 4: Conda (coming soon)

conda install -c your-channel sriptype

Usage

# Show help
sriptype --help

# Show version
sriptype --version

# Run a subcommand
sriptype example -i input.fasta -o output.txt -t 4

Global options

Option Description
-v, --version Show version and exit
-t, --threads INT Number of threads (default: 1)
--verbose Enable verbose output

Available subcommands

Subcommand Description
example Example subcommand (template)

Adding a new subcommand

  1. Create a new Python file in sriptype_modules/subcommands/, e.g. mycommand.py
  2. Define the following in the module:
"""My new subcommand."""

from sriptype_modules.utils import check_file_exists, ensure_output_dir, setup_logger

logger = setup_logger(__name__)

DESCRIPTION = "Description of my subcommand"


def add_arguments(parser):
    """Add subcommand-specific arguments."""
    parser.add_argument("-i", "--input", required=True, help="Input file")
    parser.add_argument("-o", "--output", required=True, help="Output file")


def run(args):
    """Execute the subcommand."""
    input_file = check_file_exists(args.input)
    output_file = ensure_output_dir(args.output)
    threads = args.threads

    # Your logic here
    logger.info("Done!")
  1. The subcommand will be automatically discovered and available as sriptype mycommand.

Project Structure

SRIPType/
├── sriptype                      # Executable entry point
├── sriptype_modules/             # Core Python package
│   ├── __init__.py               # Version info
│   ├── cli.py                    # CLI argument parsing
│   ├── core.py                   # Core shared logic
│   ├── utils.py                  # Utility functions
│   └── subcommands/              # Subcommand modules
│       ├── __init__.py
│       └── example.py            # Example/template subcommand
├── tests/                        # Test directory
├── setup.py                      # Package setup
├── pyproject.toml                # Modern Python packaging config
├── requirements.txt              # Dependencies
├── Dockerfile                    # Docker build file
├── conda/meta.yaml               # Conda recipe
├── LICENSE
└── README.md

License

MIT License

Project details


Download files

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

Source Distribution

sriptype-0.1.0.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sriptype-0.1.0-py3-none-any.whl (4.3 MB view details)

Uploaded Python 3

File details

Details for the file sriptype-0.1.0.tar.gz.

File metadata

  • Download URL: sriptype-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sriptype-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97e47f170cce549d43d944b76a664c8a70ee7f985ab034faa9ce9ce02bf592ef
MD5 9fceef457b83a6ba845cad9b77282b9b
BLAKE2b-256 b151236dac290c60c1285506c235a3ee05a54f6fd09b436f7160a6055fad7b78

See more details on using hashes here.

File details

Details for the file sriptype-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sriptype-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sriptype-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 067d3bdf09bbe60f66337d3d960db47c9ec980b1597f929dbe2fe76e9d6636f8
MD5 fe4a957af289cda354ed00de7f128e6f
BLAKE2b-256 19dd785e72a38178c81087437c2567b97a9982aa5e09dff3e97018cfdce87abd

See more details on using hashes here.

Supported by

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