2020年12月28日 星期一

CentOS 7手動安裝Python-2.7.17

以下是手動安裝的步驟 

步驟一:安裝Python-2.7.17

wget https://www.python.org/ftp/python/2.7.17/Python-2.7.17.tgz
md5sum Python-2.7.17.tgz
27a7919fa8d1364bae766949aaa91a5b  Python-2.7.17.tgz
tar zxf Python-2.7.17.tgz && cd Python-2.7.17
./configure 
    --prefix=/Software/Python/2.7.17-r910 \
    --enable-unicode=ucs2
make -j 24 >make.log 2>&1 &
make install
/Software/Python/2.7.17-r910/bin/python --version

Python 2.7.17


步驟二:安裝pip-20.3.3

wget https://bootstrap.pypa.io/get-pip.py
/Software/Python/2.7.17-r910/bin/python get-pip.py \
    --prefix=/Software/Python/2.7.17-r910
/Software/Python/2.7.17-r910/bin/pip list
Package    Version
---------- -------
pip        20.3.3
setuptools 44.1.1
wheel      0.36.2


步驟三:安裝CrossMap-0.2.9

/Software/Python/2.7.17-r910/bin/pip install CrossMap
Collecting CrossMap
  Downloading CrossMap-0.2.9-py2-none-any.whl (84 kB)
     |████████████████████████████████| 84 kB 1.2 MB/s
Collecting bx-python
  Downloading bx_python-0.8.9-cp27-cp27m-manylinux2010_x86_64.whl (3.5 MB)
     |████████████████████████████████| 3.5 MB 11.7 MB/s
Collecting pysam
  Downloading pysam-0.16.0.1-cp27-cp27m-manylinux1_x86_64.whl (9.2 MB)
     |████████████████████████████████| 9.2 MB 14.1 MB/s
Collecting cython>=0.17
  Downloading Cython-0.29.21-cp27-cp27m-manylinux1_x86_64.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 26.0 MB/s
Collecting numpy
  Downloading numpy-1.16.6-cp27-cp27m-manylinux1_x86_64.whl (17.0 MB)
     |████████████████████████████████| 17.0 MB 53 kB/s
Collecting six>=1.13.0
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: numpy, six, bx-python, pysam, cython, CrossMap
Successfully installed CrossMap-0.2.9 bx-python-0.8.9 cython-0.29.21 numpy-1.16.6 pysam-0.16.0.1 six-1.15.0

/Software/Python/2.7.17-r910/bin/CrossMap.py
Program: CrossMap (v0.2.9)

Description:
  CrossMap is a program for convenient conversion of genome coordinates and genome
  annotation files between assemblies (eg. lift from human hg18 to hg19 or vice
  versa). It supports file in BAM, SAM, BED, Wiggle, BigWig, GFF, GTF and VCF
  format.

Usage: CrossMap.py <command> [options]

  bam   convert alignment file in BAM or SAM format.
  bed   convert genome cooridnate or annotation file in BED or BED-like format.
  bigwig        convert genome coordinate file in BigWig format.
  gff   convert genome cooridnate or annotation file in GFF or GTF format.
  vcf   convert genome coordinate file in VCF format.
  wig   convert genome coordinate file in Wiggle, or bedGraph format.


參考資料

_EOF_

沒有留言:

張貼留言