Skip to content

Commit

Permalink
modified: cre.bam.validate.sh
Browse files Browse the repository at this point in the history
	new file:   cre.bam_recovery.sh
  • Loading branch information
naumenko-sa committed Aug 22, 2017
1 parent 7eb6f61 commit d0a59ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions cre.bam.validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# thorough validation:
# https://gatkforums.broadinstitute.org/gatk/discussion/7571/errors-in-sam-bam-files-can-be-diagnosed-with-validatesamfile
# bam recovery: http://genome.sph.umich.edu/wiki/BamUtil:_convert#BAM_File_Recovery

if [ -z $bam ]
then
Expand Down
10 changes: 10 additions & 0 deletions cre.bam_recovery.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#PBS -l walltime=5:00:00,nodes=1:ppn=1
#PBS -joe .
#PBS -d .
#PBS -l vmem=20g,mem=20g

#http://genome.sph.umich.edu/wiki/BamUtil:_convert#BAM_File_Recovery

bam convert --recover --in $bam --out `echo $bam | sed s/bam/recovered.bam/`

0 comments on commit d0a59ba

Please sign in to comment.