-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests for xcounts and unxcounts
- Loading branch information
1 parent
7760e52
commit 7f73a45
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
infile1=tests/reads.xcounts | ||
infile2=tests/tRex1.fa | ||
outfile=tests/reads.unxcounts | ||
if [[ -e "${infile1}" && -e "${infile2}" ]]; then | ||
./dnmtools unxcounts -c ${infile2} -o ${outfile} ${infile1} | ||
x=$(md5sum -c tests/md5sum.txt | grep "${outfile}:" | cut -d ' ' -f 2) | ||
if [[ "${x}" != "OK" ]]; then | ||
exit 1; | ||
fi | ||
else | ||
echo "unxcounts input file not found; skipping remaining tests"; | ||
exit 77; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
infile1=tests/reads.counts | ||
infile2=tests/tRex1.fa | ||
outfile=tests/reads.xcounts | ||
if [[ -e "${infile1}" && -e "${infile2}" ]]; then | ||
./dnmtools xcounts -c ${infile2} -o ${outfile} ${infile} | ||
x=$(md5sum -c tests/md5sum.txt | grep "${outfile}:" | cut -d ' ' -f 2) | ||
if [[ "${x}" != "OK" ]]; then | ||
exit 1; | ||
fi | ||
else | ||
echo "xcounts input file(s) not found; skipping test"; | ||
exit 77; | ||
fi |