snip

A utility package handling Single Nucleotide polymorphism data in Python

https://github.com/kennethenevoldsen/snip

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.8%) to scientific vocabulary

Keywords

genetics python snp
Last synced: 6 months ago · JSON representation ·

Repository

A utility package handling Single Nucleotide polymorphism data in Python

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 16
  • Releases: 1
Topics
genetics python snp
Created almost 4 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

Snip: A package for data handling and model training using Single Nucleotide polymorphism data

PyPI version python version Code style: black github actions pytest github coverage

A package for data handling and model training using Single Nucleotide polymorphism data. Implemented in Python and PyTorch.

🔧 Installation

To get started using this package install it using pip by running the following line in your terminal:

pip install git+https://github.com/KennethEnevoldsen/snip

For more detailed instructions on installing see the installation instructions.

Development Setup

To set up the project for development: conda create -n snip python=3.9 conda activate snip conda install poetry peotry install

👩‍💻 Getting started

Convert

To convert .bed files to .zarr simply run from your terminal: bash snip convert sample.bed sample.zarr

or equivalently:

bash python -m snip convert sample.bed sample.zarr

Learn more

To see a list of possible commands: bash snip --help

To find out more about each command:

bash snip convert --help

Slurm

This project uses slurm.


Slurm quick guide **To run a job:** ```bash sbatch {filename}.sh -A NLPPred ``` Where `A` stands for account and `NLPPred` is the account. **Check the status of submitted queue:** ``` squeue -u {username} ``` **See available nodes:** ``` gnodes ``` **SSH to node:** ```bash ssh {node id} ``` **Run an interactive window:** ``` srun --pty -c 4 --mem=16g bash -A NLPPred ``` Using 4 cores and 16GB memory. For more on slurm please check out [this site](https://docs.rc.fas.harvard.edu/kb/convenient-slurm-commands).


💬 Where to ask questions

| Type | | | ------------------------------ | ---------------------- | | 🚨 Bug Reports | GitHub Issue Tracker | | 🎁 Feature Requests & Ideas | GitHub Issue Tracker | | 👩‍💻 Usage Questions | GitHub Discussions | | 🗯 General Discussion | GitHub Discussions |

Owner

  • Name: Kenneth Enevoldsen
  • Login: KennethEnevoldsen
  • Kind: user
  • Location: Aarhus
  • Company: Center for Humanities Computing Aarhus

Interdisciplinary PhD Student on representation learning in Clinical NLP and Genetics at Aarhus University and Interacting Minds Centre

Citation (citation.cff)

cff-version: 1.2.0
message: "If you use this package, please cite it as below."
authors:
- family-names: "Enevoldsen"
  given-names: "Kenneth"
  orcid: "https://orcid.org/0000-0001-8733-0966"
title: "Snip: A package for analysing Single Nucleotide polymorphisms In Python"
year: 2022
url: "https://github.com/KennethEnevoldsen/snip"
date-released: 2022-04-07

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 22
  • Total pull requests: 40
  • Average time to close issues: 22 days
  • Average time to close pull requests: 2 days
  • Total issue authors: 2
  • Total pull request authors: 3
  • Average comments per issue: 0.36
  • Average comments per pull request: 0.6
  • Merged pull requests: 18
  • Bot issues: 0
  • Bot pull requests: 35
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • KennethEnevoldsen (21)
  • Cherished-l (1)
Pull Request Authors
  • dependabot[bot] (33)
  • KennethEnevoldsen (5)
  • pre-commit-ci[bot] (2)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
dependencies (33) python (17) github_actions (16)

Dependencies

.github/workflows/darglint.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v4 composite
.github/workflows/pre-commit.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • pre-commit/action v3.0.0 composite
.github/workflows/pytest.yml actions
  • MishaKav/pytest-coverage-comment v1.1.29 composite
  • actions/cache v2.1.6 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • schneegans/dynamic-badges-action v1.4.0 composite
  • snok/install-poetry v1.3.1 composite
  • snok/install-poetry v1 composite
dev-requirements.txt pypi
  • Sphinx >=5.0.2,<5.1.0 development
  • black >=22.3.0,<22.9.0 development
  • darglint >=1.8.1,<1.9.0 development
  • flake8 >=4.0.1,<5.1.0 development
  • furo ==2022.6.21 development
  • ipykernel >=6.15.1,<6.16.0 development
  • ipython >=7.34.0,<8.5.0 development
  • isort >=5.10.1,<5.11.0 development
  • mypy >=0.971,<0.972 development
  • myst-parser >=0.18.0,<0.19.0 development
  • notebook >=6.4.12,<6.5.0 development
  • pre-commit >=2.19.0,<2.21.0 development
  • pylint >=2.15.3,<2.16.0 development
  • pytest >=7.1.2,<7.1.3 development
  • pytest-cov >=3.0.0,<3.0.1 development
  • sphinx-copybutton >=0.5.0,<0.6.0 development
  • sphinxext-opengraph >=0.6.3.,<0.7.0 development
  • types-setuptools >=62.6.1,<62.7.0 development
pyproject.toml pypi
  • Sphinx ^5.0.2 develop
  • black >=22.3.0,<22.9.0 develop
  • darglint ^1.8.1 develop
  • flake8 >=4.0.1,<5.1.0 develop
  • furo ^2022.6.21 develop
  • ipykernel >=6.15.1,<6.16.0 develop
  • ipython >=8.4.0,<8.5.0 develop
  • isort >=5.10.1,<5.11.0 develop
  • mypy ^0.971 develop
  • myst-parser ^0.18.0 develop
  • notebook ^6.4.12 develop
  • pre-commit >=2.19.0,<2.21.0 develop
  • pylint ^2.15.3 develop
  • pytest >=7.1.2,<7.1.3 develop
  • pytest-cov >=3.0.0,<3.0.1 develop
  • sphinx-copybutton ^0.5.0 develop
  • sphinxext-opengraph ^0.6.3 develop
  • types-setuptools >=62.6.1,<62.7.0 develop
  • hydra-core >=1.2.0,<1.3.0
  • ndjson >=0.3.1,<0.4.0
  • pandas_plink >=2.2.9,<2.3.0
  • python >=3.8, <3.11
  • pytorch-lightning ^1.7.7
  • scikit-learn >=1.1.0,<1.3.0
  • seaborn ^0.11.2
  • setuptools 59.5.0
  • torch >=1.10.2,<1.13.0
  • typer >=0.5.0,<0.7.0
  • update ^0.0.1
  • wandb >0.12.21,<0.14.0
  • wasabi ^0.10.1
  • zarr >=2.11.0,<2.12.0
src/snip/cli/setup.py pypi