Skip to content

Commit

Permalink
Created new mutations using mutatrix, automatized performance tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martinsos committed Nov 3, 2016
1 parent 11113e7 commit 5780b72
Show file tree
Hide file tree
Showing 65 changed files with 322 additions and 127 deletions.
2 changes: 1 addition & 1 deletion apps/aligner/aligner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int main(int argc, char * const argv[]) {
" If N = 0 then all sequences will be calculated."
" Specifying small N can make total calculation much faster. [default: 0]\n");
fprintf(stderr, "\t-k K Sequences with score > K will be discarded."
" Smaller k, faster calculation.\n");
" Smaller k, faster calculation. If -1, no sequences will be discarded. [default: -1]\n");
fprintf(stderr, "\t-p If specified, alignment path will be found and printed. "
"This may significantly slow down the calculation.\n");
fprintf(stderr, "\t-l If specified, start locations will be found and printed. "
Expand Down
Git LFS file not shown

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions test_data/Chromosome_2890043_3890042_0/mutated_60_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Chromosome_2890043_3890042_0/mutated_70_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Chromosome_2890043_3890042_0/mutated_80_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Chromosome_2890043_3890042_0/mutated_90_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Chromosome_2890043_3890042_0/mutated_94_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Chromosome_2890043_3890042_0/mutated_97_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Chromosome_2890043_3890042_0/mutated_99_perc.fasta
Git LFS file not shown

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions test_data/E_coli_DH1/prefix_10kbp/mutated_60_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/E_coli_DH1/prefix_10kbp/mutated_70_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/E_coli_DH1/prefix_10kbp/mutated_80_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/E_coli_DH1/prefix_10kbp/mutated_90_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/E_coli_DH1/prefix_10kbp/mutated_94_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/E_coli_DH1/prefix_10kbp/mutated_97_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/E_coli_DH1/prefix_10kbp/mutated_99_perc.fasta
Git LFS file not shown
4 changes: 2 additions & 2 deletions test_data/Enterobacteria_Phage_1/Enterobacteria_phage_1.fasta
Git LFS file not shown

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions test_data/Enterobacteria_Phage_1/mutated_60_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Enterobacteria_Phage_1/mutated_70_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Enterobacteria_Phage_1/mutated_80_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Enterobacteria_Phage_1/mutated_90_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Enterobacteria_Phage_1/mutated_94_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Enterobacteria_Phage_1/mutated_97_perc.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions test_data/Enterobacteria_Phage_1/mutated_99_perc.fasta
Git LFS file not shown
26 changes: 0 additions & 26 deletions test_data/mutator.py

This file was deleted.

17 changes: 17 additions & 0 deletions test_data/mutatrix_mutator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

# Mutate given sequence using Mutatrix and compare it with original sequence using Edlib,
# to see how different it is.

MUTATRIX=~/git/mutatrix/mutatrix
EDLIB=~/git/edlib/build/bin/edlib-aligner

INPUT_SEQUENCE=$1
MUTATION_PERC=$2

OUTPUT_SEQUENCE="mutated_"$MUTATION_PERC"_"$INPUT_SEQUENCE

$MUTATRIX -s $MUTATION_PERC -i $MUTATION_PERC -n 1 -m 0 -M 0 -P mutatrix_output $INPUT_SEQUENCE > mutation.vcf
mv mutatrix_output* $OUTPUT_SEQUENCE

$EDLIB $INPUT_SEQUENCE $OUTPUT_SEQUENCE
Loading

0 comments on commit 5780b72

Please sign in to comment.