@@ -8,34 +8,47 @@ The source code of _eFASTA_ is inside the _src_ directory and could be compiled
#### 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:
Clone this repository with the following command line:
On computers with [Oracle JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)(6 or higher) installed, a Java executable jar file can be created. In a command-line window, go to the _src_ directory and type:
```bash
javac EFASTA.java
echo Main-Class: EFASTA > MANIFEST.MF
jar -cmvf MANIFEST.MF EFASTA.jar EFASTA.class
rm MANIFEST.MF EFASTA.class
```
This will create the executable jar file `EFASTA.jar` that could be launched with the following command line model:
This will create the executable jar file `EFASTA.jar` that could be run with the following command line model:
```bash
java -jar EFASTA.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:
Clone this repository with the following command line:
On computers with [GraalVM](https://www.graalvm.org/downloads/) installed, a native executable can be built. In a command-line window, go to the _src_ directory, and type:
```bash
make
javac EFASTA.java
native-image EFASTA eFASTA
rm EFASTA.class
```
This will create the executable binary file `eFASTA` that could be launched with the following command line model:
This will create the native executable `eFASTA` that can be run with the following command line model:
```bash
./eFASTA [options]
```
## Usage
Launch _eFASTA_ without option to read the following documentation:
Run _eFASTA_ without option to read the following documentation:
```
eFASTA
USAGE: eFASTA <options>
where options are:
...
...
@@ -52,17 +65,17 @@ Launch _eFASTA_ without option to read the following documentation:
leading to the writing of its amino acid translation
(standard genetic code) into a second FASTA-formatted
output file [basename].faa
-fcds to search for the full CDS (starting and ending by start
and stop codons, respectively) that includes the region
-fcds to search for the full CDS (starting and ending by START
and STOP codons, respectively) that includes the region
specified by option -c
-orf to search for the ORF (starting and ending by stop codons)
-orf to search for the ORF (starting and ending by STOP codons)
that includes the region specified by option -c
-start, -init <string> (only with options -cds and -fcds) several alternate start
-start, -init <string> (only with options -cds and -fcds) several alternate START
codons (non ATG) could be specified with this option:
PROK = ATG GTG TTG
PROK+ = ATG GTG TTG CTG ATT
PROK++ = ATG GTG TTG CTG ATT ATC ATA
-stop (only with options -cds, fcds and -orf) to include the stop
-stop (only with options -cds, -fcds or -orf) to include the STOP
codon in the outputed sequences
```
...
...
@@ -74,7 +87,7 @@ The directory _example_ contains the FASTA-formatted file _Ecoli.O104H4.plsm.fna
This command line allows writing the two files _seq.fna_ and _seq.faa_ containing the ORF and its translation, respectively, with the two ending-up stop codons:
This command line creates the two files _seq.fna_ and _seq.faa_ containing the ORF and its translation, respectively, with the two ending-up codons STOP:
This command line allows writing the two files _seq.fna_ and _seq.faa_ containing the CDS and its translation, respectively, by considering each of the three codons ATG, GTG and TTG as a putative start codon:
This command line creates the two files _seq.fna_ and _seq.faa_ containing the CDS and its translation, respectively, by considering each of the three codons ATG, GTG and TTG as a putative codon START:
This command line allows writing the two files _seq.fna_ and _seq.faa_ containing the CDS and its translation, respectively, by considering each of the three codons ATG, GTG and TTG as a putative start codon, and including the termination codon:
This command line creates the two files _seq.fna_ and _seq.faa_ containing the CDS and its translation, respectively, by considering each of the three codons ATG, GTG and TTG as a putative codon START, and including the termination codon: