Skip to content

Commit

Permalink
installation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rbpisupati committed Sep 1, 2017
1 parent 6191639 commit fee59c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,17 @@ SNPmatch is a Python toolkit which can be used to genotype a sample from as-low-

The below steps deal with running SNPmatch on a local machine. This package is only tested in Python 2.

### Dependencies
The SNPmatch uses various python packages (Cython, numpy, pandas, [PyGWAS](https://github.com/timeu/PyGWAS), scikit-allel). Most of which are automatically downloaded and installed with pip. Cython has to be installed before hand as given below.
```bash
pip install Cython
```

### Installation using pip:
### Installation using pip

SNPmatch can be easily installed with the help of pip. It can be installed from the git repo or through PyPi. The requried pip commands are given below.
SNPmatch can be easily installed with the help of pip. SNPmatch uses various python packages (numpy, pandas, [PyGWAS](https://github.com/timeu/PyGWAS), [scikit-allel](https://github.com/cggh/scikit-allel)), which are automatically downloaded and installed while using pip. Follow the commands below for successful installation.

```bash
## installing SNPmatch from git hub repository
pip install -e git+https://github.com/Gregor-Mendel-Institute/SNPmatch.git
pip install git+https://github.com/Gregor-Mendel-Institute/SNPmatch.git
## or PyPi
pip install SNPmatch
```
SNPmatch can be installed either from the git repo or through PyPi.

### Database files

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
keywords='Genotyping Low Coverage sequencing data',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
install_requires=[
"Cython",
"scipy >= 0.17.0",
"numpy >=1.9.0",
"PyGWAS",
Expand Down
2 changes: 1 addition & 1 deletion snpmatch/core/snpmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def parseInput(inFile, logDebug, outFile = "parser"):
DPmean = "NA"
else:
die("input file type %s not supported" % inType)
log.info("creating snpmatch parser file: %s", outFile)
log.info("creating snpmatch parser file: %s", outFile + '.npz')
np.savez(outFile, chr = snpCHR, pos = snpPOS, gt = snpGT, wei = snpWEI, dp = DPmean)
NumSNPs = len(snpCHR)
case = 0
Expand Down

0 comments on commit fee59c2

Please sign in to comment.