Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the KneadData installation package.
cd /path/to/kneaddata unzip kneaddata-0.7.7-alpha.zip
- Go to the directory generated after the decompression.
cd kneaddata-0.7.7-alpha
- Edit the setup.py file.
- Open the setup.py file.
vi setup.py
- As shown in the following figure, add import shutil, which will be used when coping the Bowtie2 file.

- In the def download_unpack_zip module, add the following content:
test1 = r'/path/to/Bowtie2/bowtie2-2.4.2-linux-aarch64.zip' shutil.copy(test1,download_file)

- Search for if not bowtie2_installed or replace_install.
Comment out the two lines containing bowtie2-2.2.3-linux.x86_64.zip and add the following content:
bowtie2_file="bowtie2-2.4.2-linux-aarch64.zip" bowtie2_url="http://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.4.2/bowtie2-2.4.2-linux-aarch64.zip"
Comment out bowtie2_folder="bowtie2-2.2.3" and add the following content:
bowtie2_folder="bowtie2-2.4.2-linux-aarch64"

- Open the setup.py file.
- Start the installation.
python setup.py install
Parent topic: KneadData 0.7.7 Porting Guide (CentOS 8.2)