Skip to main content

Tools for processing and summarising SLAMSeq experiments.

Project description

IsoSLAM

Code style: Ruff Code style: black Code style: flake8 fair-software.eu

IsoSLAM is a Python package for processing and working with SLAMSeq data of RNA expression.

Installation

IsoSLAM is available on the Python Package Index (PyPI). It is recommended to use a Python Virtual Environment and install within that.

pip install isoslam

You can also install IsoSLAM directly from this GitHub repository using pip...

pip install git+https://github.com/sudlab/IsoSLAM.git

Alternatively you can clone the repository and install it from there, optionally using the -e flag to make the code editable should you wish to work on developing the code base.

cd ~/path/to/clone/to
git clone git@github.com:sudlab/IsoSLAM.git
cd IsoSLAM
pip install -e .

If you wish to include optional dependencies you may do so.

pip install -e .[dev,docs,tests]

Conda/BioConda

If you use Conda or BioConda to manage your virtual environments and wish to document the installation of IsoSLAM in a YAML file you can add it as a pip dependency as shown in the sample isoslam.yaml file below which includes cgatcore and ruffus as dependencies which will be installed from one of the listed Conda channels.

name: isoslam

channels:
  - conda-forge
  - bioconda
  - default

dependencies:
  - cgatcore
  - ruffus
  - pip
  - pip:
      - isoslam

You can then create an environment using the following.

conda env create --name isoslam --file isoslam.yaml

Usage

On installation the isoslam entry point will be added to the $PATH of your Virtual Environment. You can then invoke it with the --help flag to see the available options.

 isoslam --help
usage: isoslam [-h] [-v] [-c CONFIG_FILE] [-b BASE_DIR] [-o OUTPUT_DIR] [-l LOG_LEVEL] {process,create-config,summary-counts} ...

Run various programs related to IsoSLAM. Add the name of the program you wish to run.

options:
  -h, --help            show this help message and exit
  -v, --version         Report the installed version of IsoSLAM.
  -c, --config-file CONFIG_FILE
                        Path to a YAML configuration file.
  -b, --base-dir BASE_DIR
                        Base directory to run isoslam on.
  -o, --output-dir OUTPUT_DIR
                        Output directory to write results to.
  -l, --log-level LOG_LEVEL
                        Logging level to use, default is 'info' for verbose output use 'debug'.

program:
  Available programs listed below:

  {process,create-config,summary-counts}
    process             Process all files and run all summary plotting and statistics.
    create-config       Create a configuration file using the defaults.
    summary-counts      Summarise the counts.

Each sub-command includes help too, for example...

 isoslam process --help
usage: isoslam process [-h] [-b BAM_FILE] [-g GTF_FILE] [-d BED_FILE] [-v VCF_FILE] [-u UPPER_PAIRS_LIMIT] [-f FIRST_MATCHED_LIMIT] [--delim DELIM]
                       [--output-file OUTPUT_FILE]

Process all files and run all summary plotting and statistics.

options:
  -h, --help            show this help message and exit
  -b, --bam-file BAM_FILE
                        Path to '.bam' file that has undergone read assignment with 'featureCount'.
  -g, --gtf-file GTF_FILE
                        Path to '.gtf' transcript assembly file.
  -d, --bed-file BED_FILE
                        Path to '.bed' utron file. Must be bed6 format.
  -v, --vcf-file VCF_FILE
                        Path to '.vcf.gz' file.
  -u, --upper-pairs-limit UPPER_PAIRS_LIMIT
                        Upper limit of pairs to be processed.
  -f, --first-matched-limit FIRST_MATCHED_LIMIT
                        Limit of matches.
  --delim DELIM         Delimiter to use in output.
  --output-file OUTPUT_FILE
                        File to write results to.

Including in Pipelines

Calls to this entry point can easily be incorporated into CGAT/ruffus or other pipelines.

How it Works

Contributing

Contributions are welcome. We have a Code of Conduct that we ask you respect.

If you have bugs or feature requests please create an issue, there are templates for reporting bugs and making feature requests.

If you wish to contribute fixes or features yourself you can find detailed information in the contributing document (which is rendered on the website).

Licence

This software is licensed as specified by the MIT License.

Citation

Please use the Citation File Format which is available in this repository. A BibTex or APA formatted citation can be easily accessed from the "Cite this repository" link on the right hand side.

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

isoslam-0.0.0a1.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

isoslam-0.0.0a1-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file isoslam-0.0.0a1.tar.gz.

File metadata

  • Download URL: isoslam-0.0.0a1.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for isoslam-0.0.0a1.tar.gz
Algorithm Hash digest
SHA256 6444a74566bf4bb57eb13e9e7a5a90bb2e1c6a15d21ea232451aa675aa29c5f5
MD5 3cd69441f40afe6206aa5142301ad7f9
BLAKE2b-256 5da68a75b1e75cd24d20529a376aa596c418f45f257fb1444f89ef93f1cd99d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for isoslam-0.0.0a1.tar.gz:

Publisher: pypi.yaml on sudlab/IsoSLAM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file isoslam-0.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: isoslam-0.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for isoslam-0.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e9389acda5cf9ba5c920b0f47ccbadf19db8e3d802ccd58d46dffdeea29a1df
MD5 a89011b40e2079228f089d6f50c56f34
BLAKE2b-256 75516eae350c4235ed14acf42198765adf1929ceb055099824808fb1dc52d22e

See more details on using hashes here.

Provenance

The following attestation bundles were made for isoslam-0.0.0a1-py3-none-any.whl:

Publisher: pypi.yaml on sudlab/IsoSLAM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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