Skip to content

yamule/TM-align_mass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TM-align_mass

TM-align https://zhanggroup.org/TM-align/ for large dbs.

Main differences with the original TM-align:

  • Check alignment state in one more previous step in TMscore8_search(_standard) function.
  • Force one of the NWDP_TM function to be inline.
  • Added binary file mode.
  • Support gzip-ed file.

Anyway, I expect that result is completely the same with that of the original TM-align.

The above modifications reduced processing time just 8% or so, therefore, you can use the original version with this small loss of processing time.

Compile:

clone https://github.com/yamule/TM-align_mass.git
cd TM-align_mass
mkdir bin
g++ -static -O3 -ffast-math -lm -o bin/TMalign_mass.exe TMalign_mass.cpp -lz

An example usage:

mkdir UP000000625_83333_ECOLI
cd UP000000625_83333_ECOLI
wget https://ftp.ebi.ac.uk/pub/databases/alphafold/UP000000625_83333_ECOLI.tar
tar xvf UP000000625_83333_ECOLI.tar
gunzip *.pdb.gz
ls *.pdb > pdblist.dat
cd ..
bin/TMalign_mass.exe UP000000625_83333_ECOLI/AF-P36677-F1-model_v1.pdb -dir2 UP000000625_83333_ECOLI/ UP000000625_83333_ECOLI/pdblist.dat

Perform multi-processing:

(You have to be in the directory of this repo & finished "An example usage" except for the last line.)

find UP000000625_83333_ECOLI | grep -E "\.pdb$" | xargs -I {} bin/TMalign_mass.exe {} -bin_convert {}.bxyz 
ls UP000000625_83333_ECOLI | grep -E "\.pdb.bxyz$"  > UP000000625_83333_ECOLI/pdblist_binary.dat
perl scripts/multi_process.pl --query UP000000625_83333_ECOLI/AF-P36677-F1-model_v1.pdb --dir UP000000625_83333_ECOLI/ --list UP000000625_83333_ECOLI/pdblist_binary.dat --num_threads 6 --tmscore_threshold 0.5 

References to cite:

License:

Releases

No releases published

Packages

No packages published