_FASTA2AGP_ is a command line program written in [Java](https://docs.oracle.com/javase/8/docs/technotes/guides/language/index.html) that allows creating [AGP](https://www.ncbi.nlm.nih.gov/assembly/agp/AGP_Specification/) and contig sequence files from a FASTA-formatted scaffold sequence file.
## Compilation and execution
The source code of _FASTA2AGP_ is inside the _src_ directory and could be compiled and executed in two different ways.
#### Building an executable jar file
On computers with [Oracle JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)(6 or higher) installed, a Java executable jar file could be created. In a command-line window, go to the _src_ directory and type:
```bash
javac FASTA2AGP.java
echo Main-Class: FASTA2AGP > MANIFEST.MF
jar -cmvf MANIFEST.MF FASTA2AGP.jar FASTA2AGP.class
rm MANIFEST.MF FASTA2AGP.class
```
This will create the executable jar file `FASTA2AGP.jar` that could be launched with the following command line model:
```bash
java -jar FASTA2AGP.jar [options]
```
#### Building a native code binary
On computers with the [GNU compiler GCJ](https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcj/) installed, a binary could also be built. In a command-line window, go to the _src_ directory, and type:
```bash
make
```
This will create the executable binary file `FASTA2AGP` that could be launched with the following command line model:
```bash
./FASTA2AGP [options]
```
## Usage
Launch _FASTA2AGP_ without option to read the following documentation: