Skip to content

Commit

Permalink
✅ add test reference dicts files
Browse files Browse the repository at this point in the history
  • Loading branch information
juanesarango committed Jan 23, 2024
1 parent db0b4a0 commit 3ef1e3a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
--tumor TEST \
--tumorBam `pwd`/tests/data/tumor.bam \
--refGenome `pwd`/tests/data/reference.fasta \
--outdir /app/results
--outdir `pwd`/results
- name: Check result
run: |
if [ ! -f /app/results/TEST.purple.purity.tsv ]; then
Expand Down
4 changes: 3 additions & 1 deletion tests/README
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ samtools view -b -o $TEST_NORMAL_BAM $ORIGINAL_NORMAL_BAM $REGION1 $REGION2
samtools index $TEST_TUMOR_BAM
samtools index $TEST_NORMAL_BAM

# Build test Reference file
# Build test Reference files
ORIGINAL_REF=`isabl get-reference GRCh37`
LOCAL_REF=gr37.fasta
TEST_REF=reference.fasta
Expand All @@ -30,4 +30,6 @@ cp $ORIGINAL_REF.fai $LOCAL_REF.fai
samtools faidx $LOCAL_REF $REGION1 >> $TEST_REF
samtools faidx $LOCAL_REF $REGION2 >> $TEST_REF
samtools faidx $TEST_REF
samtools dict -a GRCh37 -s HUMAN $LOCAL_REF > $TEST_REF.dict
bwa index $TEST_REF
```
2 changes: 2 additions & 0 deletions tests/data/reference.fasta.amb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
200002 2 1
77418 22583 N
5 changes: 5 additions & 0 deletions tests/data/reference.fasta.ann
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
200002 2 11
0 1:100000-200000 (null)
0 100001 1
0 2:300000-400000 (null)
100001 100001 0
Binary file added tests/data/reference.fasta.bwt
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/data/reference.fasta.dict
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@HD VN:1.0 SO:unsorted
@SQ SN:1:100000-200000 LN:100001 M5:a6cb0c5d3b0a027196d67fbd782a308a UR:file:///work/isabl/home/arangooj/dev/purple/data/reference.fasta AS:GRCh37 SP:HUMAN
@SQ SN:2:300000-400000 LN:100001 M5:7bdb46835543f5aedaea4e8a0f02689e UR:file:///work/isabl/home/arangooj/dev/purple/data/reference.fasta AS:GRCh37 SP:HUMAN
Binary file added tests/data/reference.fasta.pac
Binary file not shown.
Binary file added tests/data/reference.fasta.sa
Binary file not shown.

0 comments on commit 3ef1e3a

Please sign in to comment.