Minimal Example
Download the files kmers.txt, sample.sam, and sample.fasta from the repository.
After sucessfully installing MerKurio (follow the documentation) and having it added to your PATH, run the following commands to test MerKurio:
# Run MerKurio extract
echo "Extracting sequences in sample.fasta containing the k-mer in kmers.txt:"
merkurio extract -f kmers.txt -i sample.fasta
# Run MerKurio tag
echo "Tagging records in sample.sam with the k-mer in kmers.txt:"
merkurio tag -f kmers.txt -i sample.sam
# Generate only a plain text log
echo "Generating a plain text log of matching statistics:"
merkurio extract -f kmers.txt -i sample.fasta -S -l
# Generate only a JSON log
echo "Generating a JSON log of matching statistics:"
merkurio tag -f kmers.txt -i sample.sam -S -j
Explanation of the input files:
kmers.txt: contains a single k-mer sequence.sample.sam: a synthetic example SAM file, containing five records.sample.fasta: a synthetic FASTA file, containing two sequences.
In this minimal example, no output files are generated. The records and matching statistics are directly written to the terminal. For a description of the plain text log and JSON log, go to the official documentation.
For a detailed explanation of the available parameters of the tag and extract subcommands visit their sections in the documentation.