Coder Social home page Coder Social logo

hpc_utils's Introduction

UMCCR HPC paths

Build Status

Anaconda-Server Badge

๐Ÿ–ฅ๏ธ Cluster standard paths to the reference data in UMCCR servers, and python API to query them

hpc_paths/paths.yml contains default data paths and settings for common UMCCR clusters.

from hpc_utils import hpc is a python API that can detect the machine based on hostname. Usage:

>>> from hpc_utils import hpc
>>> hpc.name
'spartan'

>>> hpc.extras
'/data/cephfs/punim0010/extras'

>>> hpc.get_ref_file(genome='GRCh37', 'fa')
'/data/cephfs/punim0010/local/development/bcbio/genomes/Hsapiens/GRCh37/seq/GRCh37.fa'

>>> hpc.get_ref_file('GRCh37', 'gnomad')
'/data/cephfs/punim0010/extras/umccrise/genomes/GRCh37/gnomad_genome.r2.1.common_pass_clean.norm.vcf.gz'

>>> hpc.get_ref_file(run.genome_build, ['truth_sets', 'giab', 'bed'])
'/data/cephfs/punim0010/local/development/bcbio/genomes/Hsapiens/GRCh37/validation/giab-NA12878/truth_regions.bed'

>>> hpc.get_genomes_dict('GRCh37')['truth_sets']['giab']['bed']
'/data/cephfs/punim0010/local/development/bcbio/genomes/Hsapiens/GRCh37/validation/giab-NA12878/truth_regions.bed'

>>> hpc.genomes_dir = '/data/genomes'  # on unknown hosts, you can override genomes dir explicitly

Available genomes:

  • "GRCh37"
  • "hg38"

Available keys: see paths.yaml

Installation: conda install -c vladsaveliev hpc_utils

hpc_utils's People

Contributors

vladsavelyev avatar brainstorm avatar

Watchers

James Cloos avatar Oliver Hofmann avatar  avatar Arthur Hsu avatar Sehrish Kanwal avatar  avatar  avatar

hpc_utils's Issues

Fix yaml.load()

/miniconda/envs/umccrise/lib/python3.7/site-packages/hpc_utils/hpc.py:24: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. 
  loc_by_name = yaml.load(f)  #, Loader=yaml.FullLoader) 
Bcbio config directory: /bcbio_project/config 
/miniconda/envs/umccrise/lib/python3.7/site-packages/ngs_utils/config.py:15: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. 
  dic = load_yaml(open(fpath)) 

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.