This repository serves as the default template for analysis projects within the team.
Buildable Package: This template can be built into a package and easily imported into other projects.
Modules Included: Comes with several built-in modules such as datatracker, teamconnector, and findhere to streamline your project development.
Use this template to jump-start your analysis projects and ensure you have a consistent structure across the team.
To get started with this template, follow these steps:
Create a new repository on GitHub by clicking "New" on the dashboard.
Choose a pre-defined template from the list under "Repository template."
Name your repository and set its visibility.
Click "Create repository" to initialize the repo with the chosen template.
Clone the repository to your local machine using the command git clone <your-new-repo-url>
.
Make changes to the code as needed.
Push your changes to the repository using the command git push
.
To customize this template for your project, you'll need to replace some placeholders:
Search for {{ cookiecutter.full_name }}
and replace it with the appropriate full name associated with this repository.
Look for {{ cookiecutter.project_slug }}
and substitute it with the repository name or slug you're using.
Replace {{ cookiecutter.project_short_description }}
with a concise description of this repository's purpose or functionality.
Update your pip package manager with the following command:
make update-pip
To create a new environment:
make create-env
After that, enter the created Conda environment and only run commands in that environment.
make act
Make sure your environment variables are set appropriately according to teamconnector
in ~/.env
.
To set up your environment variables:
make set-env
tcinit ~
To install Versioneer:
make install-version
For an interactive installation of the current package:
make install
Running make install
will not install the most up-to-date packages from PyPI. To update all packages in requirements.txt
to the newest version, you can use the following command:
make install-reqs
To install or update the required packages:
make install-reqs
make install-dev
To get the version of this library:
make version
To get the version of a specific Python library (e.g., hail):
make lib-version NAME=hail
make hail-version
Hail requires Java 11 for running on local machines, whether it's a SLURM cluster or a local Mac. You can use the Conda Forge package manager.
-
Open Terminal
-
Add Conda-Forge Channel
conda config --add channels conda-forge
-
Install Java 11
conda install -c conda-forge openjdk=11
-
Verify Installation
java -version
TJ Singh lab @ singhlab@nygenome.org