Skip to content

Commit

Permalink
Modified test script to pull down three bam files and format fasta files
Browse files Browse the repository at this point in the history
  • Loading branch information
kvg committed Jun 13, 2024
1 parent 4f90666 commit 3cdcda3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 19 additions & 3 deletions go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,26 @@ set -euxo pipefail

cargo build --release >/dev/null 2>&1

./target/debug/hidive fetch \
./target/release/hidive fetch \
-r \
-o HG002.HLA-A.bam \
-l chr6:29,940,532-29,947,870 \
-o HG002.HLA-A.bam \
gs://fc-bb12940d-f7ba-4515-8a98-42de84f63c34/HPRC_grch38/PBCCSWholeGenome/HG002/alignments/HG002.bam

samtools index HG002.HLA-A.bam
./target/release/hidive fetch \
-r \
-l chr6:29,940,532-29,947,870 \
-o HG00438.HLA-A.bam \
gs://fc-bb12940d-f7ba-4515-8a98-42de84f63c34/HPRC_grch38/PBCCSWholeGenome/HG00438/alignments/HG00438.bam

./target/release/hidive fetch \
-r \
-l chr6:29,940,532-29,947,870 \
-o HG02559.HLA-A.bam \
gs://fc-bb12940d-f7ba-4515-8a98-42de84f63c34/HPRC_grch38/PBCCSWholeGenome/HG02559/alignments/HG02559.bam

samtools fasta HG002.HLA-A.bam | sed '/^>/s/$/\|HG002/' > HG002.HLA-A.fasta
samtools fasta HG00438.HLA-A.bam | sed '/^>/s/$/\|HG00438/' > HG00438.HLA-A.fasta
samtools fasta HG02559.HLA-A.bam | sed '/^>/s/$/\|HG02559/' > HG02559.HLA-A.fasta

cat HG002.HLA-A.fasta HG00438.HLA-A.fasta HG02559.HLA-A.fasta > HLA-A.fasta

0 comments on commit 3cdcda3

Please sign in to comment.