Skip to content

Commit

Permalink
Update convert test & check
Browse files Browse the repository at this point in the history
  • Loading branch information
rcedgar committed Aug 19, 2024
1 parent b8897f4 commit 4214cdc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 65 deletions.
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ OBJDIR := o
BINPATH := $(BINDIR)/reseek

CC = gcc
CFLAGS := $(CFLAGS) -ffast-math -march=native --std=c++17 -O3 -DNDEBUG -fopenmp
CFLAGS := $(CFLAGS) -ffast-math -march=native -O3 -DNDEBUG

CXX = g++
CXXFLAGS := $(CFLAGS) -ffast-math -march=native --std=c++17 -O3 -DNDEBUG -fopenmp
CXXFLAGS := $(CFLAGS) -ffast-math -march=native -O3 -DNDEBUG

UNAME_S := $(shell uname -s)
LDFLAGS := $(LDFLAGS) -ffast-math -march=native -O3 -fopenmp
LDFLAGS := $(LDFLAGS) -ffast-math -march=native -O3
ifeq ($(UNAME_S),Linux)
LDFLAGS += -static
endif
Expand Down
61 changes: 0 additions & 61 deletions test_data/chains.fa
Original file line number Diff line number Diff line change
Expand Up @@ -215,34 +215,13 @@ IYRALEQSALPIHAVQLIEDTSRETAKELFTLNDGLDVLIPRGGKKLIDLVVRESTVPVLETGAGNCHIFIDETAKPQMA
EKVVVNAKTQRPSVCNAIESLLIHKAWARQHGKELLDQLENAGVEIRGDELVCELHPSSKQASKEDWETEFLAPVLSVKT
VENVQEAVKHIQQYGTNHSEAILTENDKNAVYFQTAVDAAAVYHNASTRFTDGFEFGYGAEIGISTQKLHARGPMGLPAL
TSTKYIIKGTGQIRE
>AFDB_Q839W3:A
MKVTDLKQLGQQAKEASYTLGLMDTRQKNTLLNKMAAAIEANAPRILQANALDLEQAATHGISETMQDRLRLTEERITAM
AEGIRQVATLPDPIGEVDKMWRNEAGLLIGQQRVPLGVIGIIYESRPNVTTDAASLCFKSGNAVILRGGKEAFHSNQILV
TILQEALIQEAVSPHLIQFVDDTSR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AYDQRQRVQLRQKGIKDNRELTSIWFPGSVTLKEYLTQI
YLPFYFNAKGLHEKHHVMVDLAKTILEIECEQRENIKEIWSTNCTKQTVNLKILIHSLCKNLLADTSRHNHLRNRIENRN
NFRRSITTISTFTSSKSCLKIGDFRKEKELQSVKQKKILEVQSRKMRLANNYEMLRNAMPNYTDYISTKVFDRLYELLDK
KVLTDKPVIEQIMDMMIDHKKFYFTFFNKGQKTSKDREIFVGEYEAKMCMYAVERIAKERCKLNPDEMISEPGDGKLKVL
EQKSEQEIRFLVETTRQKNREIDEAIEALATEGYESNLGKIEKLSLGKAKGLKMEINADMSKWSAQDVFYKYFWLIALDP
ILYPQEKERILYFMCNYMDKELILPDELLFNLLDQKVAYQNDIIATMTNQLNSNTVLIKRNWLQGNFNYTSSYVHSCAMS
VYKEILKEAITLLDGSILVNSLVHSDDNQTSITIVQDKMENDKIIDFAMKEFERACLTFGCQANMKKTYVTNCIKEFVSL
FNLYGEPFSIYGRFLLTSVGDCAYIGPYEDLASRISSAQTAIKHGCPPSLAWVSIAISHWMTSLTYNMLPGQSNDPIDYF
PAENRKDIPIELNGVLDAPLSMISTVGLESGNLYFLIKLLSKYTPVMQKRESVVNQIAEVKNWKVEDLTDNEIFRLKILR
YLVLDASILTPRKFTTAGSLRKLYSFSKYQDRLSSPGGMVELFTYLLEKPELLVTKGEDMKDYMESVIFRYNSKRFKESL
SIQNPAQLFIEQILFSHKPVIDFSGIRDKYINGKVTFTEAYRLLMRDLSSLELTNDDIQVIYSYIILNDPMMITIANTHI
LSIYGSPQRRMGMSCSTMPEFRNSPALVLRAYSKNNPDIQGAPTEMARDLVHLKEFVENTNLEEKMKVRIAMNEAEKGQR
DIVFELKEMTRFYQVCYEYVKSTEHKIKVFILPAKSYTTTDFCSLMQGNLIKDKEWYTVHYLKQIL
5 changes: 4 additions & 1 deletion test_scripts/check_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def check_fasta(fn):
errors += 1
print("ERROR %s not found in %s" % (label, fn))
return
if seq != seq2:
if seq == seq2:
if 0:
print("seq ok %s" % label)
else:
errors += 1
print("ERROR %s different %s" % (label, fn))
return
Expand Down
2 changes: 2 additions & 0 deletions test_scripts/convert.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ ls ../test_structures/* \
-fasta files.fa \
-cal files.cal \
-bca files.bca \
-chainsep : \
-log convert_files.log

../bin/reseek \
-convert ../test_structures/ \
-fasta dir.fa \
-cal dir.cal \
-bca dir.bca \
-chainsep : \
-log convert_dir.log

function cvt() {
Expand Down

0 comments on commit 4214cdc

Please sign in to comment.