Skip to content

Commit

Permalink
rename to fasten; v0.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
lskatz committed Apr 20, 2018
1 parent 76dc6d6 commit 876a02e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fasten"
version = "0.1.10"
version = "0.1.11"
authors = ["Lee Katz <[email protected]>"]
#license-file = "LICENSE"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions tests/fasten_trim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
set -e

INPUT=testdata/four_reads.pe.fastq;
reads_not_trimmed=$(./target/debug/fasten_trimmer < $INPUT )
reads_not_trimmed=$(./target/debug/fasten_trim < $INPUT )
original_reads=$(cat $INPUT)
if [ "$reads_not_trimmed" != "$original_reads" ]; then
echo "ERROR while not trimming reads"
exit 1
fi

onebase=$(./target/debug/fasten_trimmer --first-base 3 --last-base 4 < testdata/four_reads.pe.fastq | perl -lane 'print if($i++ % 4 == 1);' | paste -sd'_')
onebase=$(./target/debug/fasten_trim --first-base 3 --last-base 4 < testdata/four_reads.pe.fastq | perl -lane 'print if($i++ % 4 == 1);' | paste -sd'_')
shouldbe="T_T_G_A_C_A_C_A"
if [ "$onebase" != "$shouldbe" ]; then
echo "ERROR trimming to the third base"
exit 1
fi

last_read_length=$(./target/debug/fasten_trimmer --first-base 53 < testdata/four_reads.pe.fastq | ./target/debug/fasten_metrics --each-read | tail -n 1 | cut -f 2)
last_read_length=$(./target/debug/fasten_trim --first-base 53 < testdata/four_reads.pe.fastq | ./target/debug/fasten_metrics --each-read | tail -n 1 | cut -f 2)
if [ "$last_read_length" -ne 47 ]; then
echo "ERROR trimming to the last 47 bp of the reads"
exit 1
Expand Down

0 comments on commit 876a02e

Please sign in to comment.