Skip to content
Snippets Groups Projects
Commit ad9322c4 authored by ameyner2's avatar ameyner2
Browse files

Fixed filename fixing

parent 207fb5d3
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,12 @@ then
# fix VCF output file names
cd $OUTPUT_DIR/${DATE}_${PROJECT_ID}_${FAMILY_ID}
if [ -e ${PROJECT_ID}${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz ]
if [ ! -e ${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz ]
then
mv ${PROJECT_ID}${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz ${PROJECT_ID}_${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz
mv ${PROJECT_ID}${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz.tbi ${PROJECT_ID}_${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz.tbi
PREFIX=`echo $FAMILY_ID | cut -d '_' -f 1`
SUFFIX=`echo $FAMILY_ID | cut -d '_' -f 2`
mv ${PREFIX}${SUFFIX}-gatk-haplotype-annotated.vcf.gz ${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz
mv ${PREFIX}${SUFFIX}-gatk-haplotype-annotated.vcf.gz.tbi ${FAMILY_ID}-gatk-haplotype-annotated.vcf.gz.tbi
fi
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment