Skip to content

Commit

Permalink
Small update to fix a problem with PG tags
Browse files Browse the repository at this point in the history
  • Loading branch information
teepean authored Aug 22, 2022
1 parent 4279a8d commit 3fee801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified BAM Analysis Kit.exe
Binary file not shown.
5 changes: 3 additions & 2 deletions console_bam.bat
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ REM - end reporting versions..

REM - saving old processing if it wasnt saved and accidentally started new processing
IF EXIST out.old\genome_complete.txt (
bin\cygwin\bin\bash.exe -c "/bin/rm -fr out.old"
rmdir /S /Q out.old
)

IF EXIST out\genome_complete.txt (
bin\cygwin\bin\bash.exe -c "/bin/mv out out.old"
move /Y out out.old
mkdir out
)

Expand Down Expand Up @@ -253,6 +253,7 @@ bin\cygwin\bin\bash.exe -c "/bin/samtoolsold.exe view -bT ref.fa inchr.sam > rea
bin\cygwin\bin\bash.exe -c "bin/bow/samtools.exe view -@ %BAMKIT_THREADS% -H inchr.bam|/bin/grep -v SN > header01"
bin\cygwin\bin\bash.exe -c "bin/bow/samtools.exe view -@ %BAMKIT_THREADS% -H reads.bam > header02"
copy header01+header02 header /Y /B > NUL
bin\cygwin\bin\bash.exe -c "/bin/sed -i -e '/@PG/d' header"
bin\cygwin\bin\bash.exe -c "bin/bow/samtools.exe reheader header reads.bam > bam_wh_tmp.bam"

echo Adding or Replace Read Group Header ...
Expand Down

0 comments on commit 3fee801

Please sign in to comment.