You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightweight python package to map transposon insertion sequencing (INSeq) data in
8
8
bacteria.
9
9
10
-
## Quick start
10
+
11
+
## Note: BUG <!-- omit in TOC -->
12
+
13
+
`pyinseq` has a [bug](https://github.com/mjmlab/pyinseq/issues/85) in the creation of the `summary_gene_table.txt` file. Will remove this note when resolved.
14
+
15
+
## Quick start <!-- omit in TOC -->
11
16
12
17
This section is meant for users who know their way around terminal and `conda`. To use `pyinseq`,
13
-
create a virtual environment with `python` 3.6 and install `pyinseq` using `conda`.
18
+
create a virtual environment with `python` 3.7 and install `pyinseq` using `conda`.
> `pyinseq` has not being tested on Windows operating systems, but as of Windows 10
375
384
> there is support for terminals with *Ubuntu*
376
385
377
-
> Also note that `pyinseq` uses `bowtie` and **not bowtie2** which is a different software.
386
+
> Also note that `pyinseq` uses `bowtie`; **not bowtie2**, which is a different software.
378
387
379
-
### Using conda (recommended)
388
+
### Installation in a conda environment (recommended)
380
389
381
390
Conda is a command-line package manager that can create virtual environments with
382
391
all the necessary dependencies to run `pyinseq`. You can acquire conda by installing
@@ -392,131 +401,83 @@ Once conda is installed, you can verify it by running:
392
401
$ conda --help
393
402
```
394
403
395
-
#### Creating a virtual environment
404
+
#### Installing mamba
396
405
397
-
A virtual environment is an isolated computational space where you can install dependencies and software without affecting the base operating system's configuration.
398
-
We can use `conda` to create a virtual environment with python 3.6
406
+
`mamba` is now required for `snakemake`. Install it system-wide with this command. The subsequent steps are shown using `conda` since that is more common for the
407
+
scientific audience, but can largely be accomplished in `mamba` if the user desires.
399
408
400
-
```bash
401
-
$ conda create -n pyinseq python=3.6
402
409
```
403
-
404
-
> To use `python` 3.7, change `python=3.6` to `python=3.7`
405
-
406
-
To activate your environment:
407
-
408
-
```bash
409
-
$ conda activate pyinseq
410
+
conda install -n base -c conda-forge mamba
410
411
```
411
412
412
-
You should see the name of your environment surrounded by parentheses in your terminal prompt.
413
-
414
-
```bash
415
-
(pyinseq) $
416
-
```
417
-
#### Installing `pyinseq` through `bioconda`
413
+
#### Creating a virtual environment
418
414
419
-
Now, using conda you can install `pyinseq` directly from the bioconda channel into your virtual environment.
415
+
A virtual environment is an isolated computational space where you can install dependencies and software without affecting the base operating system's configuration.
416
+
We can use `conda` to create a virtual environment with python 3.7
420
417
421
418
```bash
422
-
(pyinseq) $ conda install -c bioconda pyinseq
419
+
$ conda create -n pyinseq-py37 python=3.7
423
420
```
424
421
425
-
Verify that pyinseq installed correctly by running:
422
+
To activate your environment:
426
423
427
424
```bash
428
-
(pyinseq) $ pyinseq --help
429
-
2021-05-26 13:10 - INFO - pyinseq - Process command line arguments
#### Install `virtualenv` and create an environment
444
-
445
-
If conda is not available, you can manually install [Python 3.6](https://www.python.org/downloads/release/python-3613/) (or 3.7) and use `pip` to install `virtualenv`.
428
+
You should see the name of your environment surrounded by parentheses in your terminal prompt.
446
429
447
430
```bash
448
-
$ pip3 install virtualenv
431
+
(pyinseq-py37) $
449
432
```
450
-
451
-
Then use `virtualenv` to create a virtual environment. First, determine where your Python lives.
Activate this environment and install `pyinseq` using `pip`.
446
+
Or, install the most recent version from GitHub:
465
447
466
-
```bash
467
-
$ source~/venvs/pyinseq/bin/activate
468
-
(pyinseq) $ pip install pyinseq
469
448
```
470
-
471
-
#### Install `bowtie` manually
472
-
473
-
Installation of `pyinseq` from `pip`/PyPi rather than conda will be missing [bowtie](http://bowtie-bio.sourceforge.net/index.shtml) (v1.3.0).
474
-
Download the binary release [here](https://sourceforge.net/projects/bowtie-bio/files/bowtie/1.3.0/) or use `curl`. For example, below I am using `curl` to download the zipfile into my computer.
> Make sure that `bowtie` executables are available in your `PATH` variable. You can also follow this [section](#install-bowtie-manually) to install bowtie.
473
+
Now you are ready to run `pyinseq`!
513
474
514
475
### Testing
515
476
516
477
You can test your installation of `pyinseq` by using the option `--test`.
517
478
518
479
```bash
519
-
$ pyinseq --test
480
+
(pyinseq-py37) $ pyinseq --test
520
481
```
521
482
522
483
If all tests pass then you are good to go!
@@ -532,11 +493,13 @@ Ensure that the file is in GenBank and not RefSeq format.
532
493
You can do this two ways:
533
494
* uninstalling pyinseq from the virtual environment
534
495
535
-
```pip uninstall pyinseq``` or ```conda remove pyinseq```
496
+
```pip uninstall pyinseq```
536
497
537
498
* or completely remove the conda virtual environment.
538
499
539
-
``` conda env remove -n pyinseq```
500
+
``` conda env remove -n pyinseq-py37```
501
+
502
+
Note: will need to `conda deactivate` first to leave the environment.
0 commit comments