Jennifer Shelton edited implementation.tex  over 8 years ago

Commit id: ba3bc430e87adaa1bde147e2d66f329f9c0a2161

deletions | additions      

       

  Sequence FASTA files are often passed as arguments to commandline tools. For example FASTA files can be passed as an argument to bowtie2-build to be indexed as an alignment reference \cite{langmead2012fast} or passed to trimmomatic as adapters to detect sequencing artifacts \cite{bolger2014trimmomatic}. The output filename used by Fast-O-Matic varies to reflect the reformatting performed. For seamless integration into automated workflows Fasta-O-Matic returns the full path of the new properly formatted FASTA file or the original file (if it is already formatted properly). This can be captured as a variable and used as an argument in subsequent commands. The Bash commands below show and example of capturing the FASTA file name as a variable.  \verb|filename="$(python \begin{verbatim}  filename="$(python  fasta_o_matic.py -f NC_010473_mock_scaffolds.fna -o ~/out_fasta_o_matic -c)"| -c)"  echo $filename  \end{verbatim}    \verb|echo $filename|