Skip to content

Commit

Permalink
simplify, get rid of test_data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
emmarousseau committed Sep 18, 2024
1 parent bd1075e commit de23085
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 39 deletions.
2 changes: 0 additions & 2 deletions src/rsem/rsem_calculate_expression/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ resources:
test_resources:
- type: bash_script
path: test.sh
- type: file
path: test_data

engines:
- type: docker
Expand Down
26 changes: 23 additions & 3 deletions src/rsem/rsem_calculate_expression/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ chr1 example_source gene 100 219 . + . gene_id "gene2"; transcript_id "transcrip
chr1 example_source exon 191 210 . + . gene_id "gene2"; transcript_id "transcript2";
EOF

cat > ref.cnt <<'EOF'
1 0 0 1
0 0 0
0 3
0 1
Inf 0
EOF

cat > ref.genes.results <<'EOF'
gene_id transcript_id(s) length effective_length expected_count TPM FPKM
gene1 transcript1 21.00 21.00 0.00 0.00 0.00
gene2 transcript2 20.00 20.00 0.00 0.00 0.00
EOF

cat > ref.isoforms.results <<'EOF'
transcript_id gene_id length effective_length expected_count TPM FPKM IsoPct
transcript1 gene1 21 21.00 0.00 0.00 0.00 0.00
transcript2 gene2 20 20.00 0.00 0.00 0.00 0.00
EOF


echo "> Generate index"

Expand Down Expand Up @@ -86,9 +106,9 @@ echo ">>> Checking whether output exists"
[ ! -d "test.stat" ] && echo "Stats file does not exist!" && exit 1

echo ">>> Check wheter output is correct"
diff $test_dir/output/ref.genes.results test.genes.results || { echo "Gene level expression counts file is incorrect!"; exit 1; }
diff $test_dir/output/ref.isoforms.results test.isoforms.results || { echo "Transcript level expression counts file is incorrect!"; exit 1; }
diff $test_dir/output/ref.cnt test.stat/test.cnt || { echo "Stats file is incorrect!"; exit 1; }
diff ref.genes.results test.genes.results || { echo "Gene level expression counts file is incorrect!"; exit 1; }
diff ref.isoforms.results test.isoforms.results || { echo "Transcript level expression counts file is incorrect!"; exit 1; }
diff ref.cnt test.stat/test.cnt || { echo "Stats file is incorrect!"; exit 1; }

#####################################################################################################

Expand Down
5 changes: 0 additions & 5 deletions src/rsem/rsem_calculate_expression/test_data/output/ref.cnt

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions src/rsem/rsem_calculate_expression/test_data/script.sh

This file was deleted.

0 comments on commit de23085

Please sign in to comment.