Tags
环境搭建分为两个部分:Shapemapper和SuperFold
Shapemapper
官方教程
- Download latest release
- On most systems, typing
wget https://github.com/Weeks-UNC/shapemapper2/releases/download/2.2.0/shapemapper2-2.2.tar.gz
will download the file on the commandline. - Be sure to download from the
shapemapper2-2.2.tar.gz
link, not the source code-only links, which do not include executables.
- Extract release tarball using
tar -xvf shapemapper2-2.2.tar.gz
- Add shapemapper executable to PATH (optional - google this if you don't know how)
- Run the script
run_example.sh
to check if shapemapper successfully runs on a small subset of example data. (optional) - This should produce two folders:
shapemapper_out
andshapemapper_temp
- To run all unit and end-to-end tests, run
internals/test/run_all_tests.sh
. This should take about 5-15 minutes. (optional)
- Alternatively, you can build ShapeMapper if the provided binaries do not run on your platform. Building is relatively straightforward using conda. See building.
具体操作
- 下载
- 解压
- 添加环境变量
- 测试
问题
网速太慢
解决方案:
本地下载,上传到服务器
缺文件“shapemapper2/internals/paths/bin_paths.sh”
解决方案:
在github上有这个文件,把这个包下下来,少什么,就往文件夹里面补什么(
cp xx xx
)问题3:明明本地有botwie2,但是报错BowtieIndexBuild安装失败
解决方案:
在查看了github上的docs/building.md,安装了一些必须的包其中包括bowtie2,但是这样还是不行,观察了报错的代码,发现shapemapper是基于运行命令时的绝对路径指定的bowtie2的路径,而我已有的bowtie2和bowtie2-build都用的是原来在/usr/bin目录下的软件,这就导致那个位置上没有bowtie2,所以报错。
(想解决这个问题有两个方案,一是把shapemapper的代码改成/usr/bin的目录下,二是把bowtie2重新安装在指定的目录,我选了方案2),之后我加了一些命令别名在.bashrc文件中,这样就可以使用bowtie2,但是bowtie2-build还是不能用,说缺bowtie2-build-s文件,我看到安装的bowtie2其实有两个,所以把第二个的bowtie2-build-s文件复制过去,就可以正常的用了。
依赖环境
Supplementary Method 2: Software installation (SuperFold)
Supplementary Method 2: Software installation (SuperFold)This guide assumes the user is familiar with basic Unix/Linux commands to change directories,
extract archived files, move files, display and edit text files, and run executables. These steps
only need to be performed once.
- Use a package manager, such as apt-get on Debian, Ubuntu, or Linux or MacPorts on OSX, to install Numpy and Matplotlib. Using apt-get:
- To install RNAstructure, download the compiled version of the text interfaces for your system from the Mathews lab web site (http://rna.urmc.rochester.edu/RNAstructureDownload.html). Unzip the tarball and move it to the home directory:
- Add the RNAstructure programs and data tables to the PATH:
- To install SuperFold, Obtain the latest version of ShapeMapper from www.chem.unc.edu/rna/software.html, move it to your home directory, and add it to the PATH:
- Example data. SHAPE-MaP data for the E. coli 16S rRNA are included in the SuperFold tarball. Copy the .map file to a working directory “my_superfold_analysis”
Table 2 ShapeMapper stages.