#!/opt/gensoft/exe/amos/3.1.0/bin/runAmos -C
# `minimus' - The AMOS Lightweight Assembler Pipeline

#--------------------------------------- USER DEFINED VALUES ------------------#
PREF = $(strip .afg PREFIX)
TGT = $(PREF).afg
#------------------------------------------------------------------------------#


BANK    = $(PREF).bnk
CONTIG  = $(PREF).contig
FASTA   = $(PREF).fasta

INPUTS  = $(TGT)
OUTPUTS = $(CONTIG) $(FASTA)


## Building AMOS bank
10: bank-transact -c -z -b $(BANK) -m $(TGT)

## Running overlap
20: hash-overlap -B $(BANK)

## Running contigger
30: tigger -b $(BANK)

## Running consensus
40: make-consensus -B -b $(BANK)

## Outputting contigs
50: bank2contig $(BANK) > $(CONTIG)

## Converting to FastA file
60: bank2fasta -b $(BANK) > $(FASTA)
